Disable automatische Dekodierung von XML-DOM-Parser in Java

Das ist mein Programm:

public class XMLTest {

static String XMLdata="<Section DisplayLocation=\"Middle\" TargetLocation=\"ufdLocation0\" TemplateFileName=\"formaol\" TemplateID=\"formaol\" TemplateName=\"Form AOL\" UFDID=\"2a3935c7-105d-470e-b8ab-ad90c8f44880\"><Inputs BusinessNamePP=\"&lt;&gt;&lt;&gt;\" Caption=\"\" Description=\"A line must be active on your account for at least 30 days before it can be transferred to a new account.You have &lt;?ufd 'Test'?&gt; days remaining before you can transfer.\" Image1=\"\" Image2=\"\" ImageLabel1=\"\" ImageLab,el2=\"\" emailPP=\"&lt;Anji&gt;\" firstNamePP=\"&lt;Jeera&gt;\" lastNamePP=\"&lt;Hellow&gt;\"/></Section>";

    public static void main(String args[]){
        Document doc = null;
        try {
            DocumentBuilderFactory dbf = DocumentBuilderFactory.newInstance();
            DocumentBuilder db = null;
            db = dbf.newDocumentBuilder();
            doc = db.parse(new InputSource(new StringReader(XMLdata)));
            if (doc != null) {
                NodeList nodeList = doc.getElementsByTagName("Inputs");
                for(int x=0,size= nodeList.getLength(); x<size; x++) {
                    System.out.println(nodeList.item(x).getAttributes().getNamedItem("Description").getNodeValue());
                }
            }
        } catch (Exception e) {
            e.printStackTrace();
        }   
    }
}

Wenn ich das starte, erhalte ich die Ausgabe als

 A line must be active on your account for at least 30 days before it can be transferred to
 a new account.You have <?ufd 'Test'?> days remaining before you can transfer.

Aber ich möchte nicht, dass diese Dekodierung automatisch vom dom-Parser ausgeführt wird. Wie kann ich verhindern, dass diese Dekodierung ausgeführt wird?

Erwartete Ausgabe

A line must be active on your account for at least 30 days before it can be transferred to
a new account.You have &lt;?ufd 'Test'?&gt; days remaining before you can transfer.

Genau das Gleiche wie im XML, jedoch ohne explizite Konvertierung.

Antworten auf die Frage(0)

Ihre Antwort auf die Frage