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

Function writeToXmlStream

source/MaterialXFormat/XmlIo.cpp:348–354  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

346//
347
348void writeToXmlStream(DocumentPtr doc, std::ostream& stream, const XmlWriteOptions* writeOptions)
349{
350 xml_document xmlDoc;
351 xml_node xmlRoot = xmlDoc.append_child("materialx");
352 documentToXml(doc, xmlRoot, writeOptions);
353 xmlDoc.save(stream, " ");
354}
355
356void writeToXmlFile(DocumentPtr doc, const FilePath& filename, const XmlWriteOptions* writeOptions)
357{

Callers 2

writeToXmlFileFunction · 0.85
writeToXmlStringFunction · 0.85

Calls 3

documentToXmlFunction · 0.85
append_childMethod · 0.80
saveMethod · 0.80

Tested by

no test coverage detected