Copied to clipboard

Flag this post as spam?

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


  • jay c 1 post 21 karma points
    Aug 06, 2009 @ 02:33
    jay c
    0

    copy full xml to output as string

    I need to copy the input XML file and place in output as a string.

    I need to build a new output XML file.One of the new nodes will be a string and it needs to contain the complete input XML file.

    Do not know how to do that

     

     

  • Roel 151 posts 305 karma points
    Aug 06, 2009 @ 08:15
    Roel
    0

    You might be looking for this:

    <xsl:copy-of select="$currentPage" />
  • dandrayne 1138 posts 2262 karma points
    Aug 06, 2009 @ 10:41
    dandrayne
    0

    or for everything perhaps this

    <xsl:copy-of select="umbraco.library:GetXmlAll()" />
  • Roel 151 posts 305 karma points
    Aug 06, 2009 @ 11:48
    Roel
    0

    For more information in general about the XML format used within Umbraco you could check this link: http://our.umbraco.org/wiki/reference/files-and-folders/umbraco-xml-format

  • Lee Kelleher 4026 posts 15836 karma points MVP 13x admin c-trib
    Aug 06, 2009 @ 12:25
    Lee Kelleher
    0

    Roel and Dan are on the right track, but rather than pull in a new instance of XML (via the GetXmlAll method), you can reuse the $currentPage param.

    <xsl:copy-of select="$currentPage/ancestor::root" />
Please Sign in or register to post replies

Write your reply to:

Draft