DOMToDoc Examples

These are examples showing the output through process data.

The following example shows the output of the process data tree in a document:


<process name = "DOMToDoc_Example1"> 
  <sequence>
    <assign to="." from="DocToDOM(PrimaryDocument)" />
    <assign to="." from="DOMToDoc(//)" />
  </sequence>
</process>

The following example shows the output of the document that loaded into process data and back into a document. I nodes returned from the DocToDOM call were placed into the Testpoint tag because the DOMToDoc call did not return the tag specified in the XPath. This prevents the loss of the document element.


<process name = "DOMToDoc_Example1"> 
  <sequence>
    <assign to="Testpoint" from="DocToDOM(PrimaryDocument)" />
    <assign to="." from="DOMToDoc(Testpoint)" />
  </sequence>
</process>