XmlPullParser for a xml on sdcard does not ignore whitespaces
I am reading the same XML using XmlPullParser either from embedded resource of the app or from SD. The problem is that when I read xml from resource whitespaces are ignored but for xml on sdcard are not ignored.

Here is how I create PullParser for xml in resource (further pulling code is common for both cases)

       XmlPullParser parser = context.getResources().getXml(resId);

And here I create parser for xml on sdcard

		XmlPullParserFactory factory = XmlPullParserFactory.newInstance();
		XmlPullParser parser = factory.newPullParser();

		FileReader fileReader = new FileReader(filePath);
		
		parser.setInput(fileReader);
XmlPullParser for a xml on sdcard does not ignore whitespaces
===

I am reading the same XML using XmlPullParser either from embedded resource of the app or from SD. The problem is that when I read xml from resource whitespaces are ignored but for xml on sdcard are not ignored.

Here is how I create PullParser for xml in resource (further pulling code is common for both cases)

       XmlPullParser parser = context.getResources().getXml(resId);

And here I create parser for xml on sdcard

		XmlPullParserFactory factory = XmlPullParserFactory.newInstance();
		XmlPullParser parser = factory.newPullParser();

		FileReader fileReader = new FileReader(filePath);
		
		parser.setInput(fileReader);