Altova Mailing List Archives>Archive Index >microsoft.public.xml Archive Home >Recent entries [Thread Prev] >Thread Next - Re: XML Newbie Question - Converting Nested C++ Structure to XML XML Newbie Question - Converting Nested C++ Structure to XMLTo: NULL Date: 9/1/2004 8:52:00 AM I have a C++ program which saves information
as a binary file Master Record built from nested structures something like
the following.
struct CLAIMANT
{
char lastname [21];
char firstname [21];
... etc.
}
typedef struct
{
double spent;
double cost;
double yield;
char CaseName[35];
char Client[35];
char fieldx
struct CLAIMANT cl[5]; // 5 claimants
}Master_Record
I'd like to convert this binary format to XML so that I can later
feed the XML records to a historical database .
Never having built an XML file, does it support nesting like this
and if so, are there any potential problems with this approach?
With the binary approach listed above, if there is only 1 claimant, then
there is a lot of empty
space in the saved Master_Record output file.
With the XML approach, I would expect to be able to create a specifier field
so that
it would know how many claimants it has.
So I guess how XML handles nested information is unclear to me.
Thanks
Jim
| ||||||
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | Mobile | Full Site | |||
|
