Very simple to reproduce this.
Code: Select all
XMLParse>strXML,Defaults/member[@name='AutoSavers']/member[@name='GRecentDocumentPaths']/list[@name='Paths']/item,res,NumItems
After some investigation (by removing lines in the XML file), this line causes the issue:
Code: Select all
<obj class="CmUID" name="PortUID Output MOTÖR61 Keyboard" ID="218458288">
<string name="GUID" value="5F49E99665054D01890919DC0DBEBCD7" wide="true"/>
</obj>
Code: Select all
MOTÖ
When I removed that & the script works fine.
The odd thing is that some other & signs are in the file but it is only the ones in this area that cause the issue.
I cannot make changes to the XML file by the way as this script is a helper application that reads a specific program's settings from that XML. Also I do not need to read this line or take any action on it. My parser, as you can see is searching for another line.
Anyone any ideas on this one?