Method | Description | |
---|---|---|
Close ( ) : void |
Signals the end of tree construction.
|
|
CreateIdTables ( |
Build ID lookup tables from the XSD schema or DTD.
|
|
Flush ( ) : void |
Since output is not forwarded to another object, this does nothing.
|
|
Initialize ( |
Start construction of a new document. This must be called before any other methods are called. It may also be called after Close(), in order to build further documents.
|
|
WriteCData ( string text ) : void |
Map CData text into regular text.
|
|
WriteCharEntity ( char ch ) : void |
Don't entitize, since the cache cannot represent character entities.
|
|
WriteChars ( char buffer, int index, int count ) : void | ||
WriteComment ( string text ) : void |
Construct comment node.
|
|
WriteDocType ( string name, string pubid, string sysid, string subset ) : void |
XPathDocument ignores the DocType information.
|
|
WriteEndAttribute ( ) : void |
Attach the attribute's text or typed value to the previously constructed attribute node.
|
|
WriteEndElement ( ) : void |
Must be called when an element node's children have been fully enumerated.
|
|
WriteEndElement ( bool allowShortcutTag ) : void |
Must be called when an element node's children have been fully enumerated.
|
|
WriteEntityRef ( string name ) : void |
Cache does not handle entity references.
|
|
WriteFullEndElement ( ) : void |
Must be called when an element node's children have been fully enumerated.
|
|
WriteProcessingInstruction ( string name, string text ) : void |
Shortcut for calling WriteProcessingInstruction with baseUri = string.Empty.
|
|
WriteProcessingInstruction ( string name, string text, string baseUri ) : void |
Construct pi node.
|
|
WriteRaw ( char buffer, int index, int count ) : void | ||
WriteRaw ( string data ) : void |
Map RawText to Text. This will lose entitization and won't roundtrip.
|
|
WriteStartAttribute ( string prefix, string localName, string namespaceName ) : void |
Shortcut for calling WriteStartAttribute with attrfType == null.
|
|
WriteStartElement ( string prefix, string localName, string ns ) : void |
Shortcut for calling WriteStartElement with elemType == null.
|
|
WriteStartElement ( string prefix, string localName, string ns, string baseUri ) : void |
Build an element node and attach it to its parent, if one exists. Make the element the new parent node.
|
|
WriteString ( string text ) : void |
Write an attribute or element text block.
|
|
WriteString ( string text, TextBlockType textType ) : void |
Write an element text block with the specified text type (whitespace, significant whitespace, or text).
|
|
WriteSurrogateCharEntity ( char lowChar, char highChar ) : void |
Don't entitize, since the cache cannot represent character entities.
|
|
WriteWhitespace ( string ws ) : void |
Write a whitespace text block.
|
|
XPathDocumentBuilder ( |
Create a new XPathDocumentBuilder which creates nodes in "doc".
|
Method | Description | |
---|---|---|
AddSibling ( XPathNodeType xptyp, string localName, string namespaceUri, string prefix, string baseUri ) : void |
Add a sibling node. If no previous sibling exists, add the node as the first child of the parent. If no parent exists, make this node the root of the document.
|
|
CachedTextNode ( ) : void |
Creates a text node from cached text parts.
|
|
ComputeLineInfo ( bool isTextNode, int &lineNumOffset, int &linePosOffset ) : void |
Compute current node's line number information.
|
|
LinkSimilarElements ( XPathNode pagePrev, int idxPrev, XPathNode pageNext, int idxNext ) : |
Link "prev" element with "next" element, which has a "similar" name. This increases the performance of searches by element name.
|
|
NewNamespaceNode ( XPathNode &page, string prefix, string namespaceUri, XPathNode pageElem, int idxElem ) : int |
Helper method that constructs a new Namespace XPathNode.
|
|
NewNode ( XPathNode &page, XPathNodeType xptyp, string localName, string namespaceUri, string prefix, string baseUri ) : int |
Helper method that constructs a new XPathNode.
|
|
StartElementContent ( ) : void |
Called as element node's children are about to be enumerated.
|
|
WriteEndElement ( string prefix, string localName, string namespaceName ) : void |
Must be called when an element node's children have been fully enumerated.
|
|
WriteFullEndElement ( string prefix, string localName, string namespaceName ) : void |
Must be called when an element node's children have been fully enumerated.
|
|
WriteNamespaceDeclaration ( string prefix, string namespaceName ) : void |
Build a namespace declaration node. Attach it to an element parent, if one was previously constructed. All namespace declarations are linked together in an in-scope namespace tree.
|
|
WriteXmlDeclaration ( XmlStandalone standalone ) : void |
Write the xml declaration. This must be the first call after Open.
|
|
WriteXmlDeclaration ( string xmldecl ) : void |
public CreateIdTables ( |
||
schInfo | ||
return | void |
public Initialize ( |
||
doc | ||
lineInfo | IXmlLineInfo | |
baseUri | string | |
flags | ||
return | void |
public WriteChars ( char buffer, int index, int count ) : void | ||
buffer | char | |
index | int | |
count | int | |
return | void |
public WriteDocType ( string name, string pubid, string sysid, string subset ) : void | ||
name | string | |
pubid | string | |
sysid | string | |
subset | string | |
return | void |
public WriteEndElement ( bool allowShortcutTag ) : void | ||
allowShortcutTag | bool | |
return | void |
public WriteProcessingInstruction ( string name, string text ) : void | ||
name | string | |
text | string | |
return | void |
public WriteProcessingInstruction ( string name, string text, string baseUri ) : void | ||
name | string | |
text | string | |
baseUri | string | |
return | void |
public WriteRaw ( char buffer, int index, int count ) : void | ||
buffer | char | |
index | int | |
count | int | |
return | void |
public WriteStartAttribute ( string prefix, string localName, string namespaceName ) : void | ||
prefix | string | |
localName | string | |
namespaceName | string | |
return | void |
public WriteStartElement ( string prefix, string localName, string ns ) : void | ||
prefix | string | |
localName | string | |
ns | string | |
return | void |
public WriteStartElement ( string prefix, string localName, string ns, string baseUri ) : void | ||
prefix | string | |
localName | string | |
ns | string | |
baseUri | string | |
return | void |
public WriteString ( string text, TextBlockType textType ) : void | ||
text | string | |
textType | TextBlockType | |
return | void |
public WriteSurrogateCharEntity ( char lowChar, char highChar ) : void | ||
lowChar | char | |
highChar | char | |
return | void |
public XPathDocumentBuilder ( |
||
doc | ||
lineInfo | IXmlLineInfo | |
baseUri | string | |
flags | ||
return | System |