Drupal Questions & Answers

Ask and answer Drupal related questions! No question too simple or complex!
WilliamV's picture
Asked by on Tue 8th Feb 2011
D7 - Create a CUSTOM XML-FEED

Related Module: VIEWS_DATA_EXPORT

I need to create a custom XML-feed.
Where can i set the ‘root node’ of the XML?
Also, I’m adding fields tot this XML but these fields need to be wrapped within other elements, how can i accomplish this?
e.g.

<?xml version="1.0" encoding="UTF-8"?><xmlns="..."xmlns:xsi="..."xsi:schemaLocation="..."> THIS IS THE 'ROOT NODE' i need to add.
<node> CAN I CHANGE NODE TO ANOTHER TERM LIKE e.g. <event> ?<calendar> THESE ARE ELEMENTS TO ADD AROUND THE FIELD   <timestamps> 
<timestamp>  
<date>THIS IS THE DATE_FIELD</date> 
</timestamp>
</timestamps>
</calendar>

So to resume: i only have the field ‘date’ and everything around (calendar, timestamps, timestamp) i need to add. This needs to be done for almost all fields needed.

The meaning of this all is to export XML customised according to a custom xml-standard.

If there would be any other module supporting this (and is compatible with D7) i would be glad to hear it!

Thanks for your time.

Please advise.

Commenting on this Drupal Question is closed.