GoDiagram Web Reference
Consume(TextReader) Method

a TextReader
Start an XmlReader and consume XML.
Syntax
'Declaration
 
Public Overloads Function Consume( _
   ByVal source As TextReader _
) As Object
public object Consume( 
   TextReader source
)

Parameters

source
a TextReader

Return Value

an object that represents the whole document, as returned by ConsumeRootElement
Remarks

This does some initialization, creates a XmlReader, calls LoadDOM to perhaps create a XmlDocument. Then it calls, in order, ConsumeInstructions, ConsumeRootElement, ConsumeRootAttributes, ConsumeRootBody, ProcessDelayedObjects. Note that if UseDOM is true, the whole DOM is loaded by LoadDOM and the XmlReader will be null.

This calls XmlReader.Create with the value of this.XmlReaderSettings.

Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

Reference

GoXmlReader Class
GoXmlReader Members
Overload List

 

 


© 2013. Northwoods Software Corporation. All Rights Reserved.

Send Feedback