To my app is sent data in xml:\[code\]<?xml version="1.0" encoding="UTF-8" standalone="no"?><response><status>FAIL</status><time>2012-12-11 22:35</time></response>\[/code\]I can read this data by:\[code\]String si;while(is.available()>0){ si+=(char)is.read();}\[/code\]But using Document builder:\[code\]Document doc=db.parse(sock.getInputStream());\[/code\]Hangs my application in this place.Can somebody explain me this?