Altova Mailing List Archives>Archive Index >comp.text.xml Archive Home >Recent entries >Thread Prev - Re: how to debug XML? [Thread Next] Re: how to debug XML?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/ | ||||||
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | Mobile | Full Site | |||
|
