I am trying to parse the below XML but getting the error. It is a standard XML returned by an apps web service
[Fatal Error] :2:51: The value of attribute "standardData" associated with an element type "null" must not contain the '<' character.
<Response success="true">
<Result><doesSandardDataExist standardData="{1=<node name="" required="N" hidden="N"
entityName="standarddata">
<node name="dataBasis" required="N" hidden="N" entityName="dataBasis" value=""/>
</node>
, 2=<node name="" required="N" hidden="N" entityName="standarddata">
<node name="dataBasis" required="N" hidden="N" entityName="dataBasis" value=""/>
</node>
}"
doesSandardDataExist="true" reInvestmentData="">
</doesSandardDataExist>
</Result>
<Messages></Messages>
</Response>
The below piece of code I used to parse the elements and the fatal error I am getting while parsing the document.
DocumentBuilder builder=DocumentBuilderFactory.newInstance().newDocumentBuilder();
InputSource scr = new InputSource();
scr.setCharacterStream(new StringReader(xml));
Document doc = builder.parse(scr);