XML Blogroll

D

dlcacuff

What other attributes would be needed for an XML formatted blog-roll?
Can you help me add to this format / code.

<?xml version="1.0"?>
<blogRoll>
<blog>
<blogName>My Blog</blogName>
<blogDescription></blogDescription>
<htmlURI>http://www.myblog.com</htmlURI>
<xmlURI>xx.rss</xmlURI>
</blog>
</blogRoll>
 
D

dlcacuff

What other attributes would be needed for an XML formatted blog-roll?
Can you help me add to this format / code.

<?xml version="1.0"?>
<blogRoll>
<blog>
<blogName>My Blog</blogName>
<blogDescription></blogDescription>
<htmlURI>http://www.myblog.com</htmlURI>
<xmlURI>xx.rss</xmlURI>
</blog>
</blogRoll>

Possibly a tag the blog was <lastUpdated/> or <blogAdded/> ?
 
S

Simon Brooke

in message <[email protected]>,
Possibly a tag the blog was <lastUpdated/> or <blogAdded/> ?

Better an attribute, surely? Indeed, several of those things should be
attributes - blogName, htmlURI and xmlURI are definite candidates. Once
you've done that the only content of the <blog> element is the
description:

<?xml version="1.0"?>
<blogRoll>
<blog name="My Blog" htmlURI="http://www.myblog.com" xmlURI="xx.rss">
Description of my blog.
</blog>
</blogRoll>

Incidentally I think mixed case, studly caps and so on in element or
attribute names is a mistake. I know this because I've done it myself, and
it is a prime cause of bugs which are absurdly hard to spot. Stick to
either all uppers or (preferably) all lowers.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,008
Messages
2,570,268
Members
46,867
Latest member
Lonny Petersen

Latest Threads

Top