XML Doctype

Is there anyway to parse the doctype of an xml document? I can’t even get it to trace out with the xml. In as2 I could use xml.docTypeDecl and parse that as needed, but I don’t know a way of doing it in as3.

thanks.