 | XmlSchemaManagerCreateElement Method |
Creates a new node with the specified child name in the given xmlDocument. The
node is created with all required attributes and elements but is not inserted
in the document tree at this point. Use
Insert(XElement, XElement)
for insertion or
InsertNew(XElement, XName, Boolean) for a combined
creation and insertion.
Namespace: Aml.Engine.SchemaAssembly: Aml.Engine (in Aml.Engine.dll) Version: 3.2
Syntaxpublic virtual XElement CreateElement(
XName parentName,
XName childName,
bool allAttributes = false
)
Public Overridable Function CreateElement (
parentName As XName,
childName As XName,
Optional allAttributes As Boolean = false
) As XElement
public:
virtual XElement^ CreateElement(
XName^ parentName,
XName^ childName,
bool allAttributes = false
)
Parameters
- parentName XName
- Name of the child's parent
- childName XName
- Name of the child
- allAttributes Boolean (Optional)
-
Optional parameter to define, that not only required attributes, but all
possible attributes should be created.
Return Value
XElement
The created XML element.
Remarks
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.
See Also