Class XMLElement
A class for XML elements which may have attributes, or contain other XML sub-elements
Package: awl\XMLElement
Copyright: Catalyst .Net Ltd, Morphoss Ltd http://www.morphoss.com/
License: GNU LGPL version 3 or later
Author: Andrew McMillan andrew@mcmillan.net.nz
Located at XMLElement.php
Copyright: Catalyst .Net Ltd, Morphoss Ltd http://www.morphoss.com/
License: GNU LGPL version 3 or later
Author: Andrew McMillan andrew@mcmillan.net.nz
Located at XMLElement.php
public
|
#
__construct( string $tagname, mixed $content = false, array $attributes = false, string $xmlns = null )
Constructor - nothing fancy as yet. |
public
integer
|
|
public
|
|
public
|
|
public
string
|
|
public
string
|
|
public
string
|
|
public
array
|
|
public
array
|
|
public
array
|
#
GetElements( $tag = null, $recursive = false )
Return an array of elements matching the specified tag, or all elements if no tag is supplied. Unlike GetContent() this will always return an array. |
public
array
|
|
public
|
|
public
objectref
&
|
#
NewElement( string $tagname, mixed $content = false, array $attributes = false, $xmlns = null )
Add a new sub-element |
public
string
|
#
RenderContent( $indent = 0, $nslist = null, $force_xmlns = false )
Render just the internal content |
public
|
|
public
|
protected
|
$tagname
|
|
protected
|
$xmlns
|
|
protected
|
$attributes
|
|
protected
|
$content
|
|
protected
|
$_parent
|