20 import(
'lib.pkp.classes.xml.XMLNode');
37 $this->rootNodes = array();
38 $this->currentNode =
null;
42 unset($this->currentNode, $this->currentData, $this->rootNode);
52 $this->currentData =
null;
54 $node->setAttributes($attributes);
56 if (isset($this->currentNode)) {
57 $this->currentNode->addChild($node);
58 $node->setParent($this->currentNode);
61 $this->rootNode =& $node;
64 $this->currentNode =& $node;
73 $this->currentNode->setValue($this->currentData);
74 $this->currentNode =& $this->currentNode->getParent();
75 $this->currentData =
null;
84 $this->currentData .= $data;