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:
parent
bd3ded0828
commit
935355cb50
@ -2,6 +2,7 @@ package com.google.refine.importers.parsers;
|
||||
|
||||
|
||||
public enum TreeParserToken {
|
||||
Ignorable,
|
||||
StartDocument,
|
||||
EndDocument,
|
||||
StartEntity,
|
||||
|
@ -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");
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user