C# Class XmlTransformer.XmlFormatter

显示文件 Open project: micahlmartin/XmlTransformer Class Usage Examples

Private Properties

Property Type Description
ComputeCurrentAttributeIndent string
ComputeCurrentIndent string
ComputeOneTab string
ConvertIndentToTab string
EnsureNodeIndent int
FindLastNewLine int
FormatAttributes void
FormatLoop void
GetIndentFromWhiteSpace string
HandleElement int
HandleEndElement int
HandleStartElement int
HandleWhiteSpace int
InsertIndentBefore void
InsertIndentBeforeEnd void
IsNewNode bool
IsWhiteSpace bool
LookAheadForIndent string
LookForSiblingIndent string
NeedsIndent bool
PopIndent void
PushIndent void
ReorderNewItemsAtEnd void
SetIndent void
XmlFormatter System

Public Methods

Method Description
Format ( XmlDocument document ) : void
IsText ( XmlNode node ) : bool

Private Methods

Method Description
ComputeCurrentAttributeIndent ( ) : string
ComputeCurrentIndent ( ) : string
ComputeOneTab ( ) : string
ConvertIndentToTab ( string indent ) : string
EnsureNodeIndent ( XmlNode node, bool indentBeforeEnd ) : int
FindLastNewLine ( string whitespace ) : int
FormatAttributes ( XmlNode node ) : void
FormatLoop ( XmlNode parentNode ) : void
GetIndentFromWhiteSpace ( XmlNode node ) : string
HandleElement ( XmlNode node ) : int
HandleEndElement ( XmlNode node ) : int
HandleStartElement ( XmlNode node ) : int
HandleWhiteSpace ( XmlNode node ) : int
InsertIndentBefore ( XmlNode node ) : void
InsertIndentBeforeEnd ( XmlNode node ) : void
IsNewNode ( XmlNode node ) : bool
IsWhiteSpace ( XmlNode node ) : bool
LookAheadForIndent ( ) : string
LookForSiblingIndent ( XmlNode currentNode ) : string
NeedsIndent ( XmlNode node, XmlNode previousNode ) : bool
PopIndent ( ) : void
PushIndent ( ) : void
ReorderNewItemsAtEnd ( XmlNode node ) : void
SetIndent ( string indent ) : void
XmlFormatter ( XmlFileInfoDocument document ) : System

Method Details

Format() public static method

public static Format ( XmlDocument document ) : void
document System.Xml.XmlDocument
return void

IsText() public method

public IsText ( XmlNode node ) : bool
node System.Xml.XmlNode
return bool