If I am understanding correctly you just need to tag the elements appropriately. To use a simple example, if I have a single frame of text that has a heading and body text, I would create two tags, one for the heading and one for the body. Then I would select the heading and apply the heading tag and do the same for the body. When exported to xml you will have two elements one with the heading tag and one with the body tag.
I am ignorant as to the NITF requirements and so you may need anew XSLT to run on the exported XML that would make it conform to the standard. I dunno as I am unaware of it. This part, if needed I would do in an xml editor or a good text editor that is capable of what needs done.
Your suggestion seem to work for me. I created two tags (head and body) that I applied just to other groups of tagged text. It gave me this structure, that might just be what my doctor ordered. Now I am ready to move on to next question: How to get 3 text frames squeezed into this same structure... Thank you so much, Mike!
If they are not threaded frames, they will be technically divided into separate second-level (or whatever) main elements. Like the Article elements shown for the two frames I have here:
If you want them to all be under, in my example Article1, then either the frames need threaded or there needs to be post export editing. So if I look at the XML in a text editor, I can easily see structure. In the screen shot below, I could remove the two highlighted element names in the middle of the screen shot and change the small red rectangle number to a 1, which would make the entire structure into a single "Article" instead of two.
I don't know the end-point--the where and what this XML out is going into--but I would not think this would be important. But...like I wrote before, this is outside of my normal work-flow (the XML out).
Thanks again for demonstrating the flexibility of Indesigns xml features. It is all very useful information. The new end-point is an e-newspaper for pads, phones and computers (bundled somehow with the print-purposed PDFs) distributed by a commercial agent. The starting point is the traditional work flow: word (windows) text processing, tagged to styles for Indesign (mac) lay out. We are a small organization (weekly newspaper), and my new task is to provide xml of the whole 40-48 pages Indesign layout – with no or minimal extra ressources. I must choose weather we go for xml first or xml last. The latter seems better, as it involves only one person, namely me. The (outlandish for a norwegian) NITF standard is, it seems now, not essencial after all, as the distributor easily can script convert my files. They actually accepted my Indesign style names as xml-tags, and that makes the whole process easier to automate for me.
Johan, I think that's good news!
Post-processing, especially if they can do so with the ID output to what they want, sounds like the best process.