Schema caching

View: New views
2 Messages — Rating Filter:   Alert me  

Schema caching

by Hotmail-17 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Some parts of this message have been removed. Learn more about Nabble's security policy.

Hello,

Does libxml2 have XML Schema/grammar  caching? For example: load 1.xsd once and from now on test incoming XML instances against the cached and parsed schema.

Tx,

Yaron.

 


_______________________________________________
xml mailing list, project page  http://xmlsoft.org/
xml@...
http://mail.gnome.org/mailman/listinfo/xml

Re: Schema caching

by Daniel Veillard :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On Mon, Oct 19, 2009 at 05:13:50PM +0200, Hotmail wrote:
> Hello,
>
> Does libxml2 have XML Schema/grammar  caching? For example: load 1.xsd once
> and from now on test incoming XML instances against the cached and parsed
> schema.

  an xmlSchemaPtr can be reused as many time as you need. Somehow it
seems you didn't looked at the API, schema compilation and use are
clearly distinct operations.

Daniel

--
Daniel Veillard      | libxml Gnome XML XSLT toolkit  http://xmlsoft.org/
daniel@...  | Rpmfind RPM search engine http://rpmfind.net/
http://veillard.com/ | virtualization library  http://libvirt.org/
_______________________________________________
xml mailing list, project page  http://xmlsoft.org/
xml@...
http://mail.gnome.org/mailman/listinfo/xml