Hi NogDog
I have just managed to put the following together to get my XML document into PHP:
$data = implode("", file("rcsfile.xml"));
$parser = xml_parser_create();
xml_parser_set_option($parser, XML_OPTION_CASE_FOLDING, 0);
xml_parser_set_option($parser, XML_OPTION_SKIP_WHITE, 1);
$result = xml_parse_into_struct($parser, $data, $values, $tags);
xml_parser_free($parser);
And I can reference the values as such:
$firstname = $values[4][value];
However, the questions bit is a bit tricky and would like to know how i could loop through each question node and retrieve the <number>, <answer> and <timecheck> values so I could insert them into a MYSQL table.
How would this be achieved?
Thanks for reading.