Help for this page

Select Code to Download


  1. or download this
    use strict;
    use XML::LibXML;
    ...
    
    # via findnodes
    warn 'q:* nodes are ', join (',', map {$_->nodeName} $doc->documentEle
    +ment->findnodes('//q:*')), "\n";
    
  2. or download this
    <?xml version="1.0"?>
    <q:one xmlns:q="http://www.example.com">
    ...
    namespace of q:two   is http://www.example.com
    namespace of q:three is
    q:* nodes are q:one,q:two