Click here to Skip to main content
15,890,947 members
Home / Discussions / XML / XSL
   

XML / XSL

 
GeneralXML in IFRAME Pin
abc8765-Dec-04 20:09
abc8765-Dec-04 20:09 
GeneralSorting parent child releationships Pin
Member 11446175-Dec-04 5:34
Member 11446175-Dec-04 5:34 
GeneralRe: Sorting parent child releationships Pin
DavidNohejl5-Dec-04 5:56
DavidNohejl5-Dec-04 5:56 
GeneralRe: Sorting parent child releationships Pin
Member 11446175-Dec-04 6:05
Member 11446175-Dec-04 6:05 
GeneralRe: Sorting parent child releationships Pin
DavidNohejl5-Dec-04 6:31
DavidNohejl5-Dec-04 6:31 
GeneralXML to Ecxel Pin
Marwa Bahaa5-Dec-04 4:13
Marwa Bahaa5-Dec-04 4:13 
Generaluse HTML tags in XML Pin
visitsaadi3-Dec-04 22:54
visitsaadi3-Dec-04 22:54 
GeneralXML structure - help Pin
john john mackey3-Dec-04 10:37
john john mackey3-Dec-04 10:37 
I'm trying to transform a C++ data structure into XML format.

Here is my example. I have 2 cars
Red Ford Mustang, black leather interior  and  Blue VW Bug, white leather interior.

Using the following data structure(s)
struct RGBcolor
{
	int	R;
	int	G;
	int	B;
};

enum Material
{
	leather=0,
	fabric,
	metal
};

struct Interior
{
	Material	seats;
	RGBcolor	seatcolor;
};

enum Make
{
	Chevy=0,
	Ford,
	Oldsmobile,
	VW
};

enum Style
{
	sedan=0,
	sport,
	suv,
	other
};

struct CAR
{
	Make	carmake;
	Style	carstyle;
	RGBcolor	carcolor;
	Interior	carinterior;
};


How do I turn struct CAR into XML format? What do my tags look like ESPECIALLY the tag for the "car interior?"

What puzzels me is if I can reuse the tag for RGBcolor in both a parent and child node.

Thank you,
Johnny
GeneralRe: XML structure - help Pin
Stuart Dootson3-Dec-04 22:35
professionalStuart Dootson3-Dec-04 22:35 
GeneralRe: XML structure - help Pin
john john mackey4-Dec-04 3:52
john john mackey4-Dec-04 3:52 
GeneralUnwanted junk... Pin
CherezZaboro3-Dec-04 8:45
CherezZaboro3-Dec-04 8:45 
GeneralRe: Unwanted junk... Pin
Stuart Dootson3-Dec-04 22:13
professionalStuart Dootson3-Dec-04 22:13 
GeneralUnwanted junk... Pin
CherezZaboro3-Dec-04 8:40
CherezZaboro3-Dec-04 8:40 
GeneralBuilding a 'skeletal' DOM based upon a schema Pin
Jnewg52-Dec-04 10:09
Jnewg52-Dec-04 10:09 
GeneralRe: Building a 'skeletal' DOM based upon a schema Pin
Stuart Dootson2-Dec-04 11:12
professionalStuart Dootson2-Dec-04 11:12 
Generalxml & xsd question Pin
Shahin772-Dec-04 4:52
Shahin772-Dec-04 4:52 
Questionhow to get it? xml & xsd Pin
Shahin772-Dec-04 4:49
Shahin772-Dec-04 4:49 
GeneralStreaming namespace replacing Pin
Member 15128341-Dec-04 23:41
Member 15128341-Dec-04 23:41 
GeneralXML template from xsd document Pin
Anonymous1-Dec-04 21:50
Anonymous1-Dec-04 21:50 
GeneralRe: XML template from xsd document Pin
Stuart Dootson2-Dec-04 1:07
professionalStuart Dootson2-Dec-04 1:07 
QuestionIs this legal, barely? Pin
john john mackey30-Nov-04 14:07
john john mackey30-Nov-04 14:07 
AnswerRe: Is this legal, barely? Pin
Christian Graus30-Nov-04 14:39
protectorChristian Graus30-Nov-04 14:39 
AnswerRe: Is this legal, barely? Pin
Michael A. Barnhart7-Dec-04 11:46
Michael A. Barnhart7-Dec-04 11:46 
AnswerRe: retrive the XML Data? Pin
DavidNohejl30-Nov-04 2:03
DavidNohejl30-Nov-04 2:03 
Questionretrive the XML Data? Pin
sudheerreddy30-Nov-04 1:51
sudheerreddy30-Nov-04 1:51 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.