Just plain old text as it came in. I see now that is not what you were referring to. You're talking about JSON, XML, etc I now think.
There is also a print_xml function, which puts the tree into XML, but it's mostly used for debugging at this point, not export to other systems. I'm hoping that with time these kinds of features will crop up.