XML parsing made easy - TechRepublic
General discussion
January 13, 2003 at 05:27 AM
gouriano

XML parsing made easy

by gouriano . Updated 23 years, 5 months ago

Hi –
I would appreciate your opinion about the following approach to reading and writing XML data:

Let us suggest there is code generator, which, having a DTD or XSL as input, would generate a set of C++ classes to store the parsed data.
Thereare also two XML streams (input and output), which would do all the XML encoding/decoding job. So, the reading and writing is as easy as:

XMLDataObject obj;
XMLInputStream is;
is >> obj;

Such XML input stream could be associated with a text file, or HTTP address, or anything. One then could access the XML data same way as accessing the C++ class members.

What could be possible pitfalls?
Would you be interested in using (or trying) this technology yourself?

Thanks for your input.

This discussion is locked

All Comments