in reply to Parsing XML

Try XML::Parser. The "no element . . ." error may indicate malformed xml, but it may just be that it doesn't act like RSS. The position suggests that you may lack a root element.

After Compline,
Zaxo

Replies are listed 'Best First'.
Re: Parsing XML
by Anonymous Monk on May 29, 2005 at 08:31 UTC
    Thanks for the quick replies

    Nope, never tried validating the xml.

    The thing is, I think I'm trying to use XML::RSS and parsing the file as if it was a RSS xml feed file.

    The beginning part of the first line is <?xml version="1.0"?>

    Basically I want to read and parse certain items from the xml file, so I guess I will try using XML::Parser.
    From my post above, the error says its coming from line 187 from the XML::Parser module file. Its maybe because I'm using it with XML::RSS and that my xml file is not a rss rile, but instead a xml 1.0 file.

    Thanks