PHP 忒聊 綴豖 ヶ輛 xml_set_object (PHP 4) 鏡扴 蜆滲杅妏腕 parser 硌隅腔賤昴ん褫眕掩蚚婓 object 勤砓笢﹝垀衄腔隙請滲杅ㄗcallback functionㄘ飲褫眕蚕 xml_set_element_handler() 脹滲杅懂扢离ㄛ坳蠅掩樑隅峈 object 勤砓腔源楊﹝ ?php class xml {var $parser; function xml() {$this- parser = xml_parser_create(); xml_set_object($this- parser, $this); xml_set_element_handler($this- parser, "tag_open", "tag_close"); xml_set_character_data_handler($this- parser, "cdata");} function parse($data) {xml_parse($this- parser, $data);} function tag_open($parser, $tag, $attributes) {var_dump($parser, $tag, $attributes);} function cdata($parser, $cdata) {var_dump($parser, $cdata);} function tag_close($parser, $tag) {var_dump($parser, $tag);}} // end of class xml $xml_parser = new xml(); $xml_parser- parse(" A ID='hallo' PHP /A ");? 綴豖 れ萸 ヶ輛 xml_set_notation_decl_handler 奻珨撰 xml_set_processing_instruction_handler