Index: grit/format/android_xml.py |
diff --git a/grit/format/android_xml.py b/grit/format/android_xml.py |
index d960bf49ddb8f009575b36f3a146cd25edbef8f8..e835e9b9305a38d39b08d9bab7915e0be5f57a87 100644 |
--- a/grit/format/android_xml.py |
+++ b/grit/format/android_xml.py |
@@ -112,7 +112,7 @@ def Format(root, lang='en', output_dir='.'): |
raise Exception('env variable ANDROID_JAVA_TAGGED_ONLY must have value ' |
'true or false. Invalid value: %s' % tagged_only) |
- for item in root.ActiveDescendants(): |
+ for item in root.Preorder(): |
with item: |
if ShouldOutputNode(item, tagged_only): |
yield _FormatMessage(item, lang) |