SaaS CMS has officially launched! Learn more now.

Class XFormConvert

Used to convert XHTML to an XForm.

Inheritance
System.Object
XFormConvert
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: EPiServer.XForms.Util
Assembly: EPiServer.XForms.dll
Version: 7.19.2
Syntax
public class XFormConvert

Constructors

XFormConvert()

Declaration
public XFormConvert()

Methods

Parse(XmlDocument)

Transform the content of an XmlDocument to a string representation of an XForm.

Declaration
public static string Parse(XmlDocument xhtml)
Parameters
Type Name Description
System.Xml.XmlDocument xhtml

The XmlDocument to parse.

Returns
Type Description
System.String

A string representation of an XForm.

Parse(XmlDocument, Boolean)

Transform the content of an XmlDocument to a string representation of an XForm.

Declaration
[Obsolete("Parse method with autoCorrect parameter is obsoleted. Use Transform(String html) instead.", false)]
public static string Parse(XmlDocument xhtml, bool autoCorrect)
Parameters
Type Name Description
System.Xml.XmlDocument xhtml

The XmlDocument to parse.

System.Boolean autoCorrect

If set to true, form elements that have the same name, no name or names including invalid characters will be corrected. Otherwise an exception will be thrown for invalid names.

Returns
Type Description
System.String

A string representation of an XForm.

Transform(String)

Transforms html to a SerializableXmlDocument containing an XForm definition.

Declaration
public static SerializableXmlDocument Transform(string html)
Parameters
Type Name Description
System.String html

The html to transform.

Returns
Type Description
SerializableXmlDocument

A SerializableXmlDocument containing an XForm definition.

Transform(String, Boolean)

Declaration
[Obsolete("Transform method with autoCorrect parameter is obsoleted. Use Transform(String html) instead.", false)]
public static string Transform(string html, bool autoCorrect)
Parameters
Type Name Description
System.String html
System.Boolean autoCorrect
Returns
Type Description
System.String

Extension Methods