I think I may have replied incorrectly with my previous post. I apologize if this is going out a second time.
Canam Software’s XML Composer product is designed specifically for this purpose. It will generate all of the EAB code needed to validate, parse and create XML documents. An advantage that it has over the XMLPARSE statement is that in addition to parsing, it will also populate your Gen views with the parsed results. With XMLPARSE, you will need to develop logic to respond to the events raised by the parser (e.g. “element found”, “attribute found”, etc.) and then move the content to the appropriate Gen attribute view. This requires maintaining context within the document which increases in complexity as you deal with optional nodes and repeating structures (and nested repeating structures). In addition, if there are changes to the XML layout in the future, you will need to rework this logic.
If you would like more information about XML Composer please contact me at russell@canamsoftware.com.