Name
|
Function
|
end( )
|
Close the document and perform simple well-formedness checking (e.g.,
make sure that there is one root element and that every start tag has
an associated end tag). If the option UNSAFE is
set, however, most well-formedness checking is skipped.
|
xmlDecl([$endoding,
$standalone])
|
Add an XML Declaration at the top of the document. The version is
hard-wired as "1.0".
|
doctype($name, [$publicId,
$systemId])
|
Add a document type declaration at the top of the document.
|
comment($text)
|
Write an XML comment.
|
pi($target [, $data])
|
Output a processing instruction.
|
startTag($name [, $aname1 => $value1,
...])
|
Create an element start tag. The first argument is the element name,
which is followed by attribute name-value pairs.
|
emptyTag($name [, $aname1 => $value1,
...])
|
Set up an empty element tag. The arguments are the same as for the
startTag( ) method.
|
endTag([$name])
|
Create an element end tag. Leave out the argument to have it close
the currently open element automatically.
|
dataElement($name, $data [, $aname1 => $value1,
...])
|
Print an element that contains only character data. This element
includes the start tag, the data, and the end tag.
|
characters($data)
|
Output a parcel of character data.
|