Re: [PHP] SimpleXML error

2007-11-26 Thread Casey
I'm not sure, but try casting $xml->title to string, like this: $title = (string) $xml->title; On Nov 26, 2007, at 1:44 PM, Skip Evans <[EMAIL PROTECTED]> wrote: Hey all, I have some XML files I need to parse and then display (they have HTML formatting in them as well). They contain the

[PHP] SimpleXML error

2007-11-26 Thread Skip Evans
Hey all, I have some XML files I need to parse and then display (they have HTML formatting in them as well). They contain the following: Document DTD 20031113//EN" "galeeBkdoc.dtd"> 214-215 Thomas Jefferson and the Revision of the Virginia Laws I am then attempting to extract the t