X-Git-Url: https://git.saurik.com/android/aapt.git/blobdiff_plain/d9b0ea9f5bc75180ed375bf5d9542328e2e32db2..f31a875568a6a1049af3566d7f5ae440d29c9e4a:/XMLNode.cpp 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;