Copied to clipboard

Flag this post as spam?

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


  • elspiko 133 posts 302 karma points
    Apr 22, 2010 @ 16:13
    elspiko
    0

    v4 XML schema

    Hi all,

    Does anyone have any information/reference/links on the new 4.1 XML structure?

  • Lee Kelleher 4026 posts 15836 karma points MVP 13x admin c-trib
    Apr 22, 2010 @ 16:50
    Lee Kelleher
    0

    Hi Elspiko,

    There is nothing "official" out yet, (that I'm aware of), but I wrote a blog post about working with the new schema:

    http://blog.leekelleher.com/2010/04/02/working-with-xslt-using-new-xml-schema-in-umbraco-4-1/

    In a nutshell, the new 4.1 schema is a re-formulation of the old (legacy) one. Instead of each document being a node element, the element name is the node-type alias, same with property values; they no longer use data elements with alias attributes. Here is a quick example, comparing the old/legacy with the new:

    <node id="1066" parentID="-1" level="1" nodeName="Home" ... nodeTypeAlias="Homepage" path="-1,1066">
        <data alias="bodyText"><![CDATA[<p>Welcome to my homepage.</p>]]></data>
    </node>
    <Homepage id="1066" parentID="-1" level="1" ... nodeName="Home" path="-1,1066" isDoc="">
        <bodyText><![CDATA[<p>Welcome to my homepage.</p>]]></bodyText>
    </Homepage>

     

    I'm sure more documentation/information will be available closer to 4.1's release.

    Cheers, Lee.

Please Sign in or register to post replies

Write your reply to:

Draft