Table of Contents

Class ParserBase

Namespace
iTextSharp.text.xml
Assembly
iTextSharp.LGPLv2.Core.dll

The ParserBase -class provides XML document parsing.

public abstract class ParserBase
Inheritance
ParserBase
Derived
Inherited Members

Constructors

ParserBase()

protected ParserBase()

Methods

Characters(string, int, int)

This method gets called when characters are encountered.

public abstract void Characters(string content, int start, int length)

Parameters

content string

an array of characters

start int

the start position in the array

length int

the number of characters to read from the array

EndElement(string, string, string)

This method gets called when an end tag is encountered.

public abstract void EndElement(string uri, string lname, string name)

Parameters

uri string
lname string
name string

the name of the tag that ends

Parse(string)

Begins the process of processing an XML document

public void Parse(string url)

Parameters

url string

the XML document to parse

Parse(XmlDocument)

public void Parse(XmlDocument xDoc)

Parameters

xDoc XmlDocument

Parse(XmlReader)

public void Parse(XmlReader reader)

Parameters

reader XmlReader

StartElement(string, string, string, INullValueDictionary<string, string>)

This method gets called when a start tag is encountered.

public abstract void StartElement(string uri, string lname, string name, INullValueDictionary<string, string> attrs)

Parameters

uri string
lname string
name string

the name of the tag that is encountered

attrs INullValueDictionary<string, string>

the list of attributes