Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Steve 472 posts 1216 karma points
    Apr 03, 2015 @ 21:27
    Steve
    0

    Get Page From The Database In XML

    Is there a way to get an Umbraco page in XML for use in another app?

  • Jan Skovgaard 11280 posts 23678 karma points MVP 11x admin c-trib
    Apr 03, 2015 @ 21:32
    Jan Skovgaard
    101

    Hi Steve

    You should be able to create an XML document using an alternative template where you can wrap the content that you want to expose in XML elements rather than HTML. So the short answer to this is "Yes you can" :)

    If you for instance go to the "Developer" section and choose to create a partial view macro then you can choose to base your macro on the "RSS feed" and then modify it to output the XML that you need.

    Another option might be to use WebAPI to expose your content to a Rest api? https://our.umbraco.org/documentation/Reference/WebApi/

    /Jan

  • Steve 472 posts 1216 karma points
    Apr 03, 2015 @ 21:35
    Steve
    0

    Thanks Jan! The API is what we need.

Please Sign in or register to post replies

Write your reply to:

Draft