xml 
[ doc home ] [ class tree: xml ] [ index: xml ] [ all elements ]

Class: IsterXmlExpat

Source Location: /IsterXmlExpat.php

Class Overview

IsterObject
   |
   --IsterXmlExpat

This class represents a generic namespace aware expat parser.


Author(s): Ingo Schramm   

Copyright: Copyright (c) 2005 Ister.ORG Ingo Schramm

Variables

Methods


Child classes:

IsterXmlExpatDumper
This class represents an expat parser dumping everything as it is parsed to STDOUT.
IsterXmlExpatNonValid
This class represents a non validating expat parser.

Inherited Constants

Inherited Variables

Inherited Methods

Class: IsterObject

IsterObject::IsterObject()
Constructor
IsterObject::abstractMethodError()
Report attempt to call an abstract method.
IsterObject::addLogger()
Add an IsterLogger to process log messages.
IsterObject::deleteLogger()
Delete an already registered IsterLogger.
IsterObject::getLoggerNames()
Fetch the names of all currently registered IsterLoggers.
IsterObject::getMem()
Return maximum amount of memory an application has allocated at this point.
IsterObject::log()
Trigger a log message.
IsterObject::passPHPmessage()
Catch PHP E_WARNING and E_NOTICE messages.
IsterObject::serialize()
Serialize the object.
IsterObject::setLogLocal()
Set logging local for the current object.
IsterObject::setupLogger()
Setup a logger.
IsterObject::triggerError()
Alias for log();
IsterObject::unserialize()
Unserialize the object.
IsterObject::__sleep()
Executed prior to serialize().
IsterObject::__wakeup()
Executed prior to unserialize().

Class Details

This class represents a generic namespace aware expat parser.

Child classes must implement the following methods:

  1. $child->tag_open($parser, $tag, $attributes);
  2. $child->tag_close($parser, $tag);
  3. $child->character_data($parser, $data);
  4. $child->default_data($parser, $data);
  5. $child->end_namespace_decl($parser, $data);
  6. $child->start_namespace_decl($parser, $data);
  7. $child->external_entity_ref($parser, $openentitynames, $base, $systemid, $publicid);
  8. $child->notation_decl($parser, $notationname, $base, $systemid, $publicid );
  9. $child->processing_instruction($parser, $target, $data);
  10. $child->unparsed_entity_decl($parser, $entityname, $base, $systemid, $publicid, $notationname);

The parser expects UTF-8 input.


copyright:  Copyright (c) 2005 Ister.ORG Ingo Schramm
author:  Ingo Schramm


[ Top ]


Class Variables

protected mixed $final
protected mixed $parser
protected mixed $xml
[ Top ]



Class Methods


constructor IsterXmlExpat

IsterXmlExpat IsterXmlExpat( [mixed $options = null])

Constructor

[ Top ]

method getParser

resource getParser( )

[ Top ]

method locate

array locate( )

Get current parser position.

  1. array( 'byte' => byte index,
  2. 'column' => column number,
  3. 'line' => line number)


[ Top ]

method parse

mixed parse( )

Parse the current XML source.

return:  true if final, false otherwise, null on error
[ Top ]

method register

void register( )

access:  protected
[ Top ]

method setParser

boolean setParser( resource $parser)

Parameters:

resource   $parser  

[ Top ]

method setSourceFile

boolean setSourceFile( string $path, [integer $bufsize = 8192])

Parameters:

string   $path  
integer   $bufsize  

[ Top ]

method setSourceString

boolean setSourceString( string $string)

Parameters:

string   $string  

[ Top ]


Documentation generated on Tue, 20 Dec 2005 11:21:36 +0100 by phpDocumentor 1.3.0RC4