I am trying to get input stream from something like this.
InputSource myInputSource = new InputSource(activity.getResources().openRawResource(com.MYCLass.R.xml.programs));
myXMLReader.parse(myInputSource);
and then call parse on the parser instance i Created. Some how i get nothing.
Works fine if I use a server XML….
Put the xml file into
/res/raw folder. It looks like openRawResource opens resources from that folder only. You can also trygetResources().getXml(com.MYCLass.R.xml.programs);which will return you an instance of XML parser.A piece of code taken from @Krupa