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

 



perlposts
New User

Jul 25, 2007, 10:22 PM

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

HI,

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.



Thanks.


KevinR
Veteran


Jul 26, 2007, 2:56 PM

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