|
[XML-DEV Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] RE: NXP/MSXML confusion
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@n...] > Sent: Wednesday, August 27, 1997 5:02 PM > To: xml-dev@i... > Cc: jones@n...; wang@n... > 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@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...) 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! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|
|||||||||

Cart








