ASPN ActiveState Programmer Network
ActiveState
/ Home / Perl / PHP / Python / Tcl / XSLT /
/ Safari / My ASPN /
Cookbooks | Documentation | Mailing Lists | Modules | News Feeds | Products | User Groups


Recent Messages
List Archives
About the List
List Leaders
Subscription Options

View Subscriptions
Help

View by Topic
ActiveState
.NET Framework
Open Source
Perl
PHP
Python
Tcl
Web Services
XML & XSLT

View by Category
Database
General
SOAP
System Administration
Tools
User Interfaces
Web Programming
XML Programming


MyASPN >> Mail Archive >> perl-xml
perl-xml
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

Privacy Policy | Email Opt-out | Feedback | Syndication
© ActiveState Software Inc. All rights reserved