Help for this page

Select Code to Download


  1. or download this
    #$rpt is just a namespace number retrieved from sub and is correct for
    + each file.
    $nsdevices="//ns" . $rpt. ":device";
    my @devices = $doc->findnodes($nsdevices);
    print "nsdevices:$nsdevices\n";
    
  2. or download this
    <?xml version='1.0' encoding='utf-8'?><Notify xmlns:xsd="http://www.w3
    +.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-inst
    +ance" xmlns="http://docs.oasis-open.org/wsn/b-2">
    <NotificationMessage>
    ...
    <ns1:rpt xmlns:ns1="http://www.url.com/path/for/rpt">
    <ns1:reportObject>
    <ns1:device timestamp="2016-01-01T00:00:00.000-00:00">