Re: xml_error_string
| From: | David P. Schwartz | Date: | Thu, 16 Nov 2000 20:57:16 +0000 |
| Subject: | Re: xml_error_string | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-25786@lists.php.net to get a copy of this message | ||
Ignacio Vazquez-Abrams wrote:
> On Thu, 16 Nov 2000, Matt McClanahan wrote:
>
> > 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
> >
>
> HINT: Most people write HTML like the second example.
>
HINT: Most people write Pascal, Ada, and FORTRAN differently, also. Are you
modifying your non-XML parser to take this into account, too?