From: handa Date: Thu, 18 Mar 2010 05:52:08 +0000 (+0000) Subject: (parse_header_xml): Skip comments. X-Git-Tag: XML-before-trunk-merge~1 X-Git-Url: http://git.chise.org/gitweb/?a=commitdiff_plain;h=750bebdae85be66b856b320fde54c5fbe2266ff8;p=m17n%2Fm17n-lib.git (parse_header_xml): Skip comments. --- diff --git a/src/database.c b/src/database.c index e9928db..209940d 100644 --- a/src/database.c +++ b/src/database.c @@ -1023,7 +1023,9 @@ parse_header_xml (xmlTextReaderPtr reader, MSymbol tags[4], ... */ - xmlTextReaderRead (reader); /* */ + do { + xmlTextReaderRead (reader); /* */ + } while (xmlTextReaderNodeType (reader) == XML_READER_TYPE_COMMENT); tags[0] = msymbol ((char *) xmlTextReaderConstLocalName (reader)); xmlTextReaderRead (reader); /* */ depth = xmlTextReaderDepth (reader);