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.
Advertisement
[...] 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
[...] 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
[...] 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
[...] 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