MaterialX 1.38.10
Loading...
Searching...
No Matches
XmlReadOptions Class Reference

A set of options for controlling the behavior of XML read functions. More...

#include <XmlIo.h>

Public Attributes

bool readComments
 If true, then XML comments will be read into documents as comment elements. More...
 
bool readNewlines
 If true, then XML newlines will be read into documents as newline elements. More...
 
bool upgradeVersion
 If true, then documents from earlier versions of MaterialX will be upgraded to the current version. More...
 
XmlReadFunction readXIncludeFunction
 If provided, this function will be invoked when an XInclude reference needs to be read into a document. More...
 
StringVec parentXIncludes
 The vector of parent XIncludes at the scope of the current document. More...
 

Detailed Description

A set of options for controlling the behavior of XML read functions.

Member Data Documentation

◆ parentXIncludes

StringVec parentXIncludes

The vector of parent XIncludes at the scope of the current document.

Defaults to an empty vector.

◆ readComments

bool readComments

If true, then XML comments will be read into documents as comment elements.

Defaults to false.

◆ readNewlines

bool readNewlines

If true, then XML newlines will be read into documents as newline elements.

Defaults to false.

◆ readXIncludeFunction

XmlReadFunction readXIncludeFunction

If provided, this function will be invoked when an XInclude reference needs to be read into a document.

Defaults to readFromXmlFile.

◆ upgradeVersion

bool upgradeVersion

If true, then documents from earlier versions of MaterialX will be upgraded to the current version.

Defaults to true.


The documentation for this class was generated from the following files: