java.lang.Object
org.apache.sling.jcr.contentloader.internal.readers.XmlReader
All Implemented Interfaces:
ContentReader

public class XmlReader extends Object implements ContentReader
This reader reads an xml file defining the content. The xml format should have this format:
 <node>
   <name>the name of the node</name>
   <primaryNodeType>type</primaryNodeType>
   <mixinNodeTypes>
     <mixinNodeType>mixtype1</mixinNodeType>
     <mixinNodeType>mixtype2</mixinNodeType>
   </mixingNodeTypes>
   <properties>
     <property>
       <name>propName</name>
       <value>propValue</value>
           or
       <values>
         <value/> for multi value properties
       </values>
       <type>propType</type>
     </property>
     <!-- more properties -->
   </properties>
   <nodes>
     <!-- child nodes -->
     <node>
       ..
     </node>
   </nodes>
 </node>
 
If you want to include a binary file in your loaded content, you may specify it using a XmlReader.FileDescription <nt:file> element.