123 if (
$name[0] ===
'{') {
128 if (array_key_exists(
$namespace, $this->namespaceMap)) {
129 $result = $this->startElementNS(
142 if (!isset($this->adhocNamespaces[
$namespace])) {
143 $this->adhocNamespaces[
$namespace] =
'x' . (count($this->adhocNamespaces) + 1);
145 $result = $this->startElementNS($this->adhocNamespaces[$namespace], $localName, $namespace);
153 if (!$this->namespacesWritten) {
155 foreach ($this->namespaceMap as
$namespace => $prefix) {
158 $this->namespacesWritten =
true;
192 if (!is_null($content)) {
193 $this->
write($content);
213 foreach ($attributes as
$name => $value) {
232 if (
$name[0] ===
'{') {
239 if (array_key_exists(
$namespace, $this->namespaceMap)) {
242 $this->namespaceMap[
$namespace] .
':' . $localName,
248 if (!isset($this->adhocNamespaces[
$namespace])) {
249 $this->adhocNamespaces[
$namespace] =
'x' . (count($this->adhocNamespaces) + 1);
251 $this->writeAttributeNS(
252 $this->adhocNamespaces[$namespace],
261 return parent::writeAttribute(
$name, $value);
if($err=$client->getError()) $namespace
trait ContextStackTrait
Context Stack.
writeAttribute($name, $value)
Writes a new attribute.
startElement($name)
Opens a new element.
standardSerializer(Writer $writer, $value)
This function is the 'default' serializer that is able to serialize most things, and delegates to oth...
static parseClarkNotation($str)
Parses a clark-notation string, and returns the namespace and element name components.
if(array_key_exists('yes', $_REQUEST)) $attributes
writeAttributes(array $attributes)
Writes a list of attributes.
write($value)
Writes a value to the output stream.
writeElement($name, $content=null)
Write a full element tag and it's contents.