PDA

View Full Version : Problems -> How to update data in XML file using VB.NET?


nanana_81
12-09-2005, 07:55 AM
Hi guys ..

I'm just the beginner, now i've got some problem in my task. I'm also using the newscroller Javascript as same as the above

I want to update my XML file (News.xml) using VB.NET code behind. I have managed to create XML like this :-



<NewDataSet>
<Item>
<Text> testing one </Text>
</Item>
</NewDataSet>


.. and from this XML file, I want to load it into the newscroller Javascript.
The problem is, the Javascript code just can load XML data field like below only --->



<xml id="xmlNews">
<Items>
<Item>
<Text> testing two </Text>
</Item>
<Items>
</xml>



and if i update the XML file, it will store 'outside' of the <xml id="xmlNews'>.



<NewDataSet>

<xml id="xmlNews">
<Items>
<Item>
<Text> testing two </Text>
</Item>
<Items>
</xml>

<Item>
<Text> testing one </Text>
</Item>
</NewDataSet>


..as the result, the newscroller Javascript will not load the updated values (testing one) above.

can somebody help me please ..?
if you guys do not follow the problems, later i will post the VB.Net Code to create the dataset of the XML..

thank you

Alex Vincent
12-09-2005, 06:25 PM
Cross-posted and CLOSED:
http://www.codingforums.com/showthread.php?t=74420

Please do not post the same question twice. It confuses people trying to help you and annoys moderators (like me). :)