parsing malformed xml documents

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

 



Hei guys,
I´m parsing some xml's and fetching nodes using xpath, and the PHP 5.0 DOM. Unfortunately, some documents have white spaces in the beginning or some missing tags. In some situations, the script just skips that xml, or even crashes without notice. I tried loading them as html, and disabling validation, but that didn´t do the trick, as they have invalid html tags. I wonder if there is some way (maybe an external class, or something) to accomplish this. I know that theorically, it would be better to have well formed xml (I also think so), but I need to handle them at any rate, and they´re created by an external source away from my control.

Thanks in advance,

Mariano Guadagnini


--
No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.1.385 / Virus Database: 268.3.5/300 - Release Date: 03/04/2006

--
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