[XML-DEV Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

NXP/MSXML confusion

  • From: Matt Jones <jones@n...>
  • To: xml-dev@i...
  • Date: Wed, 27 Aug 1997 17:02:20 -0700

nxp
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@n...
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@i... the following message;
unsubscribe xml-dev
List coordinator, Henry Rzepa (rzepa@i...)


PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
 

Stylus Studio has published XML-DEV in RSS and ATOM formats, enabling users to easily subcribe to the list from their preferred news reader application.


Stylus Studio Sponsored Links are added links designed to provide related and additional information to the visitors of this website. they were not included by the author in the initial post. To view the content without the Sponsor Links please click here.

Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.