C# Class NContrib.Extensions.XDocumentExtensions

Afficher le fichier Open project: veracross/ncontrib

Méthodes publiques

Méthode 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 méthode

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

Describe() public static méthode

public static Describe ( this attributes ) : string
attributes this
Résultat string

DescribePath() public static méthode

public static DescribePath ( this e ) : string
e this
Résultat string

DescribeSelector() public static méthode

public static DescribeSelector ( this e ) : string
e this
Résultat string

GetValue() public static méthode

public static GetValue ( this node, string name, string fallback = null ) : string
node this
name string
fallback string
Résultat string

ToXDocument() public static méthode

Creates an XDocument
public static ToXDocument ( this doc ) : System.Xml.Linq.XDocument
doc this
Résultat System.Xml.Linq.XDocument

WriteToString() public static méthode

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

WriteToString() public static méthode

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
Résultat string