net.firstpartners.rp.back.extractor.xml
Class Translator

java.lang.Object
  extended by net.firstpartners.rp.back.extractor.xml.Translator

public class Translator
extends java.lang.Object

Translate from xml strcuture (w3c.dom) into internal Node-structure

Version:
1.1
Author:
Firstpartners.net

Constructor Summary
Translator()
           
 
Method Summary
static java.lang.String encode(java.lang.String strText)
          Encode the set of special XML characters: < > " ' ?
static NodeStruct translate(org.w3c.dom.Node node)
          Generate a node struct object using a org.w3c.dom.Node object
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Translator

public Translator()
Method Detail

translate

public static NodeStruct translate(org.w3c.dom.Node node)
Generate a node struct object using a org.w3c.dom.Node object

Parameters:
node - XML-object
Returns:
NodeStruct object

encode

public static java.lang.String encode(java.lang.String strText)
Encode the set of special XML characters: < > " ' ?

Parameters:
strText - String to be encoded
Returns:
encoded String