C# Class XmlTransformer.XElementExtensions

Mostra file Open project: micahlmartin/XmlTransformer

Public Methods

Method Description
ElementsNoNamespace ( this container, string localName ) : IEnumerable
ElementsNoNamespace ( this source, string localName ) : IEnumerable
Except ( this source, System.Xml.Linq.XElement target ) : System.Xml.Linq.XElement
GetOptionalAttributeValue ( this element, string localName, string namespaceName = null ) : string
GetOptionalElementValue ( this element, string localName, string namespaceName = null ) : string
MergeWith ( this source, System.Xml.Linq.XElement target ) : System.Xml.Linq.XElement
MergeWith ( this source, System.Xml.Linq.XElement target, XElement>.IDictionary nodeActions ) : System.Xml.Linq.XElement
RemoveAttributes ( this element, bool>.Func condition ) : void
ToXElement ( this xml ) : System.Xml.Linq.XElement
ToXmlElement ( this xml ) : XmlElement

Private Methods

Method Description
AttributeEquals ( System.Xml.Linq.XAttribute source, System.Xml.Linq.XAttribute target ) : bool
Compare ( System.Xml.Linq.XElement target, System.Xml.Linq.XElement left, System.Xml.Linq.XElement right ) : int
CountMatches ( System.Xml.Linq.XElement left, System.Xml.Linq.XElement right, Func matcher ) : int
FindElement ( System.Xml.Linq.XElement source, System.Xml.Linq.XElement targetChild ) : System.Xml.Linq.XElement
HasConflict ( System.Xml.Linq.XElement source, System.Xml.Linq.XElement target ) : bool

Method Details

ElementsNoNamespace() public static method

public static ElementsNoNamespace ( this container, string localName ) : IEnumerable
container this
localName string
return IEnumerable

ElementsNoNamespace() public static method

public static ElementsNoNamespace ( this source, string localName ) : IEnumerable
source this
localName string
return IEnumerable

Except() public static method

public static Except ( this source, System.Xml.Linq.XElement target ) : System.Xml.Linq.XElement
source this
target System.Xml.Linq.XElement
return System.Xml.Linq.XElement

GetOptionalAttributeValue() public static method

public static GetOptionalAttributeValue ( this element, string localName, string namespaceName = null ) : string
element this
localName string
namespaceName string
return string

GetOptionalElementValue() public static method

public static GetOptionalElementValue ( this element, string localName, string namespaceName = null ) : string
element this
localName string
namespaceName string
return string

MergeWith() public static method

public static MergeWith ( this source, System.Xml.Linq.XElement target ) : System.Xml.Linq.XElement
source this
target System.Xml.Linq.XElement
return System.Xml.Linq.XElement

MergeWith() public static method

public static MergeWith ( this source, System.Xml.Linq.XElement target, XElement>.IDictionary nodeActions ) : System.Xml.Linq.XElement
source this
target System.Xml.Linq.XElement
nodeActions XElement>.IDictionary
return System.Xml.Linq.XElement

RemoveAttributes() public static method

public static RemoveAttributes ( this element, bool>.Func condition ) : void
element this
condition bool>.Func
return void

ToXElement() public static method

public static ToXElement ( this xml ) : System.Xml.Linq.XElement
xml this
return System.Xml.Linq.XElement

ToXmlElement() public static method

public static ToXmlElement ( this xml ) : XmlElement
xml this
return System.Xml.XmlElement