Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## org.teleal.cling.model
Class XMLUtil

    java.lang.Object
      org.teleal.cling.model.XMLUtil

    public class XMLUtil

extends Object

Constructor Summary
`XMLUtil()`

Method Summary
`static Element` | `appendNewElement(Document document, Element parent, Enum el)`
`static Element` | `appendNewElement(Document document, Element parent, String element)`
`static Element` | `appendNewElement(Document document, Element parent, String element, Object content)`
`static Element` | `appendNewElement(Document document, Element parent, String element, Object content, String namespace)`
`static Element` | `appendNewElementIfNotNull(Document document, Element parent, Enum el, Object content)`
`static Element` | `appendNewElementIfNotNull(Document document, Element parent, Enum el, Object content, String namespace)`
`static Element` | `appendNewElementIfNotNull(Document document, Element parent, String element, Object content)`
`static Element` | `appendNewElementIfNotNull(Document document, Element parent, String element, Object content, String namespace)`
`static String` | `documentToString(Document document)`
`static String` | `documentToString(Document document, boolean standalone)`
`protected static String` | `encodeText(String s)`
`static String` | `getTextContent(Node node)`
`protected static String` | `nodeToString(Node node, Set<String> seenPrefixes, String namespaceURI)`

Methods inherited from class java.lang.Object
`clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

Constructor Detail

### XMLUtil

    public XMLUtil()

Method Detail

### documentToString

    public static String documentToString(Document document)
                                   throws Exception

  Throws:
    `Exception`

### documentToString

    public static String documentToString(Document document,
                                          boolean standalone)
                                   throws Exception

  Throws:
    `Exception`

### nodeToString

    protected static String nodeToString(Node node,
                                         Set<String> seenPrefixes,
                                         String namespaceURI)
                                  throws Exception

  Throws:
    `Exception`

### encodeText

    protected static String encodeText(String s)

### appendNewElement

    public static Element appendNewElement(Document document,
                                           Element parent,
                                           Enum el)

### appendNewElement

    public static Element appendNewElement(Document document,
                                           Element parent,
                                           String element)

### appendNewElementIfNotNull

    public static Element appendNewElementIfNotNull(Document document,
                                                    Element parent,
                                                    Enum el,
                                                    Object content)

### appendNewElementIfNotNull

    public static Element appendNewElementIfNotNull(Document document,
                                                    Element parent,
                                                    Enum el,
                                                    Object content,
                                                    String namespace)

### appendNewElementIfNotNull

    public static Element appendNewElementIfNotNull(Document document,
                                                    Element parent,
                                                    String element,
                                                    Object content)

### appendNewElementIfNotNull

    public static Element appendNewElementIfNotNull(Document document,
                                                    Element parent,
                                                    String element,
                                                    Object content,
                                                    String namespace)

### appendNewElement

    public static Element appendNewElement(Document document,
                                           Element parent,
                                           String element,
                                           Object content)

### appendNewElement

    public static Element appendNewElement(Document document,
                                           Element parent,
                                           String element,
                                           Object content,
                                           String namespace)

### getTextContent

    public static String getTextContent(Node node)

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

Copyright © 2010 Teleal GmbH, Switzerland. All Rights Reserved.