View previous topic :: View next topic |
Author |
Message |
loloyd -
Joined: 03 Mar 2006 Posts: 435 Location: Philippines
|
Posted: Thu Aug 24, 2006 4:53 am Post subject: Re: XML implementation in abyss.conf |
|
|
Hi Aprelium,
I would like to ask you about your XML implementation in abyss.conf. I noticed that "standalone" tags such as:
<names/>
<errormessage/>
<rules/>
<default/>
have their tag-names immediately attached with "/>". To my understanding of a proper XML implementation, shouldn't a whitespace be wedged between them? Like such:
<names />
<errormessage />
<rules />
<default />
I am asking this because I am developing an abyss.conf (or some general XML) tidying utility, with sorting algos and other hacks.
Thanks! _________________
http://home.loloyd.com/ is online if the logo graphic at left is showing. |
|
Back to top |
|
 |
aprelium -
Joined: 22 Mar 2002 Posts: 6800
|
|
Back to top |
|
 |
loloyd -
Joined: 03 Mar 2006 Posts: 435 Location: Philippines
|
Posted: Fri Aug 25, 2006 3:17 am Post subject: |
|
|
Thanks for clearing up my confusion.
I remember having read somewhere that " />" should be used to terminate empty tags in HTML. Or maybe, I just got used to seeing "<br />" in supposedly HTML-compliant web-page source codes. It appears that I'm also marrying HTML standards and XML standards too much.
Hmm... I guess my low-level parser would just have to settle with watching for "/>" to catch them empty tags.
Thanks again. _________________
http://home.loloyd.com/ is online if the logo graphic at left is showing. |
|
Back to top |
|
 |
|