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.
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.