org.apache.myfaces.shared_tomahawk.util.xml
Class XmlUtils
java.lang.Object
   org.apache.myfaces.shared_tomahawk.util.xml.XmlUtils
org.apache.myfaces.shared_tomahawk.util.xml.XmlUtils
- public class XmlUtils 
- extends Object
- Version:
- $Revision: 557350 $ $Date: 2007-07-18 13:19:50 -0500 (Wed, 18 Jul 2007) $
- Author:
- Manfred Geiler (latest modification by $Author: matzew $)
 
| Methods inherited from class java.lang.Object | 
| clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
 
getElementText
public static String getElementText(Element elem)
- 
 
getChildText
public static String getChildText(Element elem,
                                  String childTagName)
- Return content of child element with given tag name.
 If more than one children with this name are present, the content of the last
 element is returned.
 
- 
- Parameters:
- elem-
- childTagName-
- Returns:
- content of child element or null if no child element with this name was found
 
getChildTextList
public static List getChildTextList(Element elem,
                                    String childTagName)
- Return list of content Strings of all child elements with given tag name.
 
- 
- Parameters:
- elem-
- childTagName-
- Returns:
- List
 
Copyright © 2012 The Apache Software Foundation. All Rights Reserved.