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

Function readFromXmlStream

source/MaterialXFormat/XmlIo.cpp:302–311  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

300}
301
302void readFromXmlStream(DocumentPtr doc, std::istream& stream, FileSearchPath searchPath, const XmlReadOptions* readOptions)
303{
304 searchPath.append(getEnvironmentPath());
305
306 xml_document xmlDoc;
307 xml_parse_result result = xmlDoc.load(stream, getParseOptions(readOptions));
308 validateParseResult(result);
309
310 documentFromXml(doc, xmlDoc, searchPath, readOptions);
311}
312
313void readFromXmlFile(DocumentPtr doc, FilePath filename, FileSearchPath searchPath, const XmlReadOptions* readOptions)
314{

Callers 1

readFromXmlStringFunction · 0.85

Calls 6

getEnvironmentPathFunction · 0.85
getParseOptionsFunction · 0.85
validateParseResultFunction · 0.85
documentFromXmlFunction · 0.85
appendMethod · 0.45
loadMethod · 0.45

Tested by

no test coverage detected