Re: [xml] Xpath question

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

Say I have an xml tree:


       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


Liam Quin - XML Activity Lead, W3C,
Pictures from old books:

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