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

When parse=text, there will be no recursion


Description

If parse is set to "text", there is no problem with recursive inclusions.

Valid example

The file a.xml includes itself (a.xml) as a text.
File a.xml:
				<a> 
     <xi:include href="a.xml"
					parse="text"
      xmlns:xi="http://www.w3.org/2001/XInclude"/>
    </a>
			

File a.xml after processing:
    <a>
     &lt;a&gt;
      &lt;xi:include href="a.xml" parse="text"
       xmlns:xi="http://www.w3.org/2001/XInclude"/&gt;
     &lt;/a&gt;
    </a>