Umbraco XML Format
editAll published content in umbraco are stored in an Xml Document which has the following format: First the Node (which often is a page) is represented by a ”Node” element. This node element has a number of attributes with basic information about the structure, type, name and create/update dates. The data on the page – the generic properties defined in the document type – is then represented as “Data” elements which is children of the “Node” element. The node can also have other nodes as children, and representing the structure of the site.
Confused – don't be; lets have a look:
<node id="1037" version="1E7BF0C1-51DA-4740-BCCE-6096A8C3ECD5" parentID="-1" level="1" writerID="0" nodeType="1036" template="1035" sortOrder="0" createDate="2005-03-15T04:06:47.890" updateDate="2005-03-11T20:57:16.187" nodeName="It worked" urlName="itworked" writerName="umbraco_system" nodeTypeAlias="Textpage" path="-1,1037"> <data version="1E7BF0C1-51DA-4740-BCCE-6096A8C3ECD5" alias="bodyText"> <![CDATA[ Contratulations <img alt="crew" align="right" src="/media/426c7b76-5d12-4572-b953-a71a26bf143f-crew.jpg" width="200" height="150"/> <br/> - umbraco is installed and <A href="/itworked/bugs/bububub.aspx">working</A>! ]]> </data> <data version="1E7BF0C1-51DA-4740-BCCE-6096A8C3ECD5" alias="resume"> <![CDATA[ ]]> </data> <data version="1E7BF0C1-51DA-4740-BCCE-6096A8C3ECD5" alias="umbracoNaviHide"> 0 </data> </node>
The attributes of the node element
edit- id: The Identifier of the page (node)
- version: Identifier of the version id for the page
- parentID: Identifier of the parent node
- level: The depth of the placement of the node
- template: Identifier of the template
- sortOrder: The order of the node
- createDate: The createdate of the node
- updateDate: The date of the latest update (publishing time)
- nodeName: The title of the node
- urlName: Used by the umbraco request handler
- writerName: The name of the user who published the node
- nodeTypeAlias: The alias of the document type
- path: A comma-separated string representing all parent-nodes
The attributes of the data element
edit- version: The identifier of the version id for the page which this property belongs to
- alias: The alias of the Property Type (as defined in the document type)