Re: What would you like to see in XML::LibXML ?

Stephen Wilcoxon <[email protected]> Tue, 4 Dec 2012 09:46:34 -0600
Newsgroups gmane.comp.lang.perl.xml
Message-ID <CAOhatNywT0hK1vwzXkSEmL5OBaLYN6FM=moznP6QrndiGitm8g@mail.gmail.com>
On Mon, Dec 3, 2012 at 10:10 PM, Liam R E Quin <[email protected]> wrote:

> > If that's not the case, we should then make really explicit that the
> > ->validation(1) option is just really dtd_validation.
> Validation in XML is usually DTD-based; schema processing, or a Schema
> Validation Episode, is another matter.
>
> There may also be several different XML Schemas (XSD) that one wants to
> use for a given XML document, so any API should allow the programmer to
> pass in a URI for a schema document.
>

The XML file itself should specify the XSD(s) necessary to validate it.
 Optionally allowing a location for the XSDs to be passed in is a good idea
as a lot of XML files don't populate the xsi:schemaLocation.

_______________________________________________
Perl-XML mailing list
[email protected]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs