Re: [xml] Xpath question



On Wed, 2007-04-25 at 16:32 -0700, Yong Chen (yongche) wrote:

Say I have an xml tree:


           A

       B         C

     D   E

[..]

Now say I have xpath "/A/B", it selects node "B". When I return the
result, should I return B node only, or I should return B and also its
child (D and E)?

You return the whole subtree.

Assuming "you" is an XPath implementation.

This list is really for the Gnome XML library, which already implements
XPath.

Liam


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




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