Trying to build an RSS Reader

  • Thread starter Thread starter Roger
  • Start date Start date
R

Roger

I'm trying to build an RSS reader in VB.net.
I have created a class for RssItems, such as the following,
PUBLIC CLASS RssItem
Public Author as String
Public PubDate as Date
Public Description as Description
Public GUID as String
Public IsPermaLink as Boolean
END CLASS

The above is purely abstract.
I need to be able to serialize the above object as follows,

<RssItem>
<Author>....</Author>
<PubDate>....</PubDate>
<Description>....</Description>
<GUID IsPermaLink="false">....</GUID>
</RssItem>

I'm able to serialize the object into an xml string similar to the above,
but without the IsPermalink as an attribute of GUID.
Basically i need to be able to configure the IsPermaLink to be an attribute
of the GUID element.
 

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

Back
Top