41 protected function walkDomTree(\XMLReader $xmlReader, $parentPath)
43 $path = $parentPath . $xmlReader->localName .
'/';
48 if ($field->isMultiple())
50 $this->properties[$field->getName()][] = $this->
getElementValue($xmlReader, $parentPath, $field);
54 $this->properties[$field->getName()] = $this->
getElementValue($xmlReader, $parentPath, $field);
59 if($xmlReader->nodeType == \XMLReader::END_ELEMENT)
63 if($xmlReader->nodeType == \XMLReader::ELEMENT && $xmlReader->hasAttributes)
69 if($xmlReader->isEmptyElement)
73 while($xmlReader->read())
75 if($xmlReader->nodeType == \XMLReader::ELEMENT)
77 else if($xmlReader->nodeType == \XMLReader::END_ELEMENT)
84 $xmlReader->moveToFirstAttribute();
88 $path = $parentPath .
'@' . $xmlReader->localName;
93 $this->properties[$field->getName()] = $field->decodeValue($xmlReader->value);
95 }
while(($xmlReader->moveToNextAttribute()));
97 $xmlReader->moveToElement();