title: Can I get an XML AST of C/C++/Java code without compiling it?
body: <p>I want to create an XML file with AST representation of source code, but <strong>without compiling it</strong>. I didn't find any sufficient solution so far. Here is what I tried:</p>
  
  <ul>
  <li>Using XML printer in clang - <code>clang -cc1 -ast-print-xml</code> - it would be nice, but it was <a href="http://llvm.org/viewvc/llvm-project?view=revision&amp;revision=127141" rel="noreferrer">removed from clang</a></li>
  <li><a href="http://www.sdml.info/projects/srcml/" rel="noreferrer">srcML</a> toolkit, which in theory works well, but has poor parser (for Java it's not even fully 1.5-compatible)</li>
  </ul>
  
  <p>Are there any other alternatives?</p>