Codeunit CCS DIS Mapping Xml Mgt.
codeunit 5100937 "CCS DIS Mapping Xml Mgt."
Methods
CreateNewDocument
public "CCS DIS Mapping Xml Mgt." CreateNewDocument(var RootElement: XmlElement; Name: Text): None
Creates a XML document with a root node name.
Parameters
Name | Type | Description |
---|---|---|
RootElement | XmlElement |
Returns the root node of the created xml document. |
Name | Text |
The name of the root node to be created. |
Return Value
None
CreateTextNode
public "CCS DIS Mapping Xml Mgt." CreateTextNode(ParentNode: XmlNode; Name: Text; Value: Text): None
Adds a XML node to parent and sets the inner text value.
Parameters
Name | Type | Description |
---|---|---|
ParentNode | XmlNode |
The parent node to add the new node. |
Name | Text |
The name of the new node. |
Value | Text |
The inner text value of the new node. |
Return Value
None
EncodeFieldName
public "CCS DIS Mapping Xml Mgt." EncodeFieldName(Name: Text): Text
Encodes a name for an XML node.
Parameters
Name | Type | Description |
---|---|---|
Name | Text |
The name to be encoded. |
Return Value
Text
The encoded name.
GetNodeOuterText
public "CCS DIS Mapping Xml Mgt." GetNodeOuterText(var Node: XmlNode): Text
Returns the outer text of a XML node.
Parameters
Name | Type | Description |
---|---|---|
Node | XmlNode |
The node to return the text from. |
Return Value
Text
Returns the outer text.
GetNodePathValue
public "CCS DIS Mapping Xml Mgt." GetNodePathValue(Node: XmlNode; XPath: Text): Text
Returns the textual value of a node found by xpath.
If the xpath node was not found, an empty text is returned.
Parameters
Name | Type | Description |
---|---|---|
Node | XmlNode |
The parent node to execute the xpath. |
XPath | Text |
The xpath value for find the target node. |
Return Value
Text
Returns the textual value.
TryReadDocument
[TryFunction]
public "CCS DIS Mapping Xml Mgt." TryReadDocument(var RootNode: XmlElement; var TempBlob: Codeunit "Temp Blob"): Boolean
Tries to read a XML document from a temp BLOB.
Parameters
Name | Type | Description |
---|---|---|
RootNode | XmlElement |
The rood node of the read document. |
TempBlob | Codeunit "Temp Blob" |
The temp BLOB to read the XML document from. |
Return Value
Boolean
Returns true, if the document was read.
WriteDocument
public "CCS DIS Mapping Xml Mgt." WriteDocument(RootNode: XmlElement; var TempBlob: Codeunit "Temp Blob"): Boolean
Writes a XML document into a temp BLOB.
Parameters
Name | Type | Description |
---|---|---|
RootNode | XmlElement |
The root node of the XML document to be written. |
TempBlob | Codeunit "Temp Blob" |
The temp BLOB where the XML document is stored into. |
Return Value
Boolean
Returns true, if the XML document was written.