> Is it possible to access all schema info through schema API ?

Yes, you can get all "schema" information. But "elementFormDefault" and "id" are not schema information, but schema "document" information, which is not tracked by the schema API.

Sandy Gao
Software Developer, IBM Canada
(1-905) 413-3255
[EMAIL PROTECTED]



"Jing Yang" <[EMAIL PROTECTED]>

03/31/2005 11:49 AM

Please respond to
xerces-j-user

To
<[EMAIL PROTECTED]>
cc
Subject
Is it possible to access all schema info through schema API ?





Is it possible to access all schema info through schema API ?
For an example, how  to access the  "elementFormDefault" or  element "id" in
following schema ?

<?xml version="1.0" encoding="UTF-8"?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"
elementFormDefault="qualified" attributeFormDefault="unqualified">
<xs:element name="Test">
                <xs:complexType>
                                 <xs:sequence>
                                                  <xs:element name="A" id="index" type="xs:string" maxOccurs="30"/>
                                 </xs:sequence>
                </xs:complexType>
</xs:element>
</xs:schema>

Thanks,

-Jing


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Reply via email to