Re: Bug #5138: XML module fails to interpret <ANCHOR> tags correctly
| From: | Ryan Gaul | Date: | Tue, 20 Jun 2000 15:51:03 +0000 |
| Subject: | Re: Bug #5138: XML module fails to interpret <ANCHOR> tags correctly | ||
| References: | 1 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-21845@lists.php.net to get a copy of this message | ||
Unofortunately, i think it would be difficult to modify expat to parse sgmal as
well, and still have it produce useful results with xml. You should check out
the source. It's in ext/xml/ in the php4 source tree.
If it is critical to you to be able to parse sgml, you might look at adding an
sgml parser to php. One such parser is James Clark's SP:
http://www.jclark.com/sp/index.htm
Writing extensions to php is not supposed to be that difficult. For more
info see the README.EXT_SKEL, apidoc.txt, and apidoc-zend.txt files in the php
source.
Ryan
On Tue, 20 Jun 2000, you wrote:
> Ryan, that was an easy one to cross off.. :) -
>
> Do you think there is any way to modify PHP or the xml library to accept SGML
> as well.. ??? - Is the interpretation/errors thrown out from PHP or the
> library/?
>
> regards
>
> alan
>
> Ryan Gaul <ryangaul@netscape.net> said:
>
> > This is not valid XML. The DTD is irrelevant. It should be <ANCHOR
> > ID="GtkContainer-struct"/> or have a </ANCHOR> tag.
> >
> >
> >
> > On Mon, 19 Jun 2000, alan_k@hklc.com wrote:
> > > From: alan_k@hklc.com
> > > Operating system: Linux Debian
> > > PHP version: 3.0.16
> > > PHP Bug Type: Other
> > > Bug description: XML module fails to interpret <ANCHOR> tags
> correctly
> > >
> > > running the sample programs in the documentaion over GTK's SGML -
> > > the following line gets the following error.
> > >
> > > <ANCHOR ID="GtkContainer-struct">
> > > XML error: mismatched tag at line 168 while parsing entity GtkContainer
> > >
> > >
> > > This looks like being due to the fact that there is no </anchor> - which
> is not needed by the dtd anyway -
> > >
> > > ps. the case in-sensitivity settings do not seem to apply to <!ENTITY
> > >
> > >
> > > --
> > > PHP Development Mailing List <'2PYv€˜˜¶
> > > ²0ÕÆþ
http://www.php.net/>
> > > To unsubscribe, e-mail: php-dev-unsubscribe@lists.php.net
> > > For additional commands, e-mail: php-dev-help@lists.php.net
> > > To contact the list administrators, e-mail: php-list-admin@lists.php.net
> > --
> > Marge, this ticket doesn't just give me a seat. It also gives me the
> > <BR>right -- no, the duty -- to make a complete ass of myself.
> > <BR>
> > <BR> -- Homer Simpson
> > <BR> Dancin' Homer
> >
> >
>
>
>
> --
> Technical Director
> Linux Center (HK) Ltd.
> www.hklc.com
--
Good morning, fellow employee. You'll notice that I am now a model
<BR>worker. We should continue this conversation later, during the designated
<BR>break periods. Sincerely, Homer Simpson.
<BR>
<BR> -- Homer Simpson
<BR> Homer's Enemy