Code: Select all
<entry key="aKey">aValue</entry>
Normally, this wouldn't be an issue. I can recode back to UTF8. However, the user can navigate through screens several times a second, depending on what they are doing, which makes for dozens of unnecessary allocations/deallocations and CPU cycles.
My questions are:
1. Are my worries about reencoding texts, which can go up to 64K and above in size, a tempest in a teapot?
2. Can I prevent the reencoding when extracting to the map?
3. If not, can I access the XML nodes directly by the attribute (key)? The nodes seem to be addressable only by number.
4. If I use a different XML schema, rather than abusing the attribute function like Java does here, would that be a better solution for querying the XML directly? E.g.
Code: Select all
<aKey>aValue</aKey>
[or more properly]
<key>aKey</key><value>aValue</value>

