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: General Discussions: General Questions:
Convert Perl Object to XMl tags


New User

Jul 25, 2007, 10:22 PM

Post #1 of 2 (7191 views)
Convert Perl Object to XMl tags Can't Post


I have a perl object (a hash reference with many levels) and would like to convert it to an xml structure so that each key represents a tag and the value represents the tag value .Does anyone know how to acheive this?

Note: there are several CPAN modules that convert a perl hash to a xml structure.But my requirement would be to convert the object directly to a xml structure and not form an intermediate hash structure by dereferncing the object references.



Jul 26, 2007, 2:56 PM

Post #2 of 2 (7189 views)
Re: [perlposts] Convert Perl Object to XMl tags [In reply to] Can't Post

You will have to dereference the hash first, there is no getting around that.


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

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