Just An Application

September 22, 2011

Android Internals: Binary XML – Part Three: XML Node

The headers of the chunks representing the start and end of namespace scopes, the start and end of elements, and CDATA are all instances of the following
C++ struct (see frameworks/base/include/ResourceTypes.h lines 505-514)

    struct ResXMLTree_node
    {
        struct ResChunk_header header;

        // Line number in original source file at which this element appeared.
        uint32_t lineNumber;

        // Optional XML comment that was associated with this element; -1 if none.
        struct ResStringPool_ref comment;
    };

Copyright (c) 2011 By Simon Lewis. All Rights Reserved.

Advertisements

4 Comments »

  1. […] The chunk header is an instance of the struct ResXMLTree_node. […]

    Pingback by Android Internals: Binary XML – Part Five: The Start And End Namespace Chunks « Just An Application — September 24, 2011 @ 5:51 am

  2. […] The chunk header is an instance of struct ResXMLTree_node. […]

    Pingback by Android Internals: Binary XML – Part Six: The XML Start Element Chunk « Just An Application — September 25, 2011 @ 7:10 am

  3. […] The chunk header is an instance of struct ResXMLTree_node. […]

    Pingback by Android Internals: Binary XML – Part Seven: The XML End Element Chunk « Just An Application — September 26, 2011 @ 5:46 am

  4. […] The chunk header is an instance of struct ResXMLTree_node. […]

    Pingback by Android Internals: Binary XML – Part Eight: The CDATA Chunk « Just An Application — September 27, 2011 @ 3:24 am


RSS feed for comments on this post. TrackBack URI

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

Create a free website or blog at WordPress.com.

%d bloggers like this: