Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
PerlMonks  

Re: create XML element with namespace

by ramrod (Hermit)
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
    +e.";
    print $OutputXML $pdoc->toString();
    close ($OutputXML) or die "Could not close written XML file.";
    
  2. or download this
    <root xmlns="bazongNS">
    </root>
    
  3. or download this
    <?xml version="1.0"?>
    <root xmlns="bazongNS">
    <element/>
    </root>
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others musing on the Monastery: (5)
As of 2014-09-01 20:32 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My favorite cookbook is:










    Results (17 votes), past polls