Skip to content

XMLReader ​

Introduction ​

vtkXMLReader is a source object that parses a VTK XML input file.

Methods ​

extend ​

Method used to decorate a given object (publicAPI+model) with vtkXMLReader characteristics.

ArgumentTypeRequiredDescription
publicAPIYesobject on which methods will be bounds (public)
modelYesobject on which data structure will be bounds (protected)
initialValuesIXMLReaderInitialValuesNo(default: {})

findAllTags ​

Collect every descendant element carrying the given tag name.

ArgumentTypeRequiredDescription
nodeElement or DocumentYesThe node to search under
tagNameStringYesThe tag name to match

findFirstTag ​

Collect the first descendant element carrying the given tag name, or undefined when the node has none.

ArgumentTypeRequiredDescription
nodeElement or DocumentYesThe node to search under
tagNameStringYesThe tag name to match

getBaseURL ​

getDataAccessHelper ​

getUrl ​

Get the url of the object to load.

loadData ​

Load the object data.

ArgumentTypeRequiredDescription
optionsIXMLReaderOptionsNo

parseAsArrayBuffer ​

Parse data as ArrayBuffer.

ArgumentTypeRequiredDescription
contentArrayBufferYesThe content to parse.

requestData ​

ArgumentTypeRequiredDescription
inDataYes
outDataYes

setDataAccessHelper ​

ArgumentTypeRequiredDescription
dataAccessHelperYes

setUrl ​

Set the url of the object to load.

ArgumentTypeRequiredDescription
urlStringYesthe url of the object to load.
optionIXMLReaderOptionsNoThe XML reader options.