org.jbpm.util
Class XmlUtil

java.lang.Object
  extended by org.jbpm.util.XmlUtil

public class XmlUtil
extends Object


Method Summary
static String attribute(Element element, String attrName)
           
static Element element(Element element)
           
static Element element(Element element, String tagName)
           
static Iterator elementIterator(Element element)
           
static Iterator elementIterator(Element element, String tagName)
           
static List elements(Element element)
           
static List elements(Element element, String tagName)
           
static String getContentText(Element element)
           
static DocumentBuilder getDocumentBuilder()
           
static Document parseXmlInputSource(InputSource inputSource)
           
static Document parseXmlInputStream(InputStream inputStream)
           
static Document parseXmlResource(String resource, boolean useConfiguredLoader)
           
static Document parseXmlText(String xml)
           
static String toString(Element element)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

parseXmlText

public static Document parseXmlText(String xml)

parseXmlResource

public static Document parseXmlResource(String resource,
                                        boolean useConfiguredLoader)
Parameters:
useConfiguredLoader - if true, this method searches for the resource in the context class loader, if not found it falls back on the class loader of this class
See Also:
JBPM-1148

parseXmlInputStream

public static Document parseXmlInputStream(InputStream inputStream)

parseXmlInputSource

public static Document parseXmlInputSource(InputSource inputSource)

getDocumentBuilder

public static DocumentBuilder getDocumentBuilder()

attribute

public static String attribute(Element element,
                               String attrName)

elementIterator

public static Iterator elementIterator(Element element,
                                       String tagName)

elements

public static List elements(Element element,
                            String tagName)

element

public static Element element(Element element,
                              String tagName)

elementIterator

public static Iterator elementIterator(Element element)

elements

public static List elements(Element element)

element

public static Element element(Element element)

toString

public static String toString(Element element)

getContentText

public static String getContentText(Element element)


Copyright © 2011 JBoss, a division of Red Hat, Inc.. All Rights Reserved.