Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

Re: create XML element with namespace

by ramrod (Chaplain)
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 perusing the Monastery: (7)
As of 2015-07-04 21:45 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (60 votes), past polls