Native Xml data Macro.
Syntax
Smartsite SXML | Copy Code |
---|---|
<se:xmlprocessor /> |
Parameters
Name | Data Type | Properties | Description |
---|---|---|---|
Actions | Collection | - | Sets the actions to perform on the XML object. |
AllowDtd | Boolean | - | Sets a value indicating whether to allow DTDs (Doctype definition) within the xml. When transforming xhtml which includes a doctype definition, you need to set this property totrue. |
BuildString | Boolean | - |
Sets a value indicating whether to build an output string using the code in each action. By default, the input Xml is manipulated in-place, and the result will be the modified Xml document. By specifying this value, the result will be constructed by executing the actions and concatenate the results. |
Encode | Boolean | - | Sets a value indicating whether to Smartsite.Runtime.Modules.XmlProcessorModule encode the given XML string. Default: true |
Fragment | Boolean | - | Sets a value indicating whether this Smartsite.Runtime.Modules.XmlProcessorModule is an XML fragment. |
Location | Locator | - | Sets the location of the xml to load. |
Namespaces | Collection | - | Sets the namespaces. |
PreserveWhitespace | Boolean | - | Sets a value indicating whether to preserve whitespace in the Xml document. |
RemoveDuplicateNamespaces | Boolean | - | Sets a value indicating whether to remove duplicate namespaces from the Xml when outputting a string. Duplicate namespace declarations are not illegal, but superfluous, and cause the string representation of the Xml to be larger than needed. |
Xml | String |
Trim
Default |
Sets the XML. |
XmlData | XML | - | Gets the XML object. |
Shared Parameters
Local Viper Methods
Viper | Extension | Description |
---|---|---|
This.AppendChild | Appends the given child node at the current node. | |
This.AppendChildBinary | Appends the given child xml at the current node. | |
This.AppendChildXml | Appends the given child xml at the current node. | |
This.ClearForcedResult |
Sets the result of the macro. used to override the normal handling of the result creation. |
|
This.Delete | Deletes the given node(s). | |
This.Evaluate | Evaluates the given expression at the current Xml node. | |
This.ExtractBinary | Gets the binary value of the current node as a Binary Data formatted DataTable. | |
This.GetAttribute | Gets the value of the given attribute on the current Xml node. | |
This.GetForcedResult | Gets the forced result of the macro, set by overriding the normal rendering using SetForcedResult(). | |
This.GetInnerXml | Gets the inner XML of the current node. | |
This.GetLocalNodeName | Gets the local node name of the current Xml node. | |
This.GetNamespaceUri | Gets the current namespace Uri of the current Xml node. | |
This.GetNodeName | Gets the node name of the current Xml node. | |
This.GetPrefix | Gets the namespace prefix of the current Xml node. | |
This.GetTypedValue | Gets the typed node value of the current Xml node. | |
This.GetValue | Gets the node value of the current Xml node. | |
This.GetXml | Gets the current Xml node as a new Xml object. | |
This.InsertAfter | Inserts the given xml after the current node. | |
This.InsertBefore | Inserts the given xml before the current node. | |
This.InsertNodeAfter | Inserts the given node after the current node. | |
This.InsertNodeBefore | Inserts the given node before the current node. | |
This.PopulateDatatable | Populates the specified datatable with the child nodes below the selected node. | |
This.RemoveAttribute | Removes an attribute on the given node(s). | |
This.RemoveNamespace | Removes the given namespace from the current node. | |
This.RenderTime | ✓ | Returns the render time of the macro in milliseconds. |
This.SetAttribute | Adds or sets an attribute on the given node(s). | |
This.SetForcedResult |
Sets the result of the macro. used to override the normal handling of the result creation. |
|
This.SetInnerXml | Updates the current node's inner Xml. Encodes the given xml. | |
This.SetNamespace | Sets the default namespace for the current node. | |
This.SetResult | Sets the result of the processing. Overrules the default return value, being the Xml data. | |
This.SetValue | Updates the current node's value. | |
This.Xml | Gets the XML object. |