XMLDataSource class is an implementation of IDataSource interface that encapsulates an XML document.
Methods
Name |
Description |
Returns the XML data. |
|
Returns the XML input format. |
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);
Returns a stream representing the xml encapsulated by this class.
virtual Stream* getData();
Returns the input format specified by the user.
virtual Ecrion::Ultrascale::InputFormat getDataFormat();