loadFromXmlFile()
-
Has anyone got this to produce anything useful? It seems to only parse and retain, only the last component of the XML ignoring the swaths of XML before it...
I really really dont want to go and have to code my own XML parser...
-
@Lindon The problem is that is has to convert XML to JSON somehow and there is a fundamental difference between the data structures which makes this not an easy task (XML properties vs. children). I'm struggling with this problem in many other areas (eg. the user preset handler callbacks have to convert between those two but that works only because I'm doing some tricks in the data layout.
I think I wrote the XML parser just for parsing simple setting files (eg. you can parse the AudioSetting.xml file and read out the values in there).
-
@Christoph-Hart --hmm well okay. As I have a very complex set of XML data I guess I'm off to write my own XML parser... bummer.
-
@Lindon Would it be easier to covert the XML to JSON instead?
-
@d-healey said in loadFromXmlFile():
@Lindon Would it be easier to covert the XML to JSON instead?
..er thats what this function is failing at isnt it?
-
@Lindon I mean is it faster to do it manually rather than write an XML parser
-
Lol just use one of those:
Free Online XML to JSON Converter - FreeFormatter.com
This free online tool lets you convert an XML file into a JSON file with your choice of indentation
(www.freeformatter.com)