Help for this page

Select Code to Download


  1. or download this
    <parent_node xmlns="my_context">
    <wrapper att1="abc">
    ...
    <childnodeA>stuff2</childnodeA>
    </wrapper>
    </parent_node>
    
  2. or download this
    
    $xpath = XML::LibXML::XPathContext->new($xml->documentElement);
    ...
            $att1 = $key->getAttribute('att1');
            $childnodeA = $key->findnodes('./childnodeA'); 
        }