Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things

Re: create XML element with namespace

by ramrod (Deacon)
on Apr 02, 2009 at 18:31 UTC ( #755068=note: print w/ replies, xml ) Need Help??

Help for this page

Select Code to Download

  1. or download this
    #Open and parse XML
    open (my $input, "<xmlsample.xml")or die "Could not open xml input.";
    open (my $OutputXML, ">xmlsample.xml") or die "Could not write XML fil
    print $OutputXML $pdoc->toString();
    close ($OutputXML) or die "Could not close written XML file.";
  2. or download this
    <root xmlns="bazongNS">
  3. or download this
    <?xml version="1.0"?>
    <root xmlns="bazongNS">

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://755068]
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others taking refuge in the Monastery: (6)
As of 2015-11-25 17:20 GMT
Find Nodes?
    Voting Booth?

    What would be the most significant thing to happen if a rope (or wire) tied the Earth and the Moon together?

    Results (683 votes), past polls