Package org.jupnp.model
Klasse XMLUtil
java.lang.Object
org.jupnp.model.XMLUtil
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.
- Autor:
- Christian Bauer
-
Konstruktorübersicht
Konstruktoren -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungstatic ElementappendNewElement(Document document, Element parent, Enum el) static ElementappendNewElement(Document document, Element parent, String element) static ElementappendNewElement(Document document, Element parent, String element, Object content) static ElementappendNewElement(Document document, Element parent, String element, Object content, String namespace) static ElementappendNewElementIfNotNull(Document document, Element parent, Enum el, Object content) static ElementappendNewElementIfNotNull(Document document, Element parent, Enum el, Object content, String namespace) static ElementappendNewElementIfNotNull(Document document, Element parent, String element, Object content) static ElementappendNewElementIfNotNull(Document document, Element parent, String element, Object content, String namespace) static StringdocumentToFragmentString(Document document) static StringdocumentToString(Document document) static StringdocumentToString(Document document, boolean standalone) static StringencodeText(String s) static StringencodeText(String s, boolean encodeQuotes) static StringgetTextContent(Node node) protected static StringnodeToString(Node node, Set<String> parentPrefixes, String namespaceURI)
-
Konstruktordetails
-
XMLUtil
public XMLUtil()
-
-
Methodendetails
-
documentToString
- Löst aus:
Exception
-
documentToString
- Löst aus:
Exception
-
documentToFragmentString
- Löst aus:
Exception
-
nodeToString
protected static String nodeToString(Node node, Set<String> parentPrefixes, String namespaceURI) throws Exception - Löst aus:
Exception
-
encodeText
-
encodeText
-
appendNewElement
-
appendNewElement
-
appendNewElementIfNotNull
-
appendNewElementIfNotNull
-
appendNewElementIfNotNull
-
appendNewElementIfNotNull
-
appendNewElement
-
appendNewElement
-
getTextContent
-