Skip to Content
Using XML with Legacy Business Applications
book

Using XML with Legacy Business Applications

by Michael C. Rawlins
August 2003
Intermediate to advanced content levelIntermediate to advanced
624 pages
15h 3m
English
Addison-Wesley Professional
Content preview from Using XML with Legacy Business Applications

CSVRowReader Class

The CSVRowReader parse and write methods do most of the work in this utility. In creating the CSVRowReader class, I use the following class attributes in addition to the parse and write methods:

  • Output Document

  • Root Element

  • ColumnArray

The Output Document and root Element are initialized in the class constructor, where the Column Array is also set up.

In both of our implementations the parse method deals strictly with standard Java or C++ things and has nothing to do with XML per se. However, the logic of the parse method is of interest since getting the parsing algorithm correct is very important when dealing with CSV files (as well as when dealing with EDI in Chapter 9). Let's look at the pseudocode for the parse routine, then ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Beginning XML with C# 7: XML Processing and Data Access for C# Developers

Beginning XML with C# 7: XML Processing and Data Access for C# Developers

Bipin Joshi
XML Hacks

XML Hacks

Michael Fitzgerald
XML Unleashed

XML Unleashed

Michael Morrison
XML in a Nutshell, 3rd Edition

XML in a Nutshell, 3rd Edition

Elliotte Rusty Harold, W. Scott Means

Publisher Resources

ISBN: 0321154940Purchase book