C# Class NContrib.Extensions.XDocumentExtensions

Mostrar archivo Open project: veracross/ncontrib

Public Methods

Method Description
AddFragment ( this target, System.Xml.Linq.XElement other ) : void
Describe ( this attributes ) : string
DescribePath ( this e ) : string
DescribeSelector ( this e ) : string
GetValue ( this node, string name, string fallback = null ) : string
ToXDocument ( this doc ) : System.Xml.Linq.XDocument

Creates an XDocument

WriteToString ( this node ) : string

Returns an XmlNode as a string with indented formatting

WriteToString ( this doc, object settingsOverrides ) : string

Returns an XML node as a string with specified formatting

Method Details

AddFragment() public static method

public static AddFragment ( this target, System.Xml.Linq.XElement other ) : void
target this
other System.Xml.Linq.XElement
return void

Describe() public static method

public static Describe ( this attributes ) : string
attributes this
return string

DescribePath() public static method

public static DescribePath ( this e ) : string
e this
return string

DescribeSelector() public static method

public static DescribeSelector ( this e ) : string
e this
return string

GetValue() public static method

public static GetValue ( this node, string name, string fallback = null ) : string
node this
name string
fallback string
return string

ToXDocument() public static method

Creates an XDocument
public static ToXDocument ( this doc ) : System.Xml.Linq.XDocument
doc this
return System.Xml.Linq.XDocument

WriteToString() public static method

Returns an XmlNode as a string with indented formatting
public static WriteToString ( this node ) : string
node this XmlNode
return string

WriteToString() public static method

Returns an XML node as a string with specified formatting
public static WriteToString ( this doc, object settingsOverrides ) : string
doc this XmlNode
settingsOverrides object Settings overrides
return string