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 Snetselaar 151 posts 305 karma points
    Aug 06, 2009 @ 08:15
    Roel Snetselaar
    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 Snetselaar 151 posts 305 karma points
    Aug 06, 2009 @ 11:48
    Roel Snetselaar
    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 3945 posts 15163 karma points MVP 10x 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" />
  • This forum is in read-only mode while we transition to the new forum.

    You can continue this topic on the new forum by tapping the "Continue discussion" link below.

Please Sign in or register to post replies