From 2a9fbd7d8194d04f869ab189d35da313a7c624a3 Mon Sep 17 00:00:00 2001 From: David Huynh Date: Wed, 24 Mar 2010 23:15:10 +0000 Subject: [PATCH] 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 --- .../com/metaweb/gridworks/importers/XmlImportUtilities.java | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/main/java/com/metaweb/gridworks/importers/XmlImportUtilities.java b/src/main/java/com/metaweb/gridworks/importers/XmlImportUtilities.java index 3bc6b190a..41dcb5419 100644 --- a/src/main/java/com/metaweb/gridworks/importers/XmlImportUtilities.java +++ b/src/main/java/com/metaweb/gridworks/importers/XmlImportUtilities.java @@ -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 ||