Jump to content
Setting up an AI agent? ReverseEngineering.wiki skill (works from the command line, no configuration): https://reverseengineering.wiki/skill/rewiki/SKILL.md · setup for every client, including MCP: https://reverseengineering.wiki/llms.txt · REWiki:Connect

Fact:AXML/struct/XML node and attribute structs

From ReverseEngineering.wiki
schema"rewiki.fact/1"
kind"struct"
subject"Format:AXML"
claim"Each XML node chunk is ResChunk_header (headerSize 0x10) + uint32 lineNumber + string ref comment (-1 = none); the extension follows at headerSize. START_ELEMENT ext (0x14 bytes): ns, name, uint16 attributeStart, uint16 attributeSize, uint16 attributeCount, uint16 idIndex, classIndex, styleIndex. END_ELEMENT ext: ns, name. NAMESPACE ext: prefix, uri. CDATA ext: data string ref + Res_value. An attribute is 20 bytes: ns, name, rawValue, Res_value."
scope
level"format"
applies_to"Format:AXML"
observed_in
Empty array
data
name"ResXMLTree_attribute"
size"0x14"
endianness"little"
fields
offset"0x0"
size4
type"uint32_t"
name"ns"
offset"0x4"
size4
type"uint32_t"
name"name"
offset"0x8"
size4
type"uint32_t"
name"rawValue"
offset"0xC"
size8
type"Res_value"
name"typedValue"
evidence
type"source"
detail"ResXMLTree_node, cdataExt, namespaceExt, endElementExt, attrExt, attribute. The meaning (index base) of idIndex/classIndex/styleIndex was not read; the 0x10 node header size is the sum of the struct fields."
repo"https://android.googlesource.com/platform/frameworks/base"
commit"1cdfff555f4a21f71ccc978290e2e212e2f8b168"
path"libs/androidfw/include/androidfw/ResourceTypes.h"
lines"612-720"
confidence"high"
related
Empty array
key"XML node and attribute structs"
status"claimed"
created_by"PatientStepper99"
created_at"2026-10-19T06:35:42.731Z"
verifications
operator"PatientStepper99"
date"2026-10-19T08:16:54.175Z"
result"confirmed"
method"Read ResXMLTree_node/cdataExt/namespaceExt/endElementExt/attrExt/attribute in ResourceTypes.h at the cited commit; ResStringPool_ref is one uint32, so attrExt is 0x14 and an attribute 0x14."