General discussion

Locked

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.

0 total posts (Page 1 of 1)  
| Thread display: Collapse - | Expand +

All Comments

Back to Web Development Forum
0 total posts (Page 1 of 1)  

Related Discussions

Related Forums