It should be noted that XML is really a pretty lousy language all
around -- hard to code, slow/difficult to parse, bulky.  For many
purposes, if you have a choice, JSON is a better option if you need a
human-readable notation, and there are any number of internal forms
that would be better than XML if you don't need it to be human-
readable/modifiable.

I've not (yet) tried to comprehend Android's compiled XML -- is there
any sort of reference for it somewhere?

On Jul 13, 7:22 pm, Dianne Hackborn <[email protected]> wrote:
> On Tue, Jul 13, 2010 at 12:57 PM, Mark Murphy <[email protected]>wrote:
>
> > Part of the build process converts ordinary XML into a "binary XML"
> > format that is smaller and quicker to parse at runtime.
>
> Yeah, it's basically a pre-processed DOM (well enough of a DOM to directly
> do an XmlPullParser on top of).  Plus it also has other advanced features
> and APIs for even faster attribute retrieval, compile-time type conversions,
> string pooling, etc.
>
> --
> Dianne Hackborn
> Android framework engineer
> [email protected]
>
> Note: please don't send private questions to me, as I don't have time to
> provide private support, and so won't reply to such e-mails.  All such
> questions should be posted on public forums, where I and others can see and
> answer them.

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to