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


New User

Nov 13, 2012, 6:02 AM

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


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.



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

Veteran / Moderator

Nov 13, 2012, 9:59 AM

Post #2 of 2 (3656 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