in reply to Re: XML Parsing
in thread XML Parsing

I think you mean Tree mode, not Table mode. (There's also an "Object" mode that returns a tree of Perl objects, named based on the element names.)

The only bad thing about Tree mode is that the resultant data structure is rather difficult to understand, in my opinion. It's certainly not going to give you a nice hash to play around with. :) But if you feel like figuring out how the tree is structured, that may be your best option.

There are some other modules that use tree representations: XML::Grove, XML::Twig, and XML::DOM. These are all discussed in that article I posted before.

Replies are listed 'Best First'.
Parse XML file encoded in ISO-8859-1
by madhavim (Initiate) on Jan 22, 2008 at 13:28 UTC
    Dear Friends, I have an XML file that’s encoded in ISO-8859-1. I have some European characters coming in from 2 fields (Name, Comments) in the XML file. Can anyone suggest if there are any functions in Perl to read those characters? Using Perl can I parse this xml file? Please suggest. I have not done this before. Regards, Madhavi.