Merge "Do not add empty <vndk> tag to device compatibility matrix"
diff --git a/parse_xml.cpp b/parse_xml.cpp
index 3df7e19..1723bd0 100644
--- a/parse_xml.cpp
+++ b/parse_xml.cpp
@@ -901,7 +901,9 @@
             }
         } else if (m.mType == SchemaType::DEVICE) {
             if (!(flags & SerializeFlag::NO_VNDK)) {
-                appendChild(root, vndkConverter(m.device.mVndk, d));
+                if (!(m.device.mVndk == Vndk{})) {
+                    appendChild(root, vndkConverter(m.device.mVndk, d));
+                }
             }
         }