BSD Ports

devel/pear-XML_Parser 1.3.8 DragonFly

PEAR XML parsing class based on PHP's bundled expat

System
DragonFly
Repository
DPorts
Maintainer
[email protected] (as in FreeBSD)
License
BSD2CLAUSE
Categories
devel, pear
Package size
13.8 KiB, 64.5 KiB installed

Description

This is an XML parser based on PHPs built-in xml extension.

It supports two basic modes of operation: "func" and "event". In "func" mode, it will look for a function named after each element (xmltag_ELEMENT for start tags and xmltag_ELEMENT_ for end tags), and in "event" mode it uses a set of generic callbacks.

Since version 1.2.0 there's a new XML_Parser_Simple class that makes parsing of most XML documents easier, by automatically providing a stack for the elements.

Furthermore its now possible to split the parser from the handler object, so you do not have to extend XML_Parser anymore in order to parse a document with it.

In the other systems

SystemPortVersion
DragonFlydevel/pear-XML_Parser1.3.8
FreeBSDdevel/pear-XML_Parser1.3.8
HardenedBSDdevel/pear-XML_Parser1.3.8
GhostBSDdevel/pear-XML_Parser1.3.8

Install

Binary package:

pkg install php81-pear-XML_Parser

From DPorts:

cd /usr/dports/devel/pear-XML_Parser && make install clean

Dependencies

Run dependencies 2

Configuration

No options to configure.

Service scripts
none
Flavors
php82-pear-XML_Parser-1.3.8, php83-pear-XML_Parser-1.3.8, php84-pear-XML_Parser-1.3.8