Lines Matching refs:tag

88 inline static char *_xml_decode_tag(xml_parser *parser, const char *tag);
760 static char *_xml_decode_tag(xml_parser *parser, const char *tag) in _xml_decode_tag() argument
765 newstr = xml_utf8_decode(tag, strlen(tag), &out_len, parser->target_encoding); in _xml_decode_tag()
814 zval *tag, *atr; in _xml_startElementHandler() local
817 MAKE_STD_ZVAL(tag); in _xml_startElementHandler()
820 array_init(tag); in _xml_startElementHandler()
825 add_assoc_string(tag,"tag",SKIP_TAGSTART((char *) tag_name),1); in _xml_startElementHandler()
826 add_assoc_string(tag,"type","open",1); in _xml_startElementHandler()
827 add_assoc_long(tag,"level",parser->level); in _xml_startElementHandler()
847 zend_hash_add(Z_ARRVAL_P(tag),"attributes",sizeof("attributes"),&atr,sizeof(zval*),NULL); in _xml_startElementHandler()
852 zend_hash_next_index_insert(Z_ARRVAL_P(parser->data),&tag,sizeof(zval*),(void *) &parser->ctag); in _xml_startElementHandler()
885 zval *tag; in _xml_endElementHandler() local
890 MAKE_STD_ZVAL(tag); in _xml_endElementHandler()
892 array_init(tag); in _xml_endElementHandler()
896 add_assoc_string(tag,"tag",SKIP_TAGSTART((char *) tag_name),1); in _xml_endElementHandler()
897 add_assoc_string(tag,"type","close",1); in _xml_endElementHandler()
898 add_assoc_long(tag,"level",parser->level); in _xml_endElementHandler()
900 zend_hash_next_index_insert(Z_ARRVAL_P(parser->data),&tag,sizeof(zval*),NULL); in _xml_endElementHandler()
971 zval *tag; in _xml_characterDataHandler() local
993 MAKE_STD_ZVAL(tag); in _xml_characterDataHandler()
995 array_init(tag); in _xml_characterDataHandler()
999 add_assoc_string(tag,"tag",SKIP_TAGSTART(parser->ltags[parser->level-1]),1); in _xml_characterDataHandler()
1000 add_assoc_string(tag,"value",decoded_value,0); in _xml_characterDataHandler()
1001 add_assoc_string(tag,"type","cdata",1); in _xml_characterDataHandler()
1002 add_assoc_long(tag,"level",parser->level); in _xml_characterDataHandler()
1004 zend_hash_next_index_insert(Z_ARRVAL_P(parser->data),&tag,sizeof(zval*),NULL); in _xml_characterDataHandler()