Re: Simple XML, (x)html, and xpath

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Andrew Ballard wrote:
> On Fri, May 25, 2012 at 3:57 AM, Gary
> wrote:
>> If I use simplexml_load_string to create an XML object 
[...]
>> I cannot seem to get anything out of an xpath expression, no matter
>> what I try.
>>
>> If, however, I remove the 'xmlns="http://www.w3.org/1999/xhtml";' in
> the
>> html element, it works fine.

> I am not sure what you have tried, but namespaces change everything in
> XPath compared to documents without them.

I tried the simplest thnig I could think would work. I didn't know about
the namespaces thing (I haven't had a lot to do with xpath
before). Thanks. I'll sort something out from that info.

-- 
Gary        Please do NOT send me 'courtesy' replies off-list.


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux