bool f_xml_set_element_handler(const Resource& parser, const Variant& start_element_handler, const Variant& end_element_handler) { XmlParser * p = parser.getTyped<XmlParser>(); xml_set_handler(&p->startElementHandler, start_element_handler); xml_set_handler(&p->endElementHandler, end_element_handler); XML_SetElementHandler(p->parser, _xml_startElementHandler, _xml_endElementHandler); return true; }
bool f_xml_set_element_handler(CObjRef parser, CVarRef start_element_handler, CVarRef end_element_handler) { XmlParser * p = parser.getTyped<XmlParser>(); xml_set_handler(&p->startElementHandler, start_element_handler); xml_set_handler(&p->endElementHandler, end_element_handler); XML_SetElementHandler(p->parser, _xml_startElementHandler, _xml_endElementHandler); return true; }
bool f_xml_set_processing_instruction_handler(CObjRef parser, CVarRef handler){ XmlParser * p = parser.getTyped<XmlParser>(); xml_set_handler(&p->processingInstructionHandler, handler); XML_SetProcessingInstructionHandler(p->parser, _xml_processingInstructionHandler); return true; }
bool f_xml_set_processing_instruction_handler(const Resource& parser, const Variant& handler) { XmlParser * p = parser.getTyped<XmlParser>(); xml_set_handler(&p->processingInstructionHandler, handler); XML_SetProcessingInstructionHandler(p->parser, _xml_processingInstructionHandler); return true; }
bool f_xml_set_notation_decl_handler(CObjRef parser, CVarRef handler) { XmlParser * p = parser.getTyped<XmlParser>(); xml_set_handler(&p->notationDeclHandler, handler); XML_SetNotationDeclHandler(p->parser, _xml_notationDeclHandler); return true; }
bool f_xml_set_external_entity_ref_handler(CObjRef parser, CVarRef handler) { XmlParser * p = parser.getTyped<XmlParser>(); xml_set_handler(&p->externalEntityRefHandler, handler); XML_SetExternalEntityRefHandler(p->parser, _xml_externalEntityRefHandler); return true; }
bool f_xml_set_unparsed_entity_decl_handler(CObjRef parser, CVarRef handler) { XmlParser * p = parser.getTyped<XmlParser>(); xml_set_handler(&p->unparsedEntityDeclHandler, handler); XML_SetUnparsedEntityDeclHandler(p->parser, _xml_unparsedEntityDeclHandler); return true; }
bool f_xml_set_end_namespace_decl_handler(CObjRef parser, CVarRef handler) { XmlParser * p = parser.getTyped<XmlParser>(); xml_set_handler(&p->endNamespaceDeclHandler, handler); XML_SetEndNamespaceDeclHandler(p->parser, _xml_endNamespaceDeclHandler); return true; }
bool f_xml_set_default_handler(CObjRef parser, CVarRef handler) { XmlParser * p = parser.getTyped<XmlParser>(); xml_set_handler(&p->defaultHandler, handler); XML_SetDefaultHandler(p->parser, _xml_defaultHandler); return true; }
bool f_xml_set_character_data_handler(CObjRef parser, CVarRef handler) { XmlParser * p = parser.getTyped<XmlParser>(); xml_set_handler(&p->characterDataHandler, handler); XML_SetCharacterDataHandler(p->parser, _xml_characterDataHandler); return true; }
bool f_xml_set_notation_decl_handler(const Resource& parser, const Variant& handler) { XmlParser * p = parser.getTyped<XmlParser>(); xml_set_handler(&p->notationDeclHandler, handler); XML_SetNotationDeclHandler(p->parser, _xml_notationDeclHandler); return true; }
bool f_xml_set_external_entity_ref_handler(const Resource& parser, const Variant& handler) { XmlParser * p = parser.getTyped<XmlParser>(); xml_set_handler(&p->externalEntityRefHandler, handler); XML_SetExternalEntityRefHandler(p->parser, _xml_externalEntityRefHandler); return true; }
bool f_xml_set_unparsed_entity_decl_handler(const Resource& parser, const Variant& handler) { XmlParser * p = parser.getTyped<XmlParser>(); xml_set_handler(&p->unparsedEntityDeclHandler, handler); XML_SetUnparsedEntityDeclHandler(p->parser, _xml_unparsedEntityDeclHandler); return true; }
bool f_xml_set_end_namespace_decl_handler(const Resource& parser, const Variant& handler) { XmlParser * p = parser.getTyped<XmlParser>(); xml_set_handler(&p->endNamespaceDeclHandler, handler); XML_SetEndNamespaceDeclHandler(p->parser, _xml_endNamespaceDeclHandler); return true; }
bool f_xml_set_default_handler(const Resource& parser, const Variant& handler) { XmlParser * p = parser.getTyped<XmlParser>(); xml_set_handler(&p->defaultHandler, handler); XML_SetDefaultHandler(p->parser, _xml_defaultHandler); return true; }
bool f_xml_set_character_data_handler(const Resource& parser, const Variant& handler) { XmlParser * p = parser.getTyped<XmlParser>(); xml_set_handler(&p->characterDataHandler, handler); XML_SetCharacterDataHandler(p->parser, _xml_characterDataHandler); return true; }