Home. 
.

transparent

transparent

transparent

Altova Mailing List Archives


Re: how to debug XML?

From: yf110@----.--------.--.-- (------- ---------)
To: NULL
Date: 11/1/2005 10:13:00 PM
lkrubner@g... wrote:

: Peter Flynn wrote:
: > There are
: > two related types of error that do occur in XML, however:
: >
: > a) conceptual errors in the construction of DTDs or Schemas
: > b) well-formedness or validity errors in the document
: >
: > Type (a) is usually down to a misunderstanding of the nature of markup.
: > Some people want to model data in unusual, perverse, or vexatious ways
: > (even CS people who ought to know better :-) but mostly there are good
: > tools for creating Schemas and DTDs built into IDEs and editors which
: > allow you to test their syntactic validity even if they allow semantic
: > nonsense.
: >
: > Type (b) is tested with standard parsing and validation tools, either
: > standalone (from the console command line) or built into the interface
: > of whatever editor or other IDE you are using.

: I guess I meant, party, option B, and then I guess I also meant the PHP
: code that might generate some XML. But I suppose that is a PHP
: question. I was thinking about well-formedness, for sure, but also
: enforcement of a scheme. Like, if a DTD says only one thing is allowed
: in a field, and something else gets in there. I suppose that is
: well-formedness too?

enforcement of a scheme = validation

You want a "validating parser".  

Xerces is one such parser.  Not sure about php specific tools.


--

This programmer available for rent.


transparent
Print
Mail
Like It
Disclaimer
.

These Archives are provided for informational purposes only and have been generated directly from the Altova mailing list archive system and are comprised of the lists set forth on www.altova.com/list/index.html. Therefore, Altova does not warrant or guarantee the accuracy, reliability, completeness, usefulness, non-infringement of intellectual property rights, or quality of any content on the Altova Mailing List Archive(s), regardless of who originates that content. You expressly understand and agree that you bear all risks associated with using or relying on that content. Altova will not be liable or responsible in any way for any content posted including, but not limited to, any errors or omissions in content, or for any losses or damage of any kind incurred as a result of the use of or reliance on any content. This disclaimer and limitation on liability is in addition to the disclaimers and limitations contained in the Website Terms of Use and elsewhere on the site.

.
.

transparent

transparent