create an XML file with wxXmlDocument
Éric Laly
elaly at free.fr
Tue Oct 30 06:20:24 PDT 2007
Biozic a écrit :
>
> The XML you get is perfectly valid, isn't it? Nothing's wrong for me.
Yes I guess it is "valid" because I can read it with my program.
But I've ask because I thought that an XML file is "perfectly" valid
only if there is <NODE> </NODE>.
> I guess you will get something looking like
> <CADRE taille="1,0"> child node </CADRE>
> only when you put at least a child node in CADRE.
Ah, OK.
So, if I've understood, we write <NODE /> if there is no child
and if there is a child we write <NODE> </NODE>
A last question: is it "wrong" to write <NODE> </NODE> if there is no
child like I wrote
<CADRE taille="1,0" ></CADRE> (only one attribute) ?
Thank you.
Éric.
More information about the wx-users
mailing list