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

 


Help: OASIS Mailing Lists Help | MarkMail Help

 


 

   RE: NXP/MSXML confusion

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

	The way I see it the <Y> element satisfies the choice (x|y)
allowing it to move on to the sequence (s,t) which appears in the XML
correctly.  So I think MSXML is correct in saying the document is valid,
don't you agree ?

	By the way you can run msxml without the -d argument "java msxml
te.xml" and if no errors are displayed then the XML is valid.  

> -----Original Message-----
> From:	Matt Jones [SMTP:jones@nceas.ucsb.edu]
> Sent:	Wednesday, August 27, 1997 5:02 PM
> To:	xml-dev@ic.ac.uk
> Cc:	jones@nceas.ucsb.edu; wang@nceas.ucsb.edu
> Subject:	NXP/MSXML confusion
> 
> 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)

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