com.dalsemi.onewire.application.tag
Class XML
java.lang.Object
|
+--com.dalsemi.onewire.application.tag.XML
- public class XML
- extends Object
XML services.
This class provides several XML utility functions.
Constructor Summary |
XML()
|
XML
public XML()
createSAXParser
public static SAXParser createSAXParser()
- Create a SAX parser.
- Returns:
- A new SAX parser.
escape
public static String escape(String source)
- Escape special characters in the given string.
This method takes a string and escapes special characters so it can be used as
the text content of an element or as an attribute value. For example, the
ampersand & becomes &.
- Parameters:
source
- The string to escape- Returns:
- The escaped string.