Title: Message
Hello all.  I have a general question about the XPathEvaluator I have yet to find the answer to.
 
Let's say I have a DOM like this:    
 
 
    A
        1
        1
        2
    A
        1
        2
        3
    A
        1
    B         
        1
        2
        3
        4
 
(I hope everyone can interpret that as a DOM tree)
 
Now, let's say I use an XPathEvaluator.  Now, I know if I use the DocumentElement of the tree as the ContextNode in a call to XPathEvalutor::selectNodeList(),
and I want to look up the "2" under B, I would use an xpath _expression_ like:  "B/3".
 
Now, what if I use "B" as my Context node... do I have to take "B" into account when using an xpath _expression_, or do I just do "3" to get the node called "3" that is a child of "B"?
 

Rich Stephens
Software Developer
Optio Software, Inc.
Windward Fairways II
3015 Windward Plaza
Alpharetta, GA 30005
(770) 576-3561
[EMAIL PROTECTED]

 

Reply via email to