WyBlog, the best thing about New Jersey since the invention of the 24 hour diner.
Chris Wysocki
Caldwell, NJ
The nine most terrifying words in the English language are "I'm from the government and I'm here to help." - Ronald Reagan
Linkiest
CH 2.0 Info Center
The Jersey Report
Labor Union Report
Memeorandum
Net Right Nation
The Patriot Post Newsletter
Pajamas Media
PJTV
Victor Davis Hanson
J! E! T! S! Jets! Jets! Jets!
OpenVMS.org Portal
AVS Forum
NJ.com Caldwell Forum
The Caldwells Patch
The Jersey Tomato Press
"This site contains copyrighted material the use of which has not always been specifically authorized by the copyright owner. It is being made available in an effort to advance the understanding of environmental, political, human rights, economic, democracy, scientific, social issues, etc. It is believed that this constitutes a 'fair use' of any such copyrighted material as provided for in section 107 of the US Copyright Law. In accordance with Title 17 U.S.C. Section 107, the material on this site is distributed without profit for research and educational purposes."
The client who wanted us to take in an XML file and use it in our application has now asked if we can format one of our outputs in XML. It sounds simple enough; I just have to take the RMS record, interpret it using the CDD record definition, and output the field values surrounded by XML tags. Which of course means formatting each field as a text string, and deciding how many decimal places they'll need, and making sure I consistently round the values.
The original file is from an old Cobol application. The records use the
REDEFINES
and OCCURS DEPENDING ON
clauses. Ugh.
I guess I'll just output all instances of redefined fields, and for the
array elements, I'll have to add a tag with the array index.
It's too bad Datatrieve doesn't know how to output XML from the Report
Writer. That would make my life a lot easier!
Posted at 14:48 by Chris Wysocki
[/vms]
Comments | Perm Link |
|
Tweet
Previous: The NY Mets drafted Tammy's nephew Brandon Kawal | Next: Flag Day |
Main |