Re: xml_error_string
| From: | Matt McClanahan | Date: | Thu, 16 Nov 2000 19:38:18 +0000 |
| Subject: | Re: xml_error_string | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-25760@lists.php.net to get a copy of this message | ||
On Thu, 16 Nov 2000, Ignacio Vazquez-Abrams wrote:
> Does your XML follow spec? The following is legal:
>
> <FIRSTTAG>
> <SECONDTAG />
> </FIRSTTAG>
>
> The following is not:
>
> <FIRSTTAG>
> <SECONDTAG>
> </FIRSTTAG>
>
> If your XML looks like the second example above, then:
>
> CONGRATULATIONS!
> You have now discovered why I had to build my own pseudo-XML parser by
> hand.
But the second example is wrong. Why write a custom parser instead of
just fixing the erroneous XML?
Matt