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

Class: IsterXmlExpatNonValid

Source Location: /IsterXmlExpatNonValid.php

Class Overview

IsterObject
   |
   --IsterXmlExpat
      |
      --IsterXmlExpatNonValid

This class represents a non validating expat parser.


Author(s): Ingo Schramm   

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

Methods


Inherited Constants

Inherited Variables

Inherited Methods

Class: IsterXmlExpat

IsterXmlExpat::IsterXmlExpat()
Constructor
IsterXmlExpat::getParser()
IsterXmlExpat::locate()
Get current parser position.
IsterXmlExpat::parse()
Parse the current XML source.
IsterXmlExpat::register()
IsterXmlExpat::setParser()
IsterXmlExpat::setSourceFile()
IsterXmlExpat::setSourceString()

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 non validating expat parser.

The parser expects UTF-8 input.

Note: There is still a problem with character entities if the resulting character is multibyte. They are automatically resolved by the underlying expat parser but at the moment it is not possible to restore them for write back of the XML document.

Note: Since this builds a complete document tree, it has a relatively large memory footprint.


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


[ Top ]


Class Methods


constructor IsterXmlExpatNonValid

IsterXmlExpatNonValid IsterXmlExpatNonValid( [mixed $options = null])

Constructor

[ Top ]

method character_data

boolean character_data( resource $parser, string $data)

Parameters:

resource   $parser  
string   $data  

[ Top ]

method default_data

boolean default_data( resource $parser, string $data)

Parameters:

resource   $parser  
string   $data  

[ Top ]

method end_namespace_decl

boolean end_namespace_decl( resource $parser, string $data)

Parameters:

resource   $parser  
string   $data  

[ Top ]

method external_entity_ref

boolean external_entity_ref( resource $parser, string $openentitynames, string $base, string $systemid, string $publicid)

Note: returning a false value triggers a warning in expat parser.

Parameters:

resource   $parser  
string   $openentitynames  
string   $base  
string   $systemid  
string   $publicid  

[ Top ]

method getDocument

object IsterXmlElement getDocument( )

[ Top ]

method notation_decl

boolean notation_decl( resource $parser, string $notationname, string $base, string $systemid, string $publicid)

Parameters:

resource   $parser  
string   $notationname  
string   $base  
string   $systemid  
string   $publicid  

[ Top ]

method processing_instruction

boolean processing_instruction( resource $parser, string $target, string $data)

Handle processing instructions.

Subclasses of this class may implement a method

pi_run(string $target, string $data)
. If such a method exists, it is called whenever a processing instruction was parsed.


Parameters:

resource   $parser  
string   $target  
string   $data  

[ Top ]

method start_namespace_decl

boolean start_namespace_decl( resource $parser, string $id, string $uri)

Parameters:

resource   $parser  
string   $id  
string   $uri  

[ Top ]

method tag_close

boolean tag_close( resource $parser, string $tag)

Parameters:

resource   $parser  
string   $tag  

[ Top ]

method tag_open

boolean tag_open( resource $parser, string $tag, array $attributes)

Parameters:

resource   $parser  
string   $tag  
array   $attributes  

[ Top ]

method unparsed_entity

boolean unparsed_entity( resource $parser, string $entityname, string $base, string $systemid, string $publicid, string $notationname)

Parameters:

resource   $parser  
string   $entityname  
string   $base  
string   $systemid  
string   $publicid  
string   $notationname  

[ Top ]

method xinclude

void xinclude( )

Process XInclude

[ Top ]


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