Try this simple code,
sPath = "(MUST BE VALID)";
XmlDocument mDoc(File((const char*)sPath));
XmlElement* pRoot = mDoc.getDocumentElement();
If the tag name in the XML document file contains period, pRoot always be NULL. I think period can be used as the tag name as long as it is not the the first character. (so “.text” can’t be but “v1.0” can be)
I found the definition of the “name” below.
Juce can export the XML document like this,
[code]<?xml version="1.0" encoding="UTF-8"?>[/code]
but can’t load the file.