[thelist] php regexp help (or some other solution maybe..) solved

Tom Dell'Aringa pixelmech at yahoo.com
Tue Dec 31 16:26:00 CST 2002

--- Kelly Hallman <khallman at wrack.org> wrote:
> The error your getting is of the cut and paste variety:
> On Tue, 31 Dec 2002, Tom Dell'Aringa wrote:
> > $xml_parser = xml_parser_create();
>    ^^^^^^^^^^
> >    xml_parse($xmlparser, $body, 1)
>                ^^^^^^^^^^ should match the parser resource created
> above

err...that's embarassing...

> The 1 is the finished argument.  When sending data to your XML
> parser, the
> finished argument should evaluate to true when you have sent the
> last of
> your data to xml_parse().
> A user note on the xml_parse() manual page mentions a caveat using
> feof($fp) as the finished argument, as your previous code did.

Well I'm glad we did it this way then! Thanks for all the help. I did
get an

XML error: junk after document element at line 4318

At the end, I'll have to look at the xml it wrote. I don't think its
a problem for me though.


var me = tom.pixelmech.webDeveloper();

[Making A Commercial Case for Adopting Web Standards]

Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now.

More information about the thelist mailing list