[gdome] XPATH query...



Kindly see the XML snipett below:

<ROOT version="1.0">
 
  <HEADERS>
    
    <HEADER type="EVENT"/>
    <HEADER guid="12345"/>
  
  </HEADERS>

</ROOT>

I want to access attribute guid. I did the following.

1>

Constructed the XPATH:
//ROOT/HEADERS/HEADER[1]

2> Called gdome_xpeval_evaluate().

3> Called gdome_xpresult_iterateNext().
   My query: Do I need to call gdome_xpresult_singleNodeValue().

4> Called
   attr = gdome_el_getAttributeNode();
   to get the attribute guid.

However, gdome_el_getAttributeNode() is returning NULL to attr.

I'm not being able to figure what's happening.

Kindly help.

Regards,
Sam Oak.




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