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()
           
 
Method Summary
static SAXParser createSAXParser()
          Create a SAX parser.
static String escape(String source)
          Escape special characters in the given string.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XML

public XML()
Method Detail

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.