X-Git-Url: https://git.saurik.com/android/aapt.git/blobdiff_plain/1eb15b505ba1d7ea5a18363c4b7b137f2e9f6d01..65e6371ed104cb80ea8a0cee0f31c07362bc1fff:/XMLNode.cpp?ds=sidebyside 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;