/* 파서 class 입니다*/
public class XMLParserWithDom
 {
     public  List<ROW> parse( String string )
             throws Exception
     {
         List<ROW> _result = new LinkedList<ROW>();
         DocumentBuilder _docBuilder = DocumentBuilderFactory.newInstance().newDocumentBuilder();
         Document _doc = _docBuilder.parse( string );
         NodeList _rowlist = _doc.getDocumentElement().getElementsByTagName( "VALUE" );
         for ( int i = 0; i < _rowlist.getLength(); i++ ) {
             Node _row = _rowlist.item( i );
             ROW _r = new ROW();
             if ( _row.getNodeType() == Node.ELEMENT_NODE ) {
                 NodeList _child = _row.getChildNodes();
                 for ( int j = 0; j < _child.getLength(); j++ ) {
                     Node _ele = _child.item( j );
                     if ( _ele.getNodeType() == Node.ELEMENT_NODE ) {
                         String _name = _ele.getNodeName();
                         String _content = _ele.getTextContent();
                         if ( _name.equalsIgnoreCase( "no" ) ) {
                             _r.setno( _content );
                         } else if ( _name.equalsIgnoreCase( "name" ) ) {
                             _r.setname( _content );
                         } else if ( _name.equalsIgnoreCase( "kor" ) ) {
                             _r.setkor( _content );
                         } else if ( _name.equalsIgnoreCase( "eng" ) ) {
                             _r.seteng( _content );
                         } else if ( _name.equalsIgnoreCase( "mat" ) ) {
                             _r.setmat( _content );
                         } else {
                             throw new SAXException( "Unexpacted Element: " + _name );
                         }
                     }
                 }
             }
             _result.add( _r );
         }
         return _result;
     }
 }

경로는
   XMLParserWithDom xml = new XMLParserWithDom();
      String s = "test.xml";
      try {
    System.out.print(xml.parse("data/data/com.db.test/test.xml"));     //<= 경로   이렇게 지정해주는데 url 문제있는것같아서요.
     
   } catch (Exception e) {
    // TODO Auto-generated catch block
    e.printStackTrace();
   }

 
 
 
그냥 java에서는 프로젝트 파일안에 test.xml이 있으면  파일이름만 test.xml만 써주면 읽어서 파싱하는데
안드로이드에서는 안되내요.;
 
안드로이드 에서 xml 파일 을  data/data/com.db.test(지금프로그램패키지)/   에  test.xml로 만들기는 성공했는데
 
data/data/com.db.test/test.xml  을 읽어올수가 없내요.   방법좀가르쳐주세요 ㅠㅠ