Correctly parse reference XML with URL in an element