Issue
In my Android application I need to parse xml like this:
<items>
<item title="@string/item1" />
<item title="@string/item2" />
</items>
I'd like to use simplexml for parsing.
But I cannot find anything about parsing resources ids in attributes. Is it possible to parse title attribute as int?
Solution
Yes, in SAXparser's startElement() you will have a parameter named attributes.
see this example
Answered By - Mohammed Azharuddin Shaikh
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.