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
Post a Comment