/** * 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. * * @param parent this is the parent node to the next output node * @param name this is the name of the node that is to be created * * @return this returns an output node used for writing content */ private OutputNode writeStart(OutputNode parent, String name) throws Exception { OutputNode node = new OutputElement(parent, this, name); if(name == null) { throw new NodeException("Can not have a null name"); } return stack.push(node); }
/** * 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. * * @param parent this is the parent node to the next output node * @param name this is the name of the node that is to be created * * @return this returns an output node used for writing content */ private OutputNode writeStart(OutputNode parent, String name) throws Exception { OutputNode node = new OutputElement(parent, this, name); if(name == null) { throw new NodeException("Can not have a null name"); } return stack.push(node); }
/** * 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. * * @param parent this is the parent node to the next output node * @param name this is the name of the node that is to be created * * @return this returns an output node used for writing content */ private OutputNode writeStart(OutputNode parent, String name) throws Exception { OutputNode node = new OutputElement(parent, this, name); if(name == null) { throw new NodeException("Can not have a null name"); } return stack.push(node); }