Hi Elroy,
In fact I was using the DOM document. I am not sure if this is the best
way.
I have a XML file with RSS news. The function Build_RSS() must load the
XML data and display it in a ASP:Repeater in my HTML code as follows:
1. Channel/Title and Channel/Url values should be used as values in the
two ASP:Labels placed on HeaderTemplate of my ASP:Repeater. Something
like:
label_name.title = [ Channel Title from XML ]
label_name.url = [ Channel URL from XML ]
2. The items data should be used to create a dataset which is then bind
to my repeater and displayed in ItemTemplate. Something like:
If Session("Culture") = "pt-PT" Then
Dataset = [ All item values taken from [pt-PT] ] ...
Else If Session("Culture") = "en-GB" Then
Dataset = [ All item values taken from [pt-PT] ] ...
End
Then all I would need is to do the binding.
My XML file is as follows:
<?xml version="1.0"?>
<rss version="2.0">
<channel>
<title>...</title>
<url>...</url>
<item>
<pt-PT>
<title>...</title>
<description>...</description>
</pt-PT>
<en-GB>
<title>...</title>
<description>...</description>
</en-GB>
</item>
<item>
<pt-PT>
<title>...</title>
<description>...</description>
</pt-PT>
<en-GB>
<title>...</title>
<description>...</description>
</en-GB>
</item>
...
</channel>
</rss>
What do you sugest to create this?
And what are the disadvantages of using DOM?
Thank You,
Miguel