Skip to Content
0
Former Member
Nov 01, 2006 at 09:23 AM

xpath,ixml,find_from_path_ns

210 Views

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