Re: [xslt] Extracting just the value of a property



On Mon, Feb 25, 2008 at 06:57:35PM +0000, Dan Stromberg wrote:
> On Sun, 24 Feb 2008 16:17:34 -0500, Liam R E Quin wrote:
> > If your document is large, or you're doing it often, yes, probably,
> > because then you could have the values indexed, and also because you
> > have access to a lot more functions you can call in your XPath
> > expressions if you need them.
> 
> We aren't using just huge XML documents, nor are we using them in tight 
> loops, so perhaps I'll ignore xquery for now.

  if your document is large just use a an xmlTextReader, it will go
way faster than loading the full document for XPath
  Read the doc, 
    http://xmlsoft.org/xmlreader.html
do a python mockup, it may be done in like 20 lines, then rewrite in C
for full performances. Suggesting XPath or even XQery for something that
simple really makes little sense, if done repetedly on large documents.

Daniel
  

-- 
Red Hat Virtualization group http://redhat.com/virtualization/
Daniel Veillard      | virtualization library  http://libvirt.org/
veillard redhat com  | libxml GNOME XML XSLT toolkit  http://xmlsoft.org/
http://veillard.com/ | Rpmfind RPM search engine  http://rpmfind.net/


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]