CGI/Perl Guide | Learning Center | Forums | Advertise | Login
Site Search: in

  Main Index MAIN
Search Posts SEARCH
Who's Online WHO'S
Log in LOG

Home: Perl Programming Help: Intermediate:
new line with each element in XML


New User

Feb 15, 2008, 1:22 PM

Post #1 of 1 (427 views)
new line with each element in XML Can't Post


i am using XML::DOM module and creating xml file.i am working LINUX O/S and i wanted my xml file looks to be the same as how it will be, whem it opens in Internet Explorer.

i.e New Line after each tag.

right now it is printing the whole XML in One line.

$xmlFileHandle = XML::DOM::Document -> new;
$parentElement = $xmlFileHandle->createElement( "XXXX" );

$xmlFileHandle->printToFile( "test.xml" );

it would be great, if some one can ghelp me how to get new line after each element.



Search for (options) Powered by Gossamer Forum v.1.2.0

Web Applications & Managed Hosting Powered by Gossamer Threads
Visit our Mailing List Archives