public class XmlHelper extends Object
| Constructor and Description | 
|---|
| XmlHelper() | 
| Modifier and Type | Method and Description | 
|---|---|
| static String | getContent(Element element)
 This method will return the content of this particular  element. | 
| static Integer | getLoadOrder(Document doc) | 
| static Map<String,String> | getParams(Element paramsElement)
 This method will find all the parameters under this  paramsElementand return them as
 Map<String, String>. | 
public static Map<String,String> getParams(Element paramsElement)
 This method will find all the parameters under this paramsElement and return them as
 Map<String, String>. For example,
 
   <result ... >
      <param name="param1">value1</param>
      <param name="param2">value2</param>
      <param name="param3">value3</param>
   </result>
 
 will returns a Map<String, String> with the following key, value pairs:
paramsElement - params elementpublic static String getContent(Element element)
 This method will return the content of this particular element.
 For example,
 
    <result>something_1</result>
 
 
 When the Element <result> is passed in as
 argument (element to this method, it returns the content of it,
 namely, something_1 in the example above.
 
element - the DOM elementCopyright © 2000–2025 Apache Software Foundation. All rights reserved.