1 <?xml version="1.0" encoding="utf-8"?> 2 <root xmlns="foo"> 3 <a> 4 <b id="id1"> 5 <c id="id2"/> 6 </b> 7 </a> 8 9 <ref>id2</ref> 10 </root>