Java XML Element Create createElement(Node node, String name)

Here you can find the source of createElement(Node node, String name)

Description

create Element

License

Open Source License

Declaration

public static Element createElement(Node node, String name) 

Method Source Code

//package com.java2s;
/*******************************************************************************
 * Educational Online Test Delivery System Copyright (c) 2014 American
 * Institutes for Research//  ww  w. jav  a2 s . c  o m
 * 
 * Distributed under the AIR Open Source License, Version 1.0 See accompanying
 * file AIR-License-1_0.txt or at http://www.smarterapp.org/documents/
 * American_Institutes_for_Research_Open_Source_Software_License.pdf
 ******************************************************************************/

import org.w3c.dom.Element;
import org.w3c.dom.Node;

public class Main {
    public static Element createElement(Node node, String name) {
        return node.getOwnerDocument().createElement(name);
    }
}

Related

  1. createElement(Element parent, String tagName)
  2. createElement(Element parent, String tagName, String value)
  3. createElement(final Document document, final String elementName)
  4. createElement(final Document parentDocument, final String name)
  5. createElement(Node element, String name)
  6. createElement(Node parent, String tag)
  7. createElement(QName key)
  8. createElement(QName qName)
  9. createElement(String name, Object value, Document doc)