Velocity API FeedBlock to xml
This question was posted a couple years ago: http://help.hannonhill.com/discussions/velocity-formats/8506-locator-tool-with-feed-block
I was wondering if there has been anything added to cascade that will allow me to convert the string version of the feed into xml searchable by xpath.
Thanks
Discussions are closed to public comments.
If you need help with Cascade CMS please
start a new discussion.
Keyboard shortcuts
Generic
? | Show this help |
---|---|
ESC | Blurs the current field |
Comment Form
r | Focus the comment reply box |
---|---|
^ + ↩ | Submit the comment |
You can use Command ⌘
instead of Control ^
on Mac
1 Posted by Ryan Griffith on Jan 28, 2016 @ 01:23 PM
Hi John,
Currently, we do not provide a helper method to return the feed's contents as XML to be parsed. I was able to locate the related suggestion on our Idea Exchange. I highly recommend voting this up if you would like for it to be considered for a future release.
That being said, with a little bit of Java magic, I was able to come up with a workaround and successfully convert the XML string into a Document, which can then be used to obtain the root Element and be parsed by the XPath Tool:
2 Posted by John on Jan 29, 2016 @ 03:35 PM
Wow! Thanks a lot. Does exactly what I needed.
3 Posted by Ryan Griffith on Jan 29, 2016 @ 05:15 PM
Not a problem at all, John. Definitely a little hacky, but I am glad to hear the proposed code did the trick.
I'm going to go ahead and close this discussion, please feel free to comment or reply to re-open if you have any additional questions.
Have a great day!
Ryan Griffith closed this discussion on Jan 29, 2016 @ 05:15 PM.