[xml] Xpath question


Say I have an xml tree:


       B         C

     D   E

Basically A being the root, containing B and C as its children, B
contains D and E as its children.

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)?

I can't find clear answer in spec.

Thanks in advance,
Yong Chen

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