Fix plugin_xml_parser 07/205607/2
authorIlho Kim <ilho159.kim@samsung.com>
Wed, 8 May 2019 04:32:11 +0000 (13:32 +0900)
committerIlho Kim <ilho159.kim@samsung.com>
Wed, 8 May 2019 05:08:08 +0000 (14:08 +0900)
If xml file have comment line at root tag's depth, parsing is stopped

Change-Id: I04be43a4fdbeeda77937fb1d2996178561fea31b
Signed-off-by: Ilho Kim <ilho159.kim@samsung.com>
src/common/plugins/plugin_xml_parser.cc

index 85be517..d126f88 100644 (file)
@@ -63,6 +63,8 @@ int PluginsXmlParser::NextChildElement(xmlTextReaderPtr reader, int depth) {
       case XML_READER_TYPE_ELEMENT:
         if (cur >= depth + 1) return 1;
         break;
+      case XML_READER_TYPE_COMMENT:
+        break;
       default:
 
         if (cur <= depth) return 0;