Class Xml
Xml field wrapper
Inherited Members
Namespace: XData.Mapping
Assembly: XData.docfx.dll
Syntax
public abstract class Xml
  Examples
    // declaration
        [Property("source", "SR", Flags = DataPropertyFlag.OuterFlag)] 
        public Xml Source { get; set; }
    // using
        newInvoice.Source += new XDocument(new XElement("invoice", new XAttribute("number", number), new XAttribute("state", "CREATED")));
    // is the same as
        newInvoice.Source.Document = new XDocument(new XElement("invoice", new XAttribute("number", number), new XAttribute("state", "CREATED")));
  Properties
| Improve this Doc View SourceAssigned
Xml is value is changed from null value
Declaration
public abstract bool Assigned { get; }
  Property Value
| Type | Description | 
|---|---|
| Boolean | 
Cleared
Xml is value is cleared
Declaration
public abstract bool Cleared { get; }
  Property Value
| Type | Description | 
|---|---|
| Boolean | 
Document
Xml document
Declaration
public abstract XDocument Document { get; set; }
  Property Value
| Type | Description | 
|---|---|
| XDocument | 
EmptyKeys
Xml table keys are empty
Declaration
public abstract bool EmptyKeys { get; }
  Property Value
| Type | Description | 
|---|---|
| Boolean | 
Methods
| Improve this Doc View SourceExtract(String, KeyValuePair<String, String>[])
Extract value by xpath expression
Declaration
public abstract string Extract(string path, params KeyValuePair<string, string>[] namespaces)
  Parameters
| Type | Name | Description | 
|---|---|---|
| String | path | XPath expression  | 
      
| KeyValuePair<String, String>[] | namespaces | Xml namespaces  | 
      
Returns
| Type | Description | 
|---|---|
| String | Value  | 
      
Operators
| Improve this Doc View SourceAddition(Xml, XDocument)
Set Xml document
Declaration
public static Xml operator +(Xml xml, XDocument document)
  Parameters
| Type | Name | Description | 
|---|---|---|
| Xml | xml | Xml property  | 
      
| XDocument | document | Xml document  | 
      
Returns
| Type | Description | 
|---|---|
| Xml | Updated xml property  | 
      
Implicit(Xml to XDocument)
Implicit Xml document conversion
Declaration
public static implicit operator XDocument(Xml xml)
  Parameters
| Type | Name | Description | 
|---|---|---|
| Xml | xml | Xml property  | 
      
Returns
| Type | Description | 
|---|---|
| XDocument | Xml document  | 
      
Extension Methods
      SqlBlockExtensions.SetExpression<TTag, TResult>(TTag, Expression<Func<IBlockQueryAdapter, TResult>>)