Re: XML implementation in abyss.conf

 
Post new topic   Reply to topic    Aprelium Forum Index -> General Questions
View previous topic :: View next topic  
Author Message
loloyd
-


Joined: 03 Mar 2006
Posts: 435
Location: Philippines

PostPosted: Thu Aug 24, 2006 4:53 am    Post subject: Re: XML implementation in abyss.conf Reply with quote

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 View user's profile Send private message Visit poster's website
aprelium
-


Joined: 22 Mar 2002
Posts: 6800

PostPosted: Thu Aug 24, 2006 12:22 pm    Post subject: Re: XML implementation in abyss.conf Reply with quote

loloyd wrote:
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?


This is proper XML. See "Empty Tags" in http://java.sun.com/webservices/jaxp/dist/1.1/docs/tutorial/overview/1_xml.html . For a better confirmation you can check the XML standard http://www.w3.org/TR/2004/REC-xml-20040204/#sec-starttags .
_________________
Support Team
Aprelium - http://www.aprelium.com
Back to top View user's profile Send private message Send e-mail
loloyd
-


Joined: 03 Mar 2006
Posts: 435
Location: Philippines

PostPosted: Fri Aug 25, 2006 3:17 am    Post subject: Reply with quote

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 View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    Aprelium Forum Index -> General Questions All times are GMT + 1 Hour
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB phpBB Group