Beispiel #1
0
 static function __character_data_handler($parser, $data)
 {
     $d = Xml::__decodeent($data);
     if (strlen($data) === 1 && $d !== $data || $d === $data) {
         $last = Xml::$build->_children[Xml::$build->_children->length - 1];
         if (null !== $last && $last->nodeType == Xml::$PCData) {
             $_g = $last;
             $_g->setNodeValue($_g->getNodeValue() . $d);
         } else {
             Xml::$build->addChild(Xml::createPCData($d));
         }
     } else {
         Xml::$build->addChild(Xml::createCData($data));
     }
 }
Beispiel #2
0
 static function __character_data_handler($parser, $data)
 {
     $d = Xml::__decodeent($data);
     if (strlen($data) === 1 && $d !== $data || $d === $data) {
         $last = Xml::$build->_children[Xml::$build->_children->length - 1];
         if (null !== $last && (is_object($_t = $last->nodeType) && !$_t instanceof Enum ? $_t === Xml::$PCData : $_t == Xml::$PCData)) {
             $_g = $last;
             $_g->set_nodeValue(_hx_string_or_null($_g->get_nodeValue()) . _hx_string_or_null($d));
         } else {
             Xml::$build->addChild(Xml::createPCData($d));
         }
     } else {
         Xml::$build->addChild(Xml::createCData($data));
     }
 }