|
[XML-DEV Mailing List Archive Home]
[By Thread]
[By Date]
[Recent Entries]
[Reply To This Message]
RE: XML Schema: is it possible to get a list of ALL the errors in anXML?
- From: "Anderson, John" <John@B...>
- To: "'xml-dev@l...'" <xml-dev@l...>
- Date: Mon, 11 Jun 2001 23:11:16 +0200
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@P...]
Sent: 11 June 2001 14:43
To: 'xml-dev@l...'
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@l...
|
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
| 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.
|
|