fix dom stub tests: visit attribute children before subtags

This commit is contained in:
peter
2013-11-04 16:15:39 +01:00
parent 10066ccd5f
commit 514b389878
@@ -51,12 +51,12 @@ class DomStubBuilderVisitor {
StringRef.fromString(tag.getName()),
StringRef.fromNullableString(nsKey),
description instanceof CustomDomChildrenDescription);
for (final XmlTag subTag : tag.getSubTags()) {
visitXmlElement(subTag, stub);
}
for (XmlAttribute attribute : tag.getAttributes()) {
visitXmlElement(attribute, stub);
}
for (final XmlTag subTag : tag.getSubTags()) {
visitXmlElement(subTag, stub);
}
} else if (element instanceof XmlAttribute) {
new AttributeStub(parent, StringRef.fromString(((XmlAttribute)element).getLocalName()),
StringRef.fromNullableString(nsKey),