try {

     DocumentBuilderFactory dbFactory = DocumentBuilderFactory. newInstance ( ) ;
     DocumentBuilder dBuilder = dbFactory. newDocumentBuilder ( ) ;
     Document doc = dBuilder. parse ( new String(resbuf.array()) ) ;
     doc. getDocumentElement ( ) . normalize ( ) ;

     System . out . println ( "Root element :" + doc. getDocumentElement ( ) . getNodeName ( ) ) ;
     NodeList nList = doc. getElementsByTagName ( "NHGPMSG" ) ;
     System . out . println ( "-----------------------" ) ;

     for ( int temp = 0 ; temp < nList. getLength ( ) ; temp ++ ) {

        Node nNode = nList. item ( temp ) ;
        if ( nNode. getNodeType ( ) == Node. ELEMENT_NODE ) {

           Element eElement = ( Element ) nNode ;

           System . out . println ( "NDEFTagRecord : " + getTagValue ( "NDEFTagRecord" , eElement ) ) ;

        }
     }
       } catch ( Exception e ) {
     e. printStackTrace ( ) ;
    System . out . println ("\n------------------------------------\n" +"e : " + e +"\n------------------------------------") ;
       }

이런식으로 컨트롤 + cv로 가져와서 수정을해놧습니다.

Document doc = dBuilder. parse ( new String(resbuf.array()) ) ; 이부분이 xml가져오는부분인대

new String(resbuf.array()) 이부분이 서버에서 xml을 받아오는 부분입니다.

근대 parse 라는것은 URI or File 을 불러와서 하는건대 ...

new String(resbuf.array()) 같은경우는 서버요청을하고 그요청에 답변이 담겨져 있는겁니다.

new String(resbuf.array()) xml이 String로 담겨져있는걸 필요한부분만 가져오려합니다.

뭐 노가다해서 xml에 있는거 서브스티링이나 해서 하나하나 잘라가면서 가져와도 되거나
따로 File로 저장해버려서 File로 불러와도 되는대

그것보다 다른더좋은 방법이 있을꺼라 믿고있어서 이렇게 질문올립니다.

헤헿



참고사항
e : java.net.MalformedURLException: no protocol: <?xml version="1.0" encoding="UTF-8"?>
<NHGPMSG version="1.0">
  <Header>
    <Endpoint IN="010-1234-5678" model="GalaxyNexus" OS="android"/>
    <Result code="0" desc="OK" context=""/>
  </Header>
  <Body>
    <TagQueryResponse>
      <NDEFTagResult code="urn:mcode:id:urn:mcode:id:2730.6.1.10006.633">
        <NDEFTagRecord order="0" preference="100" flag="u" service="C2U+ktmcs:web" value="http://csnfctb.co.cc:9201/taginfo.do?type=html&amp;tagid=20120423175913_841" title=""/>
      </NDEFTagResult>
    </TagQueryResponse>
  </Body>
</NHGPMSG>

이것이 저부분 에러를 찍었을때 나는 에러입니다 ㅠㅠ