This commit is contained in:
jacek 2015-05-25 15:03:45 +02:00 committed by rafal.kalinski
parent 4ac663f665
commit 7fa5668c65

View file

@ -58,6 +58,12 @@ class Node {
} }
public function getType() { public function getType() {
/*
* Node type generation is based on XML tag name.
* It's worth to remember that SimpleXMLElement::getName method is
* case - sensitive ( "<Data>" != "<data>" ), so we need to sanitize Node Type
* by using strtolower function
*/
return strtolower( $this->xmlNode->getName() ); return strtolower( $this->xmlNode->getName() );
} }