Comments in XML file caused the record detection code to fail. So we added ignorable element type that we can skip over.

git-svn-id: http://google-refine.googlecode.com/svn/trunk@1392 7d457c2a-affb-35e4-300a-418c747d4874
This commit is contained in:
David Huynh 2010-09-28 19:16:43 +00:00
parent bd3ded0828
commit 935355cb50
2 changed files with 5 additions and 1 deletions

View File

@ -2,6 +2,7 @@ package com.google.refine.importers.parsers;
public enum TreeParserToken {
Ignorable,
StartDocument,
EndDocument,
StartEntity,

View File

@ -49,8 +49,11 @@ public class XmlParser implements TreeParser{
case XMLStreamConstants.CHARACTERS: return TreeParserToken.Value;
case XMLStreamConstants.START_DOCUMENT: return TreeParserToken.StartDocument;
case XMLStreamConstants.END_DOCUMENT: return TreeParserToken.EndDocument;
//TODO
default: throw new ServletException("Not yet implemented");
default:
return TreeParserToken.Ignorable;
//throw new ServletException("Not yet implemented");
}
}