Help | Site Map
Connecting Tech Pros Worldwide
 
 
LinkBack Thread Tools
  #1  
Old November 4th, 2006, 02:55 AM
Ken Browning
Guest
 
Posts: n/a
Default Perl XML Question

I have been working with Perl for a while now, but have not used it
with XML - I am an XML noob.

I want to be able to read an XML schema file and initialize an
instance of the data item specified in the XML schema file. I then
would like to initialize the various "fields" that make up theoverall
item. Once I have all my data in order I will use "Post"
functionality (that part works already for me!) to send the item on
its way. Any suggestions of the first part of the scenario I
describe?
  #2  
Old November 6th, 2006, 06:15 PM
Jim Gibson
Guest
 
Posts: n/a
Default Re: Perl XML Question

In article <ua1ok21p46uorso4icfusa50v4nvmcjb9v@4ax.com>, Ken Browning
<kenbrow@bellsouth.netwrote:
Quote:
I have been working with Perl for a while now, but have not used it
with XML - I am an XML noob.
>
I want to be able to read an XML schema file and initialize an
instance of the data item specified in the XML schema file. I then
would like to initialize the various "fields" that make up theoverall
item. Once I have all my data in order I will use "Post"
functionality (that part works already for me!) to send the item on
its way. Any suggestions of the first part of the scenario I
describe?
There are many XML Perl modules on CPAN (see <http://search.cpan.org).
I recommend starting with XML::Simple. You will need an XML parser
module as well, for example the XML::Parser module (which needs the
expat library) or XML::SAX::PurePerl if you can't or don't want to
install the expat library. The former is faster, but the latter is pure
Perl. For larger, more complex XML tasks, you may want to look at
XML::Twig or write your own SAX processing routines.

FYI: this newsgroup is defunct. Try comp.lang.perl.misc in the future,
or comp.lang.perl.modules for help on specific modules.
 

Bookmarks

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

What is Bytes?

We are a network of experts and professionals in IT and software development that help one another with answers to tough questions and share insights. Get the best answers to your questions from over network members.
Post your question now . . .
It's fast and it's free

Popular Articles