Re: XML in core
David Calinski <[email protected]> Fri, 7 Nov 2003 15:46:59 +0100
| Newsgroups | gmane.comp.tools.memaid.devel |
|---|---|
| Message-ID | <[email protected]> |
On Friday 07 of November 2003 15:18, Peter Bienstman wrote: > > I made it that way that at the begin of elements.xml there is added > > comment with some basic instruction and legend about variables. > > Is the comment enclosed in xml tags? I'm no expert, but you have to make > sure that those comments don't interfere with the parsing. I put comments in <!-- *here* --> so AFAIK it's pretty valid in XML itself; "XML parser wannabe" in the core properly ignores them. > > 3. <id> versus <cat> field - both fields are using the same internal > > variable AFAIK, but aplication can be different (e.g. AFAIK Richard is > > using <id> field to have an "identification" - a string to identify > > element). Hmm, I can make core can use <cat> instead of <id>, anyways. > > Is this a good idea..? > > Probably not a good idea to mix them, as my use of the id field is just a > hack. Also the ID tag and the CAT tag are conceptually different beasts. > I suggest that you use the ID tag in the core. When (in the far future) I > switch to full Python datastructures for the elements, I'll make sure that > my client can also parse the ID tag. OK! Dave ------------------------------------------------------- This SF.net email is sponsored by: SF.net Giveback Program. Does SourceForge.net help you be more productive? Does it help you create better code? SHARE THE LOVE, and help us help YOU! Click Here: http://sourceforge.net/donate/