Reply to DOMXML issues

Your name:

Reply:


Posted by tg on 12/01/06 19:38

I've been stabbing at this for the past hour and I figured it out, but
there's some erratic behavior under certain conditions that I think I
should mention...

I used tidy to clean up an html document before reading it into an xml
document via DOMDocument->loadXML(). When I load the page via
loadXML(), the XPath won't return values at all for queries other than
"//" "*" or "." (such as //a, etc)

When I switch to DOMDocument->loadHTML(), it works fine.

I was wondering if anyone could give me a reason for this. It works
now, so I'm not complaining, just there was nothing in TFM to lead me
to believe this behavior would arise.

Thanks,

Using

PHP 5.2.0 with Suhosin-Patch 0.9.6.2 (cli) (built: Nov 30 2006
17:40:17)
Zend Engine v2.2.0, Copyright (c) 1998-2006 Zend Technologies

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация