XML: Better way to accomplish this?
Marc 'BlackJack' Rintsch
bj_666 at gmx.net
Mon Jan 3 17:59:26 EST 2005
In <1104728060.417168.277780 at c13g2000cwb.googlegroups.com>, flamesrock
wrote:
> # <cities>
> # <city1>
> [...]
> # </city1>
> # <city2>
> [...]
> # </city2>
> # <city3 and so on>
> [...]
> # </city3 and so on>
> # </cities>
Don't you think it's better to use an attribute for the city nr.?
Something like ``<city nr="1">``. At least if you intent to write a DTD
or Schema this might be better.
Ciao,
Marc 'BlackJack' Rintsch
More information about the Python-list
mailing list