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

 


Help: OASIS Mailing Lists Help | MarkMail Help

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: XML Schema: is it possible to get a list of ALL the errors in anXML?



Title: RE: XML Schema: is it possible to get a list of ALL the errors in an XML?

So long as it is well formed, I think Xerces 1.4 validates against XSD and
reports all errors (as far as I could tell). If the XML document is not
well-formed, it is a fatal error. Apart from the most trivial cases, it
would be a fairly tricky bit of logic to point out "all well-formedness
errors", since this would imply making assumptions about what the error
actually is - from the point of the first error you lose all sense of
element nesting.

A trivial example:
<aardvark>
 <nose type="long">
  hairy
</aardvark>

What do we have here? Is it a hairy aardvark with a long nose:

<aardvark>
 <nose type="long"/>
  hairy
</aardvark>

or an aardvark with a long, hairy nose:

<aardvark>
 <nose type="long">
  hairy
 </nose>
</aardvark>

?


John


-----Original Message-----
From: Rene de Vries [mailto:RdVries@PCL-HaGe.nl]
Sent: 11 June 2001 14:43
To: 'xml-dev@lists.xml.org'
Subject: XML Schema: is it possible to get a list of ALL the errors in
an XML?


Hi forum,

As far a I've seen, all validating-tools stop at the first error they
find
in the XML.
I'd like to get a list of ALL the errors that are in the XML, to report
to
the user what he has to fix before his XML is accepted bij the XML
Schema.
Can you give me a solution for that (working with XSD preferable).

Groetjes Rene
   { @   @ }
        ^
      \__/

"You don't need eyes to see, you need vision!"



------------------------------------------------------------------
The xml-dev list is sponsored by XML.org, an initiative of OASIS
<http://www.oasis-open.org>

The list archives are at http://lists.xml.org/archives/xml-dev/

To unsubscribe from this elist send a message with the single word
"unsubscribe" in the body to: xml-dev-request@lists.xml.org