Does anybody know which one produces the proper output? Does the lack of
an error indication indicate that MSXML thinks this is a valid doc
according to
the DTD? Do you think it is a valid XML DTD and document (the specific
problem in NXP seems to arise in association with the "<!element te
((x | y),(s,t))>"
construct)?
Thanks for your help,
Zheng and Matt
*****************************************
MSXML parser output:
*****************************************
java msxml -d te.xml
<?XML VERSION="1.0" RMD="ALL"?>
<!DOCTYPE TE SYSTEM "te.dtd">
<TE>
<Y>
yyyy
</Y>
<S>
ssss
</S>
<T>
tttt
</T>
</TE>
*****************************************
NXP parser output:
*****************************************
java Cl -v -f te.xml
NXP - Norbert's XML Parser 0.96 - 20.05.1997
Fetch file : te.xml
Start parsing ...
Parsing Started ......
Fetch file: ./te.dtd
<TE>
<Y> "
yyyy
"
</Y>
<S>
****** Invalid content model !
"
ssss
"
</S>
<T>
****** Invalid content model !
"
tttt
"
</T>
</TE>
Parsing finished - Time : 433 msec.
*****************************************
DTD file "te.dtd"
*****************************************
<!element te ((x | y),(s,t))>
<!element x (#PCDATA)>
<!element y (#PCDATA)>
<!element z (#PCDATA)>
<!element s (#PCDATA)>
<!element t (#PCDATA)>
*****************************************
XML file "te.xml"
*****************************************
<?XML version="1.0" RMD="all" ?>
<!DOCTYPE te SYSTEM "te.dtd">
<te>
<y>
yyyy
</y>
<s>
ssss
</s>
<t>
tttt
</t>
</te>
******************************************************************
Matt Jones jones@nceas.ucsb.edu
http://www.nceas.ucsb.edu/ Ph: 805-892-2508 Fax: 805-892-2510
National Center for Ecological Analysis and Synthesis (NCEAS)
******************************************************************