MCPcopy Create free account
hub / github.com/AcademySoftwareFoundation/MaterialX / readFromXmlBuffer

Function readFromXmlBuffer

source/MaterialXFormat/XmlIo.cpp:291–300  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

289//
290
291void readFromXmlBuffer(DocumentPtr doc, const char* buffer, FileSearchPath searchPath, const XmlReadOptions* readOptions)
292{
293 searchPath.append(getEnvironmentPath());
294
295 xml_document xmlDoc;
296 xml_parse_result result = xmlDoc.load_string(buffer, getParseOptions(readOptions));
297 validateParseResult(result);
298
299 documentFromXml(doc, xmlDoc, searchPath, readOptions);
300}
301
302void readFromXmlStream(DocumentPtr doc, std::istream& stream, FileSearchPath searchPath, const XmlReadOptions* readOptions)
303{

Callers 1

XmlIo.cppFile · 0.85

Calls 6

getEnvironmentPathFunction · 0.85
getParseOptionsFunction · 0.85
validateParseResultFunction · 0.85
documentFromXmlFunction · 0.85
load_stringMethod · 0.80
appendMethod · 0.45

Tested by

no test coverage detected