Graph Parsing from XML DTD Planimetry, and Shortest Path