Sax Sax(
[String
$file = '']
)
|
|
Constructor
Parameters:
|
String |
$file: |
The xml file to parse |
void characterData(
String
$parser, mixed
$data, String
$name
)
|
|
Used to catch the event for handling the data.
Character data is rougly all the non-markup content of xml documents.
Parameters:
|
String |
$parser: |
The xml parser |
|
String |
$name: |
The data |
void defaultData(
String
$parser, String
$data
)
|
|
Used to catch the event for handling the default data.
It will be called for each piece of xml that doesn't have a set handler
Parameters:
|
String |
$parser: |
The xml parser |
|
String |
$data: |
The default data |
Destructor
Free the resources
void display(
[String
$file = '']
)
|
|
Display html
Parameters:
|
String |
$file: |
The file to parse |
API Tags:
void endElement(
String
$parser, String
$name
)
|
|
Used to catch the event for end of element.
Parameters:
|
String |
$parser: |
The xml parser |
|
String |
$name: |
The name of the element |
Returns the xml file as html
API Tags:
| Return: | The xml converted to html |
Redefinition of:
- Object::getHtml()
- Returns the html for the element
void parse(
String
$file
)
|
|
Parse the specified xml file, and call the handlers
Parameters:
|
String |
$file: |
The file to read and parse as xml |
void startElement(
String
$parser, String
$name, String
$attribs
)
|
|
Used to catch the events for working with or handling the start and end tags within the xml file.
Element events are issued whenever the xml parser encounters start or end tags.
Parameters:
|
String |
$parser: |
The xml parser |
|
String |
$name: |
The name of the element |
|
String |
$attribs: |
An array of attributes |