Share via


IXMLParser

4/8/2010

The parser takes XML input in one of various ways (for example, through a stream, a URL to a document, or text pushed to it), parses the XML, and sends parse events to an instance of the IXMLNodeFactory interface. The parser is divided into two interfaces.

  • An IXMLNodeSource interface defines the parse events and other information, such as position information for parse errors that are sent to a NodeFactory.
  • The IXMLParser interface inherits from IXMLNodeSource and adds methods to define the XML source (stream, URL, or pushed text), set NodeFactories, and deal with security and state reporting issues.

The following table shows the methods of the IXMLParser interface, with a description of the purpose of each.

In This Section

Method Description

IXMLParser::ExpandEntity

Expands an entity reference

IXMLParser::GetParserState

Obtains the current state of the parser

IXMLParser::GetRoot

Obtains the root object of the current node

IXMLParser::GetSecureBaseURL

Obtains the secure base URL

IXMLParser::Load

Provides XML input to the parser

IXMLParser::LoadDTD

Fetches an external document type definition (DTD)

IXMLParser::LoadEntity

Fetches external entities that a DTD has defined

IXMLParser::ParseEntity

Parses the value of an internal entity reference

IXMLParser::PushData

Provides data to the parser by pushing the specified data as a raw buffer that contains bytes

IXMLParser::Reset

Puts the parser back into the initial state so another XML file can be loaded

IXMLParser::Run

Parses the specified amount of XML, in characters,

IXMLParser::SetFlags

Sets the flags defined in IXMLNodeSource::GetFlags

IXMLParser::SetInput

Sets the input method to be used

IXMLParser::SetRoot

Sets the root object of the current node

IXMLParser::SetSecureBaseURL

Sets the secure base URL

IXMLParser::SetURL

Provides input to the parser by passing in a base URL and relative URL from which files can be loaded

IXMLParser::Suspend

Suspends the parser

Requirements

Header xmlparser.h
Windows Embedded CE Windows CE 3.0 and later
Windows Mobile Pocket PC 2000 and later, Smartphone 2002 and later

See Also

Reference

HTML Control API Interfaces