sorry I tried this as well however again getting the same error...element type root is not declared.
you can also check the same in following tool for xml validation
http://pscode.org/xml/xmltools.html
more over I tried the same with xinclude as well
<?xml version="1.0"?>
<root>
<xi:include href="foo.xml" xmlns:xi="http://www.w3.org/2003/XInclude"/>
</root>
but this is not including the foo.xml during parsing. All the following attributes are already set. How the same can be done with xinclude?