This document is archived and information here might be outdated. Recommended version. |
ArcObjects namespaces > System > ESRI.ArcGIS.esriSystem > Interfaces > IX > IXMLReader Interface > IXMLReader.ReadFrom Method (ArcObjects .NET 10.4 SDK) |
Specifies the input XML stream.
[Visual Basic .NET] Public Sub ReadFrom ( _ ByVal inputStream As IStream _ )
[C#] public void ReadFrom ( IStream inputStream );
[C++]
HRESULT ReadFrom(
IStream* inputStream
);
[C++]
Parameters inputStream [in]
inputStream is a parameter of type IStream
The ReadFrom method specifies the input XML stream.
For example:
Dim pXmlReader As IXMLReader
Set pXmlReader=New XMLReader
Dim pXmlStream as IXMLStream
Set pXmlStream=new XMLStream
pXmlStream.OpenFromFile App.Path & "\file.xml"
pXmlReader.ReadFrom pXmlStream
If xml file is empty the XMLStream will evoke Automation error. Xml file needs to be of a proper structure.