Re: Validating with XML::LibXML::RelaxNG?
by Vaclav Barta other posts by this author
Jul 7 2009 5:18AM messages near this date
view in the new Beta List Site
Re: Validating with XML::LibXML::RelaxNG?
|
CPAN install directory usage
& XSLT On Tuesday 07 July 2009 11:56:53 Petr Pajas wrote:
> I just looked into the libxml2 source code to find out that it stores
> some per-node psvi information based on previous successful
> validation. If the node->psvi pointer equals the pointer to the
> definition it is currently being tested against, the validation of
> that node is skipped. This means that nodes that were once valid
...
> Not sure how to deal with this in XML::LibXML. Options include:
If you're concerned about efficiency, I suppose you can maintain a 3-state
flag per document:
- either it hasn't been validated before (and therefore has no validation
info)
- or it has been validated but hasn't changed since then (so the validation
info is correct)
- or has changed after validation - this is the only case when the next
validation must clear the cached info before it starts
Bye
Vasek
--
http://www.mangrove.cz/
Open Source integration
_______________________________________________
Perl-XML mailing list
Perl-XML@[...].com
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs
Thread:
Rodent of Unusual Size
Rodent of Unusual Size
Petr Pajas
Rodent of Unusual Size
Petr Pajas
Vaclav Barta
Rodent of Unusual Size
Vaclav Barta
|