Home. 
.

transparent

transparent

transparent

Altova Mailing List Archives


Re: What is the best way to create C++ objects from parsed XML data?

From: "Keith M. Corbett" <kmc@-----.---.--->
To: NULL
Date: 8/8/2004 4:29:00 AM
"Jim Williams" <not.me@n...> wrote in message
news:qom0h0lfa5t064ufqnb8t206lhmmk49187@4......
> The problem I'm having is deciding how to get the data from the XML
> parser into the C++ objects.
> How is this normally done?

> Do you pass the completed/parsed XML node to the C++ object creator?

No. For one thing, I prefer to keep XML/DOM classes out of the declarations
(member and argument types) of my own C++ classes.

> Do you create the object object and set it's members with data from
> the completed/parsed XML node?

Yes that's the most common approach I've seen.

/kmc




transparent
Print
Mail
Digg
delicious
Disclaimer
.

These Archives are provided for informational purposes only and have been generated directly from the Altova mailing list archive system and are comprised of the lists set forth on www.altova.com/list/index.html. Therefore, Altova does not warrant or guarantee the accuracy, reliability, completeness, usefulness, non-infringement of intellectual property rights, or quality of any content on the Altova Mailing List Archive(s), regardless of who originates that content. You expressly understand and agree that you bear all risks associated with using or relying on that content. Altova will not be liable or responsible in any way for any content posted including, but not limited to, any errors or omissions in content, or for any losses or damage of any kind incurred as a result of the use of or reliance on any content. This disclaimer and limitation on liability is in addition to the disclaimers and limitations contained in the Website Terms of Use and elsewhere on the site.

.
.

transparent

transparent