Click or drag to resize

XmlSchemaManagerInsertNew Method

Creates a new node with the defined child name and inserts the newly created child into the child nodes collection of the specified parent. Optional, it can be specified, if the new node should get all attributes, which are defined in the schema, or only those attributes which are required (default behaviour). The Method can be overridden by specific schema managers, to add additional properties to the created node, which can not be derived directly from the schema.

Namespace: Aml.Engine.Schema
Assembly: Aml.Engine (in Aml.Engine.dll) Version: 3.2
Syntax
public virtual XElement InsertNew(
	XElement parent,
	XName childName,
	bool allAttributes = false
)

Parameters

parent  XElement
The parent node for insertion.
childName  XName
Name of the child
allAttributes  Boolean  (Optional)
optional parameter to specify, that all attributes should be added automatically to the created node.

Return Value

XElement
the created and inserted node.
See Also