<@DOMREPLACE OBJECT=variable [SCOPE=scope] [ELEMENT=Xpointer]> ...XML goes here...</@DOMREPLACE>
This tag is used to replace XML in a document instance. The OBJECT attribute (and optional SCOPE attribute) defines the variable which contains the document instance. The ELEMENT attribute points to the element in the document instance to be replaced.
For more information on the use of <@DOM...> meta tags, see Chapter 9 of the User's Guide.
Starting with the following document instance in a variable called myDom:
<XML>
<DIV>
<P>Paragraph 1</P>
<P>Paragraph 2</P>
</DIV>
</XML>
<@DOMREPLACE OBJECT="myDom" ELEMENT="child(1).child(2)"><P>A different para.</P>
</@DOMREPLACE> replaces the XML and results in the following structure:
<XML>
<DIV>
<P>Paragraph 1</P>
<P>A different para.</P>
</DIV>
</XML>
<@DOM>
<@DOMDELETE>
<@DOMINSERT>
<@ELEMENTATTRIBUTE>
<@ELEMENTATTRIBUTES>
<@ELEMENTNAME>
<@ELEMENTVALUE>