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:
parent
df7389876f
commit
2a9fbd7d81
@ -263,11 +263,13 @@ public class XmlImportUtilities {
|
|||||||
while (parser.hasNext()) {
|
while (parser.hasNext()) {
|
||||||
int eventType = parser.next();
|
int eventType = parser.next();
|
||||||
if (eventType == XMLStreamConstants.START_ELEMENT) {
|
if (eventType == XMLStreamConstants.START_ELEMENT) {
|
||||||
|
ImportColumnGroup thisColumnGroup = getColumnGroup(project, columnGroup, parser.getLocalName());
|
||||||
|
|
||||||
int attributeCount = parser.getAttributeCount();
|
int attributeCount = parser.getAttributeCount();
|
||||||
for (int i = 0; i < attributeCount; i++) {
|
for (int i = 0; i < attributeCount; i++) {
|
||||||
addCell(
|
addCell(
|
||||||
project,
|
project,
|
||||||
columnGroup,
|
thisColumnGroup,
|
||||||
record,
|
record,
|
||||||
parser.getAttributeLocalName(i),
|
parser.getAttributeLocalName(i),
|
||||||
parser.getAttributeValue(i),
|
parser.getAttributeValue(i),
|
||||||
@ -278,7 +280,7 @@ public class XmlImportUtilities {
|
|||||||
processSubRecord(
|
processSubRecord(
|
||||||
project,
|
project,
|
||||||
parser,
|
parser,
|
||||||
getColumnGroup(project, columnGroup, parser.getLocalName()),
|
thisColumnGroup,
|
||||||
record
|
record
|
||||||
);
|
);
|
||||||
} else if (eventType == XMLStreamConstants.CDATA ||
|
} else if (eventType == XMLStreamConstants.CDATA ||
|
||||||
|
Loading…
Reference in New Issue
Block a user