void () { myFixture.configureByText("a.xml", """ <root xmlns:xi="http://www.w3.org/2001/XInclude"> <before/> <xi:include href="include1.xml" xpointer="xpointer(/include1/*)"/> <after/> </root> """); myFixture.addFileToProject("include1.xml", """ <include1 xmlns:xi="http://www.w3.org/2001/XInclude"> <foo attr1="val1"> <fooChild/> </foo> <bar/> <xi:include href="include2.xml"/> </include1> """); PsiFile inc2 = myFixture.addFileToProject("include2.xml", "<a/>"); assertSubtagNames("before", "foo", "bar", "a", "after"); changeText(inc2.getVirtualFile(), "<b/>"); assertSubtagNames("before", "foo", "bar", "b", "after"); }