Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
PerlMonks  

Using XML::Simple to create XML trees

by basicdez (Pilgrim)
on Aug 06, 2001 at 21:23 UTC ( [id://102517]=perlquestion: print w/replies, xml ) Need Help??

basicdez has asked for the wisdom of the Perl Monks concerning the following question:

Can I use this [ XML::Simple ] to create an XML Tree? If so, can you help me with this task? thanks basicdez

Edit Masem 2001-08-08 - Title change from 'XML::Simple' to avoid searching conflicts

Replies are listed 'Best First'.
Re: XML::Simple
by mirod (Canon) on Aug 06, 2001 at 21:40 UTC

    Have you done a Super Search on "XML::Simple"? You should get plenty of hits, it is the most commonly used XML module around here. Just one word if you want to get familiar with it: Data::Dumper is you friend! (Actually I am beginning to like Data::Denter more than Data::Dumper, but that's an other story).

    Although if what you want is to create XML from scratch XML::Writer, or even CGI.pm might be more appropriate.

      Thanks for your help. I will see what I can get done from here. I really need to use XML::simple as that is what I managed to get installed on my production box when the system admin guys were not looking and due to time constraints, I really need to get this code working. thanks for everything.
        I don't know if I what I want to do is to create an XML tree form scratch. What I am doing today is taking an XML tree and parsing it into data packets, then I am sending the data packets into a 4GL DataBase environment. What is supposed to happen in Phase II of this creation is that I am to take the data packets (aka Data Stream double quote delimitted text) and create an XML Tree to send back to the originator. So, please tell me, is this something that I need to use XML::Writer for. As near as I can tell all that XML::Simple and XML::Parser do is take incoming trees apart. What I really need help with is putting an outgoing tree together. Any help would be oh so very much so appreciated.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: perlquestion [id://102517]
Approved by root
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others goofing around in the Monastery: (4)
As of 2024-04-25 12:15 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found