Microsoft XML Core Services (MSXML) 5.0 for Microsoft Office - DOM Developer's Guide

Output

When you run the XSLT project, you should get the following output in two consecutive dialog boxes:

Doc.transformNode:
<?xml
version="1.0"?><network><node>one</node><nodes><node>1</node><node>2</node></nodes><node>two></node></network>

doc.transformNodeToObject:
<?xml version="1.0" encoding="UTF-16"?>
<network><node>one</node><nodes><node>1</node><node>2</node></nodes><node>two></node></network>

Next, we'll create an XML document dynamically.