/// <summary> /// This is used to begin writing on a new XML element. This is /// typically done by writing any comments required. This will /// create an output node of the specified name before writing /// the comment, if any exists. Once the comment has been written /// the node is pushed on to the head of the output node stack. /// </summary> /// <param name="parent"> /// this is the parent node to the next output node /// </param> /// <param name="name"> /// this is the name of the node that is to be created /// </param> /// <returns> /// this returns an output node used for writing content /// </returns> public OutputNode WriteStart(OutputNode parent, String name) { OutputNode node = new OutputElement(parent, this, name); if (name == null) { throw new NodeException("Can not have a null name"); } return(stack.Push(node)); }
/// <summary> /// This is used to begin writing on a new XML element. This is /// typically done by writing any comments required. This will /// create an output node of the specified name before writing /// the comment, if any exists. Once the comment has been written /// the node is pushed on to the head of the output node stack. /// </summary> /// <param name="parent"> /// this is the parent node to the next output node /// </param> /// <param name="name"> /// this is the name of the node that is to be created /// </param> /// <returns> /// this returns an output node used for writing content /// </returns> public OutputNode WriteStart(OutputNode parent, String name) { OutputNode node = new OutputElement(parent, this, name); if(name == null) { throw new NodeException("Can not have a null name"); } return stack.Push(node); }