function tag_open($parser, $tag, $attributes) { $this->currentXPath[$this->currentIndex++] = $tag; if ($this->compareXPath()) { $this->innerXmlBeginIndex = xml_get_current_byte_index($this->parser); $newNode = new XmlNode(); $newNode->SetXmlNodeAttributes($attributes); $newNode->SetXmlNodeName($tag); $this->selectResult[] = $newNode; } }