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

  Main Index MAIN
INDEX
Search Posts SEARCH
POSTS
Who's Online WHO'S
ONLINE
Log in LOG
IN

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

 



babu
New User

Feb 15, 2008, 1:22 PM

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

hi,

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.



Thanks

 
 


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

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