This document is archived and information here might be outdated.  Recommended version.


IXMLReader.ReadFrom Method (ArcObjects .NET 10.8 SDK)
ArcObjects Help for .NET developers > ArcObjects Help for .NET developers > ArcObjects namespaces > System > ESRI.ArcGIS.esriSystem > Interfaces > IX > IXMLReader Interface > IXMLReader.ReadFrom Method
ArcGIS Developer Help

IXMLReader.ReadFrom Method

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*

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.

Remarks

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.

See Also

IXMLReader Interface