WACT
[ class tree: WACT ] [ index: WACT ] [ all elements ]

Class: HTMLParser

Source Location: /framework/template/compiler/htmlparser.inc.php

Class Overview


HTML/XHTML/XML parser fast parser robustly handles malformed input.

Variables

Methods


Inherited Variables

Inherited Methods


Class Details

HTML/XHTML/XML parser fast parser robustly handles malformed input.

All events are triggered by valid markup. If markup is invalid, it is treated as data event.

abstract:  
access:  protected

Class Variables


$length =

Length of the XML document in characters
access:  private
Type:   int

$Observer =

Type:   mixed

$position =

Position in XML document relative to start (0)
access:  private
Type:   int

$publicId =

Type:   mixed

$rawtext =

XML document being parsed
access:  private
Type:   string

Class Methods


constructor HTMLParser



HTMLParser HTMLParser( mixed &$Observer)

API Tags:

var:  event handler
access:  protected

method getColumnNumber



void getColumnNumber( )

method getLineNumber



void getLineNumber( )

method getPublicId



void getPublicId( )

method ignoreWhitespace

Moves the position forward past any whitespace characters

void ignoreWhitespace( )

API Tags:

access:  protected

method parse

Begins the parsing operation, setting up any decorators, depending on parse options invoking _parse() to execute parsing

void parse( string $data, [mixed $publicId = NULL])

API Tags:

access:  protected

Parameters:

string   $data   XML document to parse
WACT: Copyright 2003 Procata, Inc. Released under the LGPL license (http://www.gnu.org/copyleft/lesser.html)
Documentation generated on Sun, 28 Nov 2004 19:47:02 -0800 by phpDocumentor 1.2.3