For "internal subset", I mean the DTD internal subset, i.e. something like
<!DOCTYPE animal [
<!ELEMENT animal (cat|tiger|leopard)+>
<!ELEMENT cat EMPTY>
<!ELEMENT tiger (#PCDATA)>
<!ELEMENT leopard ANY>
<!ELEMENT small EMPTY>
<!ELEMENT big EMPTY>
<!ATTLIST tiger color CDATA #REQUIRED>
]>
if the second "anotherXmlFile" has DTD internal subset, then you are not
allowed to have reuseGrammar = true....
Sorry for the confusion, my description was intended as a generic usage
information for both DTD and schema...
Tinny
"Murphy, James" wrote:
> Tinny, thanks for the replay... I'm not clear on your statement below:
>
> > // Any grammar that is specified in anotherXmlFile is IGNORED.
> > // AND there cannot be any internal subset in anotherXmlFile..
> > parser.parse(anotherXmlFile, true);
>
> what do you mean by an "internal subset". We have instance documents that
> are validated against several schemas. the instance documents can vary
> quite a bit meaning they would not have identical structure. Is this what
> you meant:
>
> <a>
> <b>10</b>
> <a>
>
> <b>50</b>
>
> If I had a schema that contined a simple type definition for <b> could I
> "reusegrammar"?
>
> Jim
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]