>> English << | По-русскиZVON > Tutorials > XInclude Tutorial
>> Example 3 << | Prev | Next | Contents

Attribute parse = xml


Description

If the parse attribute of the include element is set to 'xml', the included file (or its fragment) will be parsed (and included) as XML. This will give exactly the same result as in previous example.

Valid example

The file a.xml includes whole file b.xml.
File a.xml:
    <a> 
     <xi:include href="b.xml" parse="xml"
      xmlns:xi="http://www.w3.org/2001/XInclude"/>
    </a>
   

File b.xml:
				<b/>
			

File a.xml after processing:
    <a>
     <b/>
    </a>