Web Development

General discussion


XML parsing made easy

By gouriano ·
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 conversation is currently closed to new comments.

Thread display: Collapse - | Expand +

All Comments

Related Discussions

Related Forums