I'm using php with xmlreader. I'm trying to read an file with an include statement in it. It appears that xmlreader doesn't know what to do with the include and just treats it as a "normal" element. the reader looks like this at the moment.\[code\]if (!$reader->open($file)) { die("Failed to open '.xml'");}while($reader->read()) { echo $reader->nodeType . " " . $reader->name . "<br/>";}$reader->close();\[/code\]the top level XML looks like this :\[code\]<?xml version="1.0" ?><?xml-stylesheet type="text/xsl" href="http://stackoverflow.com/questions/12791354/AdvDisad.xsl"?><!DOCTYPE kaw [ <!ENTITY brvbar "|"> ]><mydata xmlns:xi="http://www.w3.org/2001/XInclude"> <xi:include href="http://stackoverflow.com/questions/12791354/adv.xml"/></mydata>\[/code\]the output is this :\[code\]7 xml-stylesheet10 kaw1 mydata14 #text1 xi:include14 #text15 mydata\[/code\]as you can see, the xi isn't interpreted as anything special. Do I need to process it myself ? if so, does the entity get passed along ? it's my reason for bothering with the include in the first place.