IXmlReader Methods

 

The following are the IXmlReader methods.

MethodDescription
CreateXmlReaderCreates a new IXmlReader. (This "constructor" is actually a global function.)
GetAttributeCountReturns the number of attributes in the current node.
GetBaseUriGets the base URI of the token, if applicable.
GetDepthReturns the depth of the current node in the document.
GetLineNumberGets the line number where the reader is positioned in the document.
GetLinePositionGets the line position where the reader is positioned in the document.
GetLocalNameGets the local name of the node that the reader is currently positioned on.
GetNamespaceUriGets the namespace URI of the node that the reader is currently positioned on.
GetNodeTypeProvides the type of the current node.
GetPrefixGets the prefix of the node that the reader is currently positioned on.
GetProperty (IXmlReader)Returns the specified property.
GetQualifiedNameGets the qualified name of the node that the reader is currently positioned on.
GetValueReturns the value of the current token, if applicable.
IsDefaultIndicates whether the attribute was specified in the source document or implied by the DTD.
IsEmptyElementIndicates whether the element is empty. This method allows the client to differentiate between elements that have a closing tag, but do not contain content, and elements that do not have a closing tag.
IsEOFReturns TRUE if the end of the input is reached.
MoveToAttributeByNameMoves the reader to the attribute with the specified name.
MoveToElementMoves to the element that owns the current attribute node.
MoveToFirstAttributeMoves the reader position to the first attribute within the current node.
MoveToNextAttributeAdvances the reader to the next attribute.
ReadReads the next node from the stream and returns the type of the node.
ReadValueChunkReads up to a maximum of the specified chunk size (as available) from the value of the current node and copies the value into the specified buffer.
SetInputSets the input source of the XML document to be parsed.
SetProperty (IXmlReader)Sets the specified property.

Header: XmlLite.h

Library: XmlLite.lib

IXmlReader

Show: