Active
Project:
xpathparser
Component:
Documentation
Priority:
Normal
Category:
Support request
Assigned:
Issue tags:
Reporter:
Created:
30 Jul 2015 at 09:36 UTC
Updated:
30 Jul 2015 at 09:36 UTC
Good day.
I have such an xml file:
<categories>
<category id="1">Cat. 1</category>
<category id="2">Cat. 2</category>
</categories>
All I need is to import category as term to my vocbulary. But I can't figure out how to do such thing.
My problem is that I cant configure importer properly. Next thing doesn't work, cuz title will be empty:
context: //categories/*
id: @id
title: category
If I go another way
context: /categories
title: category
id: category/@id
I will recieve two arrays: titles, id's. No taxonomy term will be added due to data type (array). So I can't split that array to get 1 (title,id) => 1 new term.