Go Back   Velocity Reviews > Newsgroups > PERL
User Name
Password
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

Reply

PERL - Perl XML Question

 
Thread Tools Search this Thread
Old 11-04-2006, 03:13 AM   #1
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?


Ken Browning
  Reply With Quote
Old 11-06-2006, 06:38 PM   #2
Jim Gibson
 
Posts: n/a
Default Re: Perl XML Question

In article <>, Ken Browning
<> wrote:

> 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:arser module (which needs the
expat library) or XML::SAX:urePerl 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.
  Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump