Class Ecrion.Ultrascale.XMLDataSource

Top Previous Topic Next Topic  Print this topic

XMLDataSource class is an implementation of IDataSource interface that encapsulates an XML document.

 

Methods

 

Name

Description

GetData

Returns the XML data.

GetDataFormat

Returns the XML input format.

 

 

Constructors

An XMLDataSource can be created from an XML file path or a stream with an additional Engine.InputFormat to be specified.

 

 

       XmlDataSource(Ecrion::String filePath, Ecrion::Ultrascale::InputFormat inputFormat);

 

       XmlDataSource(Ecrion::Stream* inputStream, Ecrion::Ultrascale::InputFormat inputFormat);

 

 

 

GetData

Returns a stream representing the xml encapsulated by this class.

 

 

       virtual Stream* getData();

 

 

                       

GetDataFormat

 

Returns the input format specified by the user.

 

 

       virtual Ecrion::Ultrascale::InputFormat getDataFormat();