android - Read XML from R.xml and not as an XMLPullParser -


i want pass xmls r.xml directory simple library deserialization.

the library accepts readers , inputsreams , such.

but r.xml xmlpullparser. how can reader or inputstream instead?

if save xml fine inside res/raw instead of res/xml, should able use openrawresource

getresources().openrawresource(r.raw.xml_name) 

which returns inputstream


Comments

Popular posts from this blog

java - Ebean enhancement ignores a model -

ubuntu - How to disable Kernel Module Signing in linux -

SQL php on different pages to Insert (mysqli) -