List Info

Thread: libxml2 and XQuery sequences




libxml2 and XQuery sequences
user name
2006-07-28 04:46:38
Hello,

Does anybody use libxml2 to parse not entire docs but parts
of them?
Ideally, it would be work with items of XQuery Data Model.
At least,
maybe some sample parsing of a sequence of xml elements
exists
somewhere...

Thanks.

-- 
Best regards,
Nikolay
_______________________________________________
xml mailing list, project page  http://xmlsoft.org/
xmlgnome.org
http://mai
l.gnome.org/mailman/listinfo/xml
libxml2 and XQuery sequences
user name
2006-07-28 06:56:16
On Fri, Jul 28, 2006 at 08:46:38AM +0400, Nikolay
Samokhvalov wrote:
> Hello,
> 
> Does anybody use libxml2 to parse not entire docs but
parts of them?

  there is no semantic in XML-1.0 for that kind of
operations. There is
libxml2 entry points like xmlParseBalancedChunkMemory and
xmlParseInNodeContext
but you have no garantee of applicability to a given task
since since 
there is no standard defining those.

Daniel

-- 
Daniel Veillard      | Red Hat http://redhat.com/
veillardredhat.com  | libxml GNOME XML XSLT toolkit  http://xmlsoft.org/
http://veillard.com/ |
Rpmfind RPM search engine http://rpmfind.net/
_______________________________________________
xml mailing list, project page  http://xmlsoft.org/
xmlgnome.org
http://mai
l.gnome.org/mailman/listinfo/xml
libxml2 and XQuery sequences
user name
2006-07-28 17:45:25
On Fri, 2006-07-28 at 08:46 +0400, Nikolay Samokhvalov
wrote:
> Does anybody use libxml2 to parse not entire docs but
parts of them?
> Ideally, it would be work with items of XQuery Data
Model.

libxsl supports xpath 1, not XPath 2; there's no support
right now for
the XPath 2.0 and XML Query Data Model (XDM).

>  At least,
> maybe some sample parsing of a sequence of xml elements
exists
> somewhere...
Put a wrapper element round them and you'll be fine.

Liam

-- 
Liam Quin - XML Activity Lead, W3C, http://www.w3.org/Peop
le/Quin/
Pictures from old books: http://fromoldbooks.org/
Ankh: irc.sorcery.net irc.gnome.org www.advogato.org

_______________________________________________
xml mailing list, project page  http://xmlsoft.org/
xmlgnome.org
http://mai
l.gnome.org/mailman/listinfo/xml
[1-3]

about | contact  Other archives ( Real Estate discussion Medical topics )