2006 Nov 01 9:23 AM
Hello,
i am using the method find_from_path_ns of ixml library to get a node from my xml document.
for example:
<root>
<childs>
<child attr="1">
<type>A</type>
</child>
<child attr="2">
<type>B</type>
</child>
</childs>
</root>
When the path contains a condition (see below) i get no element back. What do i make wrong?
lp_path = '/root/childs/child[1]'.
lp_path = '/root/childs/child[@attr=1]'.
lp_path = '/root/childs/child[type=''B'']'.
lp_path = '/root/childs/child[type="B"]'.
lp_path = '/root/childs/child[type=B]'.
lr_xml_elem = lr_xml_doc->find_from_path_ns( default_uri = lp_uri path = lp_path ).
Thanks in advance
Sebastian
Message was edited by: Sebastian Rasp
Message was edited by: Sebastian Rasp
2006 Nov 27 4:57 PM
The method find_from_path_ns won´t return a node when the path contains condition. It´s better to use method set_expression of cl_xslt_processor class.