Copied to clipboard

Flag this post as spam?

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


  • Jonny Irwin 91 posts 153 karma points
    Dec 03, 2010 @ 14:10
    Jonny Irwin
    0

    Convert XML to HTML before importing

    I have to say that this is an excellent package.  I am currently looking into 2 different scenarios where we would use it.  For one of these scenarios it works perfectly - pulling in HTML from a SQL Server database (for migrating a number of sites from Graffiti CMS).

    The other scenario involves pulling in content from a custom built CMS.  The data is stored in XML.  I really need to pull this data into Umbraco and put it in a richtext editor, but before I can do this it needs to be transformed into HTML.

    It would be useful to have the option of specifying an XSL file that the XML is transformed by, before saving into umbraco.

  • Richard Soeteman 4049 posts 12922 karma points MVP 2x
    Dec 03, 2010 @ 16:10
    Richard Soeteman
    0

    Hi Jonny,

    If you take a look at Chapter 8 of the CMSImport manual you see that you can create a simple class by using a FieldAdapter. If you create such a class and use the DataType ID "83722133-F80C-4273-BDB6-1BEFAA04A612"( Rich Text Editor) Then you can transfer the value in the Parse Object. So you can assign your xslt and return the trasnformed html which will then be stored in your Umbraco Environment.

    Will even work in the free version so you can try ii yourself.

    Cheers,

    Richard

     

  • Jonny Irwin 91 posts 153 karma points
    Dec 03, 2010 @ 16:12
    Jonny Irwin
    0

    Excellent!  Thanks very much Richard!

Please Sign in or register to post replies

Write your reply to:

Draft