Perl: parsing XML, what is needed?

John Bokma

Usenet Archive
Joined
Jul 17, 2003
Messages
2,948
Reaction score
0
Hi,

After some attempts using XSLT I am thinking about switching to Perl with a SAX (like?) parser.

Which module(s) should I use? I see so many XML related modules at search.cpan.org that it is unclear to me.

I have some experience with SAX using Java, so I want to use that but from Perl.

Is a (the?) SAX Perl module also able to validate using DTD or XML Schema? I understand that the latter has some advantages over DTD?

I want to switch to Perl since I am not aware how to do things like determining image width and heigth using XSLT, creating directories and such. I have very small experience with Xalan.

Thanks in advance,
Regards,

John
 

Bjoern Hoehrmann

Usenet Archive
Joined
Aug 15, 2000
Messages
719
Reaction score
0
* John Bokma wrote in comp.text.xml:
Which module(s) should I use? I see so many XML related modules at search.cpan.org that it is unclear to me.

http://perl-xml.sourceforge.net/faq/ and there are some articles on xml.com that might help.
Is a (the?) SAX Perl module also able to validate using DTD or XML Schema? I understand that the latter has some advantages over DTD?

There are modules with this capability. Yes, XML Schema has some advantages over DTDs.
I want to switch to Perl since I am not aware how to do things like determining image width and heigth using XSLT, creating directories and such. I have very small experience with Xalan.

XML::LibXML allows you to write extension functions in Perl, you could use both.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads


Members online

No members online now.

Forum statistics

Threads
548,042
Messages
3,104,224
Members
248,132
Latest member
henrywalsh

Latest Threads

Top