Successfully parsed an XBRL document!

Still need to properly handle xsd:any types during backtrack.
This code successfully parsed all 29,265 lines of
http://www.sec.gov/Archives/edgar/data/1013237/000143774913004187/fds-20130228.xml
and found a path through 14 XML schemas which describe the document.
The path itself has 258,724 nodes.