2014 Nov 20 5:12 AM
Hi All,
I need to find a particular node given it's name.I have created the XML_DOC instance of CL_XML_DOCUMENT ,as below
xml_doc->parse_string( stream = lv_str ).
Here lv_str contains xml code.I know by find_node ( ) method we can search a node given it's tag name ,and it always returns first node with the specified tag name, But i need to find the node(say A) which is nested inside another tag (say A again) directly by giving the attribute values of that node.To Elaborate please consider below xml example code : --
<?xml version="1.0" ?>
<Component Name="SALV_WD_TABLE" ConfId="0910OZSSFXLYZM6624Y9FW96E1FLNLTP" ConfType="08" ConfVar="OWNRNI">
- <Item Index="1">
</Item>
</Node>
.
.
.
.
Thanks,
Avinash D M
2014 Nov 20 6:09 AM
Hi,
You can use method GET_CHILD of class CL_RSDD_CS_XML_READER.
Regards,
Ashish