Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations biv343 on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Dynamic XML islands in xhtml source CODE included

Status
Not open for further replies.

Phalanx1

Programmer
Jul 21, 2003
128
US
<code>
<HTML>
<HEAD>
<meta name=vs_targetSchema content=&quot;HTML 4.0&quot;>
<TITLE></TITLE>
<META HTTP-EQUIV=&quot;Content-Type&quot; content=&quot;text/html; charset=UTF-8&quot;>
<META NAME=&quot;save&quot; CONTENT=&quot;snapshot&quot;>
<STYLE>
.saveSnapshot {behavior:url(#default#savesnapshot);}</style>
<script>
var PDat=&quot;&quot;;
var XMLD=&quot;&quot;;
</script>
</HEAD>
<BODY id=&quot;Bel&quot; onmouseover=&quot;Bel.innerHtml=PDat;&quot;><textarea cols=&quot;40&quot; rows=&quot;20&quot; id=&quot;DXML&quot; class=&quot;saveSnapShot&quot;></textarea><br><input type=&quot;button&quot; onclick=&quot;build()&quot; value=&quot;Build XML.&quot;>

<script language=&quot;vbscript&quot;>
Dim x : Set x = CreateObject(&quot;MSXML2.DOMDocument&quot;)
Dim GD : GD = FormatDateTime(Date, vbShortDate)
function Build()
dim childNode
childNode = document.all.DXML.innerHTML
childNode = x.loadXML(childNode)
x.replaceChild(childNode, oRootNode)
End function

</script><span id=&quot;xs&quot;><xml id=&quot;oRootNode&quot; name=&quot;Dxml&quot;></xml></span>
<!-- Insert HTML here -->

</BODY>
</HTML>
</code>
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top