OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

 


 

   NXP/MSXML confusion

[ Lists Home | Date Index | Thread Index ]
  • From: Matt Jones <jones@nceas.ucsb.edu>
  • To: xml-dev@ic.ac.uk
  • Date: Wed, 27 Aug 1997 17:02:20 -0700

Hello,
We are trying to use NXP and MSXML to validate xml documents with a
specific
DTD, but we are getting  inconsistent results from the two programs.
The results from the two parsers, plus the simple dtd and xml files, are
at the end of
this message.

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)
******************************************************************



xml-dev: A list for W3C XML Developers
Archived as: http://www.lists.ic.ac.uk/hypermail/xml-dev/
To unsubscribe, send to majordomo@ic.ac.uk the following message;
unsubscribe xml-dev
List coordinator, Henry Rzepa (rzepa@ic.ac.uk)





 

News | XML in Industry | Calendar | XML Registry
Marketplace | Resources | MyXML.org | Sponsors | Privacy Statement

Copyright 2001 XML.org. This site is hosted by OASIS