de.fh_mannheim.mm.dms.framework
Class XMLUtils

java.lang.Object
  extended byde.fh_mannheim.mm.dms.framework.XMLUtils

public class XMLUtils
extends java.lang.Object

Some functions for xml.

Version:
$Revision: 1.1 $
Author:
Jan Löffler, mail@jlsoft.de

Constructor Summary
XMLUtils()
           
 
Method Summary
static org.jdom.Element getChild(org.jdom.Element elChild, java.lang.String[] strPath)
          Extract the text of child.
static int getChildAttribute(org.jdom.Element elChild, java.lang.String strAttribute)
          Extract the value of child.
static long getChildAttributeLong(org.jdom.Element elChild, java.lang.String strAttribute)
          Extract the value of child.
static java.lang.String getChildText(org.jdom.Element elChild)
          Extract the text of child.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XMLUtils

public XMLUtils()
Method Detail

getChildText

public static java.lang.String getChildText(org.jdom.Element elChild)
Extract the text of child.

Parameters:
elChild - Child node
Returns:
extracted text

getChildAttribute

public static int getChildAttribute(org.jdom.Element elChild,
                                    java.lang.String strAttribute)
Extract the value of child.

Parameters:
elChild - Child node
Returns:
extracted value

getChildAttributeLong

public static long getChildAttributeLong(org.jdom.Element elChild,
                                         java.lang.String strAttribute)
Extract the value of child.

Parameters:
elChild - Child node
Returns:
extracted value

getChild

public static org.jdom.Element getChild(org.jdom.Element elChild,
                                        java.lang.String[] strPath)
Extract the text of child.

Parameters:
elChild - Child node
strPath - Path
Returns:
extracted text