Home. 
.

transparent

transparent

transparent

Altova Mailing List Archives


Re: how to debug XML?

From: Peter Flynn <peter.nosp@-.--------.-->
To: NULL
Date: 11/6/2005 10:57:00 PM
lkrubner@g... wrote:

> Peter Flynn wrote:
[...]
>> 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?

No, that's a validity error unless the something-else is malformed.

For example, if the DTD says element type A can only contain an 
instance of element type B, and your file has

   <A><B>text</B><C>text</C></A>

then that is a validity error. It's well-formed, but it conflicts
with the DTD.

If, on the other hand, it said <A><B>text</B><C>text<C></A> then
that is not well-formed, and it's an error regardless of whether
you use a DTD or not.

///Peter
-- 
XML FAQ: http://xml.silmaril.ie/



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