You could always use XML-SAX and parse the XML file into named value pairs and write to a database.

Then you can spin thru all the levels quite easily via an RPG program.

Regards,
Richard Schoen
RJS Software Systems Inc.
Where Information Meets Innovation
Document Management, Workflow, Report Delivery, Forms and Business Intelligence
Email: richard@xxxxxxxxxxxxxxx
Web Site: http://www.rjssoftware.com
Tel: (952) 736-5800
Fax: (952) 736-5801
Toll Free: (888) RJSSOFT
------------------------------

message: 4
date: Thu, 15 Sep 2011 10:35:45 -0400
from: "Mark Murphy/STAR BASE Consulting Inc."
<mmurphy@xxxxxxxxxxxxxxx>
subject: XML-INTO sample

I am working on a proof of concept for processing an unknown number of XML documents that include some header info and an unknown number of details. I have looked through Scott's article at http://systeminetwork.com/article/real-world-example-xml, and it looks like XML-INTO will fit the bill, but I have not seen a good way to handle an unknown number of detail formats. Would I do that with an array embedded within the data structure at the right depth? If that is the case, I will need to set a maximum expected number of details. How do I know if I have overflowed that array?

Mark Murphy
STAR BASE Consulting, Inc.
mmurphy@xxxxxxxxxxxxxxx



As an Amazon Associate we earn from qualifying purchases.

This thread ...


Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.