I am really confused by this and I was wondering if you could help.
I have a custom component. In each item there is a subform for "Property Features" which contains 10 text inputs for 10 property features. Upon save these are combined into 1 database cell in the following format:
{"com_propertyfeature1":"Feature 1","com_propertyfeature2":"Feature 2","com_propertyfeature3":"Feature 3","com_propertyfeature4":"Feature 4","com_propertyfeature5":"Feature 5","com_propertyfeature6":"Feature 6","com_propertyfeature7":"Feature 7","com_propertyfeature8":"Feature 8","com_propertyfeature9":"Feature 9","com_propertyfeature10":"Feature 10"}
My xml import file looks like this:
<property>
...
<propertyFeature1>Feature 1</propertyFeature1>
<propertyFeature2>Feature 2</propertyFeature2>
<propertyFeature3>Feature 3</propertyFeature3>
...
...</property>
My question is; how can I take the xml node elements and combine them into one database cell in the same format as the above?