22 import(
'lib.pkp.classes.xml.XMLParserDOMHandler');
23 import(
'lib.pkp.classes.xml.XMLNode');
47 parent::__construct();
48 $this->_listName = $listName;
49 $this->_listItems = array();
59 $this->currentData =
null;
63 if ($attributes[
'name'] == $this->_listName) {
64 $this->_foundRequestedList =
true;
67 case 'xs:enumeration':
68 if ($this->_foundRequestedList) {
69 $this->_currentValue = $attributes[
'value'];
73 case 'xs:documentation':
74 if ($this->_foundRequestedList) {
75 $this->_insideDocumentation =
true;
81 $node->setAttributes($attributes);
82 if (isset($this->currentNode)) {
83 $this->currentNode->addChild($node);
84 $node->setParent($this->currentNode);
87 $this->rootNode = $node;
90 $this->currentNode = $node;
99 if ($this->_insideDocumentation) {
100 if (count($this->_listItems[$this->_currentValue]) == 1)
115 case 'xs:simpleType':
116 $this->_foundRequestedList =
false;
118 case 'xs:documentation':
119 $this->_insideDocumentation =
false;
129 return array($this->_listName => $this->_listItems);