YAACC - UPNP Client and Server
Loading...
Searching...
No Matches
Static Public Member Functions | Static Protected Member Functions | List of all members
org.fourthline.cling.model.XMLUtil Class Reference

XML handling and printing shortcuts. More...

Collaboration diagram for org.fourthline.cling.model.XMLUtil:
Collaboration graph

Static Public Member Functions

static String documentToString (Document document) throws Exception
 
static String documentToString (Document document, boolean standalone) throws Exception
 
static String documentToFragmentString (Document document) throws Exception
 
static String encodeText (String s)
 
static String encodeText (String s, boolean encodeQuotes)
 
static Element appendNewElement (Document document, Element parent, Enum el)
 
static Element appendNewElement (Document document, Element parent, String element)
 
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 Element appendNewElement (Document document, Element parent, String element, Object content)
 
static Element appendNewElement (Document document, Element parent, String element, Object content, String namespace)
 
static String getTextContent (Node node)
 

Static Protected Member Functions

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

Detailed Description

XML handling and printing shortcuts.

This class exists because Android 2.1 does not offer any way to print an org.w3c.dom.Document, and it also doesn't implement the most trivial methods to build a DOM (although the API is provided, they fail at runtime). We might be able to remove this class once compatibility for Android 2.1 can be dropped.

Author
Christian Bauer

The documentation for this class was generated from the following file: