Selection.InsertXML Method
Word Developer Reference |
Inserts the specified XML into the document at the cursor, replacing any selected text.
Syntax
expression.InsertXML(XML, Transform)
expression An expression that returns a Selection object.
Parameters
Name | Required/Optional | Data Type | Description |
---|---|---|---|
XML | Required | String | Specifies the XML to insert. This can be any valid custom XML. |
Transform | Optional | Variant | Specifies the XML Transformation (XSLT) used to transform the XML. If omitted, the XML is inserted as custom XML without applying a transform. |
Return Value
Nothing
Example
The following example inserts the specified XML string into the document at the cursor, or replacing the active selection.
Visual Basic for Applications |
---|
|
See Also