The nature of the dynamic manipulation of HTML ranges from straightforward, localized content replacement to the making of wholesale changes to the structure of the document. In this section, we will walk through strategies for using cloned portions of a DOM template to build new DOM structure and content.
Template manipulation can take the form of simple replacement of placeholder or mockup content. Taking advantage of the role of the id attribute in XMLC programming turns this into a trivial task:
<HTML> <BODY> <P>Street Address: <SPAN id=vendorAddress>111 AAA Way</SPAN>. </BODY> </HTML>
In this simple HTML example, no additional markup is actually being created or reworked. Our intent is to simply ...