Show / Hide Table of Contents

Class XmlObjectHelper

Class to extract data from xml without caring about namespaces etc.

Inheritance
object
XmlObjectHelper
Inherited Members
object.ToString()
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
Namespace: SuperOffice.Util
Assembly: SoCore.dll
Syntax
public static class XmlObjectHelper

Methods

GetBoolValue(string, string)

Class to extract data from xml without caring about namespaces etc.

Declaration
public static bool GetBoolValue(string xml, string propertyName)
Parameters
Type Name Description
string xml
string propertyName
Returns
Type Description
bool

GetBoolValue(XElement, string)

Class to extract data from xml without caring about namespaces etc.

Declaration
public static bool GetBoolValue(this XElement xml, string propertyName)
Parameters
Type Name Description
XElement xml
string propertyName
Returns
Type Description
bool

GetIntValue(string, string)

Class to extract data from xml without caring about namespaces etc.

Declaration
public static int GetIntValue(string xml, string propertyName)
Parameters
Type Name Description
string xml
string propertyName
Returns
Type Description
int

GetIntValue(XElement, string)

Class to extract data from xml without caring about namespaces etc.

Declaration
public static int GetIntValue(this XElement xml, string propertyName)
Parameters
Type Name Description
XElement xml
string propertyName
Returns
Type Description
int

GetObject(string, string)

Class to extract data from xml without caring about namespaces etc.

Declaration
public static XElement GetObject(string xml, string propertyName)
Parameters
Type Name Description
string xml
string propertyName
Returns
Type Description
XElement

GetObject(XElement, string)

Class to extract data from xml without caring about namespaces etc.

Declaration
public static XElement GetObject(this XElement xml, string propertyName)
Parameters
Type Name Description
XElement xml
string propertyName
Returns
Type Description
XElement

GetStringValue(string, string)

Get property as string

Declaration
public static string GetStringValue(string xml, string propertyName)
Parameters
Type Name Description
string xml
string propertyName
Returns
Type Description
string

GetStringValue(XElement, string)

Get property as string

Declaration
public static string GetStringValue(this XElement xml, string propertyName)
Parameters
Type Name Description
XElement xml

Xml object

string propertyName

Name of property of xml object

Returns
Type Description
string

GetStringValue2(XElement, string)

Get property as string and trim

Declaration
public static string GetStringValue2(this XElement e, string propertyName)
Parameters
Type Name Description
XElement e

Xml object

string propertyName

Name of property of xml object

Returns
Type Description
string
© SuperOffice. All rights reserved.
SuperOffice |  Community |  Release Notes |  Privacy |  Site feedback |  Search Docs |  About Docs |  Contribute |  Back to top