If it isn't one thing it's another. It seems after each problem I solve, another one pops up! If you value your sanity, don't convert extremely complicated and large documents to XML using a custom application! LOL Anyway....
I think this is a lot to hope for but I was asked if I could make FrameMaker export a paragraph's numbering as an attribute value.
For example, if we have a Section called, "1.2.3 Purpose", then Purpose is the text and 1.2.3 is an autonumber. Can I save the document to XML and store that number (1.2.3) as an attribute?