Mercurial > hg > webaudioevaluationtool
diff scripts/score_parser.php @ 2164:ce24c304f93c
comment/score _parser.php updated to match 'ref' 'name' attribute changes.
author | Nicholas Jillings <nickjillings@users.noreply.github.com> |
---|---|
date | Wed, 16 Mar 2016 16:52:30 +0000 |
parents | 749adcb68e99 |
children | f22a6240fb51 |
line wrap: on
line diff
--- a/scripts/score_parser.php Wed Mar 16 16:16:05 2016 +0000 +++ b/scripts/score_parser.php Wed Mar 16 16:52:30 2016 +0000 @@ -64,7 +64,7 @@ foreach($xml_object->page as $pageInstance) { // Find in the nest - $pageInstanceId = $pageInstance['id']; + $pageInstanceId = $pageInstance['ref']; $page_nest = $root->findChild($pageInstanceId); if ($page_nest == null) { $page_nest = $root->addNewChild($pageInstanceId); @@ -73,7 +73,7 @@ // Iterate over each $element node foreach($pageInstance->audioelement as $element) { // Find our specific element tag - $elementId = $element['id']; + $elementId = $element['name']; $element_nest = $page_nest->findChild($elementId); if ($element_nest == null) { $element_nest = $page_nest->addNewChild($elementId);