2

I have a XML file as below

<rss>
  <channel>
    <title>Channel Title</title>
    <description>Channel Description</description>
    <owner>
      <owner:name>Owner Name</owner:name>
      <owner:email>Owner Name</owner:email>
    </owner>
    <item>
      <title>Item 1 title</title>
      <author>Item 1 author</author>
    </item>
    <item>
      <title>Item 2 title</title>
      <author>Item 2 author</author>
    </item>
  </channel>
</rss>

In my Xpath parser settings, I gave /rss/channel/item as context and I am getting only the item title and item author into my node. How it is possible to add title,description and owner details into my node?. And I also want the same structured XML output using Views data export.

0

You need to move your context 1 level back.

context: /rss/channel

title: title

description: description

owner name: owner/owner:name

owner email: owner/owner:email

item title: item/title

item author: item/author

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.