get Properties child Node from Parent XML Element - Java XML

Java examples for XML:XML Element Child

Description

get Properties child Node from Parent XML Element

Demo Code


//package com.java2s;

import org.w3c.dom.Element;

public class Main {
    public static final String PROPERTIES_NODE = "properties";

    public static Element getPropertiesNode(Element parent) {
        return (Element) parent.getElementsByTagName(PROPERTIES_NODE).item(
                0);//from  w w  w  . ja  v a 2s .  com
    }
}

Related Tutorials