Word.CustomXmlInsertNodeBeforeOptions interface
Note
This API is provided as a preview for developers and may change based on feedback that we receive. Do not use this API in a production environment.
Inserts a new node just before the context node in the tree.
Remarks
Properties
name | If provided, specifies the base name of the element to be inserted. |
namespace |
If provided, specifies the namespace of the element to be inserted. This property is required to insert nodes of type |
next |
If provided, specifies the context node. |
node |
If provided, specifies the type of node to append. If the property isn't specified, it's assumed to be of type |
node |
If provided, specifies the value of the inserted node for those nodes that allow text. If the node doesn't allow text, the property is ignored. |
Property Details
name
Note
This API is provided as a preview for developers and may change based on feedback that we receive. Do not use this API in a production environment.
If provided, specifies the base name of the element to be inserted.
name?: string;
Property Value
string
Remarks
namespaceUri
Note
This API is provided as a preview for developers and may change based on feedback that we receive. Do not use this API in a production environment.
If provided, specifies the namespace of the element to be inserted. This property is required to insert nodes of type element
or attribute
; otherwise, it's ignored.
namespaceUri?: string;
Property Value
string
Remarks
nextSibling
Note
This API is provided as a preview for developers and may change based on feedback that we receive. Do not use this API in a production environment.
If provided, specifies the context node.
nextSibling?: Word.CustomXmlNode;
Property Value
Remarks
nodeType
Note
This API is provided as a preview for developers and may change based on feedback that we receive. Do not use this API in a production environment.
If provided, specifies the type of node to append. If the property isn't specified, it's assumed to be of type element
.
nodeType?: Word.CustomXmlNodeType | "element" | "attribute" | "text" | "cData" | "processingInstruction" | "comment" | "document";
Property Value
Word.CustomXmlNodeType | "element" | "attribute" | "text" | "cData" | "processingInstruction" | "comment" | "document"
Remarks
nodeValue
Note
This API is provided as a preview for developers and may change based on feedback that we receive. Do not use this API in a production environment.
If provided, specifies the value of the inserted node for those nodes that allow text. If the node doesn't allow text, the property is ignored.
nodeValue?: string;
Property Value
string