X-Git-Url: https://git.saurik.com/android/aapt.git/blobdiff_plain/15c62a5b13cda41eee74f9d224e8a74cf31377b5..2256a61efe4b45bda947ac32f06b583284805753:/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;