I've got a situation where I'm using an XML parser to extract data from a php://input.
The data being sent in looks like:-
<this>foo</this>
<that>bar></that>
<data><dong>zebras</dong><fong>monkeys</fong></data>
Now, the issue is that because the handler:-
$xml_parser = xml_parser_create();
xml_parser_set_option($xml_parser, XML_OPTION_CASE_FOLDING, false);
xml_set_element_handler($xml_parser, "startTag", "endTag");
xml_set_character_data_handler($xml_parser, "contents");
$document = file_get_contents("php://input");
xml_parse($xml_parser, $document);
xml_parser_free($xml_parser);
...is interpreting tags for me to decifer the contents to make it useful... It seems to be missing anything within i.e. I need to find out how i can get it to ignore the child/nested elements/tags and just bosh out the data whatever.
Any thoughts muchos help. I've not found much about this out there.