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: Beginner:
Process XML files

 



Shai
New User

Nov 13, 2012, 6:02 AM

Post #1 of 2 (1387 views)
Process XML files Can't Post

Hi,

I try to process XML files using XML::Simple. I read the file using XMLin and immediately write it out with XMLout, without any processing.

The destination file is created but the it saved in a different order. Is it possible to keep the order of the original file.

Thanks,

Shai


(This post was edited by Shai on Nov 13, 2012, 7:18 AM)


Laurent_R
Veteran / Moderator

Nov 13, 2012, 9:59 AM

Post #2 of 2 (1378 views)
Re: [Shai] Process XML files [In reply to] Can't Post

If you juste want to copy the file without any processing, don't use the module, simply copy the lin es one by one.

The module you are using is using hash structures to store your data, and a hash is not keeping the order of its elements, so they will appear in apparently random order.

 
 


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

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