Creates an xmldoc structure from a string buffer.
Creates an xmldoc structure from a string buffer. This is one of two possible methods to allocate an XML document structure. The other method is a convenience function that loads the file into memory.If the loader detects unbalanced tags anywhere, it will fail. Some binary files could be parsed, but the end result will usually be an empty xmldoc structure. Do some checking for overlapping tags, unfinished opening tags etc.
NOTE: The buffer will be modified.