Support is online

xml attributes #8182

Open klikklik opened this topic Tuesday, 12 April 2016 · 8 replies
Author

Hi,

I have an xml file with a bit of code like this:

<attributes> <group lan="nl"> <groupname>Specificaties</groupname> <atrribute>Wielmaat:</atrribute> <text>28 inch</text> <atrribute>Framemaat:</atrribute> <text>53 cm</text> <atrribute>Frame:</atrribute> <text>Stalen frame</text> <atrribute>voordrager:</atrribute> <text>aluminium </text> </group> </attributes>

When I map the field attributes/group/text It always gives me the last node ( aluminium )

Can I also collect the other text fields?

Support

Hello,

You can collect the other fields and a good way to see how is to run the XML file through the analyzer, it will give you the fields you can use.

To get all the fields you need to add as many fields as there are text fields. So you have here 4 text nodes, so you will need 4 fields mapped to attributes/group/text. The first entry will go into the first field, the second entry into the second field etc. If you want all this data in 1 field, you will need to combine them using a combine rule.

Kind regards,

RolandD

=========================
If you use our extensions, please post a rating and a review at the Joomla! Extension Directory

Author

I will check it , thanks for the help so far.

Author

I have made 2 new templates for the test, the result is the same.

The LAST attributes/group/text is filled in the first field, the rest of the 3 fields are empty.

I have looked at the analyser and that works perfect. So the xml file is also good.

Screenshot: Under the value "WIELMAAT" there is the xml feed-> LED koplamp en LED achterlicht This is the last item under the attributes list.

  • csvipro.png
Support

Hello,

Which CSVI version are you using? How have you configured the fields?

Kind regards,

RolandD

=========================
If you use our extensions, please post a rating and a review at the Joomla! Extension Directory

Author

I use version csvi pro 6.2.0

The template is straight forward. Just add 10 fields to the same attributes/group/text
see screenshot

  • dl2.png
Support

I use version csvi pro 6.2.0

It's time for an update then. In version 6.5.0 we already improved the reading of XML files.

That may explain why it's not working for you now. Give the current version a try and let me know if that helped.

Kind regards,

RolandD

=========================
If you use our extensions, please post a rating and a review at the Joomla! Extension Directory

Author

thanks for your help

Author

Works like a charm

Log in to reply to this topic.