X-Git-Url: https://git.saurik.com/android/aapt.git/blobdiff_plain/30275038bb13ac252ffe19c89f9f8a5526541f0f..337efd6a727a249be478c824dbff5e11e98fee4e:/XMLNode.cpp?ds=inline diff --git a/XMLNode.cpp b/XMLNode.cpp index 036dde4..4c59288 100644 --- a/XMLNode.cpp +++ b/XMLNode.cpp @@ -555,6 +555,19 @@ const XMLNode::attribute_entry* XMLNode::getAttribute(const String16& ns, return NULL; } +XMLNode::attribute_entry* XMLNode::editAttribute(const String16& ns, + const String16& name) +{ + for (size_t i=0; ins == ns && ae->name == name) { + return ae; + } + } + + return NULL; +} + const String16& XMLNode::getCData() const { return mChars;