Made sure columns are named hierarchically in XML importer.

git-svn-id: http://google-refine.googlecode.com/svn/trunk@355 7d457c2a-affb-35e4-300a-418c747d4874
This commit is contained in:
David Huynh 2010-03-24 23:15:10 +00:00
parent df7389876f
commit 2a9fbd7d81

View File

@ -263,11 +263,13 @@ public class XmlImportUtilities {
while (parser.hasNext()) {
int eventType = parser.next();
if (eventType == XMLStreamConstants.START_ELEMENT) {
ImportColumnGroup thisColumnGroup = getColumnGroup(project, columnGroup, parser.getLocalName());
int attributeCount = parser.getAttributeCount();
for (int i = 0; i < attributeCount; i++) {
addCell(
project,
columnGroup,
thisColumnGroup,
record,
parser.getAttributeLocalName(i),
parser.getAttributeValue(i),
@ -278,7 +280,7 @@ public class XmlImportUtilities {
processSubRecord(
project,
parser,
getColumnGroup(project, columnGroup, parser.getLocalName()),
thisColumnGroup,
record
);
} else if (eventType == XMLStreamConstants.CDATA ||