Re: [PHP] parsing malformed xml documents

2006-04-04 Thread Rasmus Lerdorf
Mariano Guadagnini wrote: 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 loa

[PHP] parsing malformed xml documents

2006-04-04 Thread Mariano Guadagnini
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 dis