org.openorb.board.shared.util

Class XMLUtils

public class XMLUtils extends Object

This class provides methods for reading / writing a XML document. This ideally would be mapped to Castor.

Author: Marina DANIEL Olivier Modica

Method Summary
static Node[]getElements(Node rootNode, String elementName)
This method returns the nodes (if several) represented by the element name.
static String[]getStringValue(Node rootNode, String elementName)
This methods returns the property values ( if several ) in a string format

Method Detail

getElements

public static Node[] getElements(Node rootNode, String elementName)
This method returns the nodes (if several) represented by the element name.

Parameters: elementName The element name in node0.node1.node2 format.

Returns: The required nodes.

getStringValue

public static String[] getStringValue(Node rootNode, String elementName)
This methods returns the property values ( if several ) in a string format

Parameters: elementName the property name ( in node0.node1.node2:attr format )

Returns: the property values