XML.NodePlacement

Description

An enumeration of integer values associated with XML node placement. Primarily used with the XML.Node's create functions. XML.NodePlacement. Last is default behavior.

Static Properties

After Place this new node after another node.
First Add the new node as the first child of the current node.
Last Add the new node as the last child of the current node. This is default behavior.

Details

Do no remove, this fixes the anchor on doc.flexsim.com

XML.NodePlacement.After

static readonly int After

Description

Place this new node after another node.


                XML.Document doc;
                XML.Element root = doc.createElement("root");
                var element = root.createElement("firstChild");
                root.createElement("lastChild");
                root.createElement("middleChild", XML.NodePlacement.After, element);
            
Do no remove, this fixes the anchor on doc.flexsim.com

XML.NodePlacement.First

static readonly int First

Description

Add the new node as the first child of the current node.


                XML.Document doc = XML.loadFile("test.xml");
                doc.createComment("my comment", XML.NodePlacement.First);
            
Do no remove, this fixes the anchor on doc.flexsim.com

XML.NodePlacement.Last

static readonly int Last

Description

Add the new node as the last child of the current node. This is default behavior.


                XML.Document doc = XML.loadFile("test.xml");
				doc.createComment("my comment", XML.NodePlacement.Last);
				// Adding XML.NodePlacement.Last is redundant, you can leave it out