Re: xml_error_string

From: Date: Thu, 16 Nov 2000 19:41:07 +0000
Subject: Re: xml_error_string
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-25762@lists.php.net to get a copy of this message
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. -- Ignacio Vazquez-Abrams <ignacio@openservices.net>

« previous php.general (#25762) next »