hi,
> It is really the Grammar class which you want to
> look at, because a Grammar
> represents an internal (Xerces-j internal) way of
> representing an XML
> Structure. There are 2 type of Grammars:
> SchemaGrammar and DTDGrammar.
>
would like to know how Grammar represents XML Schema.
Is it in the form of tree with, for example, if I have
this kind of schema:
<xsd:element name="purchaseOrder"
type="PurchaseOrderType"/>
<xsd:complexType name="PurchaseOrderType">
<xsd:sequence>
<xsd:element name="shipTo" type="USAddress"/>
<xsd:element name="items" type="Items"/>
</xsd:sequence>
<xsd:attribute name="orderDate" type="xsd:date"/>
</xsd:complexType>
the Grammar (if it is a tree data structure) will have
sequence as parent and element as child.. ? Or it
directly gives PurchaseOrder as parent and shipTo as
child ?
> (XML4J 2.1.15) there used
> to be a Revalidating
> DOM parser that you could use to do "write
> validation".
>
it's only with DTD if I'm not mistaken. I need to work
with XML Schema...
> Some other people in the past have approached this
> problem and written their
> solutions, you may be able to find some of those in
> the mail archives.
>
tried it, but didn't find any. Maybe I miss it. Or
maybe you mean other archives beside xerces-j-user?
> Hope this helps,
>
it does. thx a lot :)
cath
__________________________________________________
Do You Yahoo!?
Get personalized email addresses from Yahoo! Mail - only $35
a year! http://personal.mail.yahoo.com/