XMLElementA class for XML elements which may have attributes, or contain other XML sub-elements
Located in /XMLElement.php (line 20)
XMLElement
__construct
(string $tagname, [mixed $content = false], [array $attributes = false], [string $xmlns = null])
objectref
&NewElement
(string $tagname, [mixed $content = false], [array $attributes = false], [ $xmlns = null])
Constructor __construct (line 35)
Constructor - nothing fancy as yet.
AddSubTag (line 206)
Add a sub-element
CountElements (line 59)
Count the number of elements
GetAttribute (line 112)
Accessor for a single attribute
GetAttributes (line 123)
Accessor for the attributes
GetContent (line 132)
Accessor for the content
GetElements (line 142)
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.
GetNSTag (line 103)
Accessor for the full-namespaced tag name
GetPath (line 166)
Return an array of elements matching the specified path
GetTag (line 94)
Accessor for the tag name
NewElement (line 221)
Add a new sub-element
Render (line 264)
Render the document tree into (nicely formatted) XML
RenderContent (line 234)
Render just the internal content
SetAttribute (line 72)
Set an element attribute to a value
SetContent (line 85)
Set the whole content to a value
__tostring (line 302)
Documentation generated on Fri, 13 Jan 2012 23:40:19 +1300 by phpDocumentor 1.4.3