Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

Re^5: Formatting in XML::Twig->print()

by Nitrox (Chaplain)
on Feb 12, 2005 at 19:59 UTC ( #430486=note: print w/replies, xml ) Need Help??


in reply to Re^4: Formatting in XML::Twig->print()
in thread Formatting in XML::Twig->print()

Perfect! That is the combination I was looking for.

One other minor issue; the Encoding declaration line, <?xml version="1.0" encoding="ISO-8859-1"?>, from the original input file doesn't get written to the output file. Is this another setting I overlooked or do I need to simply print that manually before printing the XML?

Thanks for all your help.

-Nitrox

Replies are listed 'Best First'.
Re^6: Formatting in XML::Twig->print()
by mirod (Canon) on Feb 12, 2005 at 20:05 UTC

    I think it is because you print the root element of the document ($parser->root->print(\*PF)), instead of simply printing the document ($parser->print(\*PF)).

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others avoiding work at the Monastery: (2)
As of 2023-03-20 19:52 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Which type of climate do you prefer to live in?






    Results (59 votes). Check out past polls.

    Notices?