Xml as a graph