PEAR::XML_HTMLSax provides an API very similar to the native PHP XML

extension (http://www.php.net/xml), allowing handlers using one to be easily
adapted to the other.

The key difference is HTMLSax will not break on badly formed XML, allowing it
to be used for parsing HTML documents. Otherwise HTMLSax supports all the
handlers available from Expat except namespace and external entity handlers.

PR:		ports/79403
Submitted by:	Antonio Carlos Venancio Junior <antonio@php.net>
This commit is contained in:
Pav Lucistnik 2005-04-11 19:09:35 +00:00
parent 19afc93c63
commit a6037d8db8
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=133062
4 changed files with 44 additions and 0 deletions

View file

@ -501,6 +501,7 @@
SUBDIR += pardiff
SUBDIR += pdftohtml
SUBDIR += pear-Spreadsheet_Excel_Writer
SUBDIR += pear-XML_HTMLSax
SUBDIR += perl2html
SUBDIR += php4-ctype
SUBDIR += php4-domxml

View file

@ -0,0 +1,29 @@
# Ports collection makefile for: pear-XML_HTMLSax
# Date created: 31 March 2005
# Whom: Antonio Carlos Venancio Junior (<antonio@inf.ufsc.br>)
#
# $FreeBSD$
#
PORTNAME= XML_HTMLSax
PORTVERSION= 2.1.2
CATEGORIES= textproc devel pear
MAINTAINER= antonio@php.net
COMMENT= PEAR SAX parser for HTML and other badly formed XML documents
BUILD_DEPENDS= ${PEARDIR}/PEAR.php:${PORTSDIR}/devel/pear-PEAR
RUN_DEPENDS= ${BUILD_DEPENDS}
CATEGORY= XML
FILES= XML_HTMLSax.php HTMLSax/XML_HTMLSax_States.php \
HTMLSax/XML_HTMLSax_Decorators.php
DOCS= Readme
EXAMPLES= SimpleExample.php HTMLtoXHTML.php ExpatvsHtmlSax.php example.html
TESTS= index.php unit_tests.php xml_htmlsax_test.php
_EXAMPLESDIR= docs/examples
_TESTSDIR= docs/tests
.include <bsd.port.pre.mk>
.include "${PORTSDIR}/devel/pear-PEAR/Makefile.common"
.include <bsd.port.post.mk>

View file

@ -0,0 +1,2 @@
MD5 (PEAR/XML_HTMLSax-2.1.2.tgz) = f2cd9ea8ed1c59cc3046675d41c7cf98
SIZE (PEAR/XML_HTMLSax-2.1.2.tgz) = 16099

View file

@ -0,0 +1,12 @@
PEAR::XML_HTMLSax provides an API very similar to the native PHP XML
extension (http://www.php.net/xml), allowing handlers using one to be easily
adapted to the other.
The key difference is HTMLSax will not break on badly formed XML, allowing it
to be used for parsing HTML documents. Otherwise HTMLSax supports all the
handlers available from Expat except namespace and external entity handlers.
Provides methods for handling XML escapes as well as JSP/ASP opening and close
tags.
WWW: http://pear.php.net/package/XML_HTMLSax/