Click here to Skip to main content
15,911,459 members
Home / Discussions / C#
   

C#

 
Generalunable to find database of webservice Pin
Member 447840010-Dec-07 23:53
Member 447840010-Dec-07 23:53 
GeneralRe: unable to find database of webservice Pin
pmarfleet11-Dec-07 2:31
pmarfleet11-Dec-07 2:31 
GeneralCustom Form.Region under Win 2000 Pin
Stevo Z10-Dec-07 23:51
Stevo Z10-Dec-07 23:51 
GeneralXML Reader/Writer Pin
half-life10-Dec-07 23:48
half-life10-Dec-07 23:48 
GeneralRe: XML Reader/Writer Pin
Christian Graus10-Dec-07 23:57
protectorChristian Graus10-Dec-07 23:57 
GeneralRe: XML Reader/Writer Pin
half-life11-Dec-07 0:05
half-life11-Dec-07 0:05 
GeneralRe: XML Reader/Writer Pin
andypaxo10-Dec-07 23:59
andypaxo10-Dec-07 23:59 
GeneralRe: XML Reader/Writer Pin
Stevo Z11-Dec-07 0:30
Stevo Z11-Dec-07 0:30 
Hi,

correct me if I'm wrong but I don't think that you can change anything with XML reader/writer. It is a one way mechanism of reading/writing text formated in XML style. Only way how to do that is to use a reader to read the elements and implement some logics to write same or different value depending of what you want...

Example:
// Create an instance of XmlTextReader and call Read method to read the file
using (XmlTextReader reader = new XmlTextReader("C:\\books.xml"))
{
    while (textReader.Read())
    {
       Console.WriteLine("Name[{0}] Type[{1}] = Value[{2}]", reader.Name, reader.NodeType, reader.Value);
    }
}


Easiest way and probobly the slowest (to get some hierarchy) is to use the XmlDocument class, find apropriate node and change it's value. It depends on how big you suppose the xml text will be...

zilo

GeneralRe: XML Reader/Writer Pin
half-life11-Dec-07 1:20
half-life11-Dec-07 1:20 
Generaldatagridview cell validation Pin
arkiboys10-Dec-07 23:44
arkiboys10-Dec-07 23:44 
GeneralRe: datagridview cell validation Pin
CKnig11-Dec-07 0:25
CKnig11-Dec-07 0:25 
GeneralRe: datagridview cell validation Pin
arkiboys11-Dec-07 0:32
arkiboys11-Dec-07 0:32 
Generalsize of an empty class Pin
.NET- India 10-Dec-07 23:26
.NET- India 10-Dec-07 23:26 
GeneralRe: size of an empty class Pin
CKnig10-Dec-07 23:28
CKnig10-Dec-07 23:28 
GeneralRe: size of an empty class Pin
.NET- India 10-Dec-07 23:31
.NET- India 10-Dec-07 23:31 
GeneralRe: size of an empty class Pin
CKnig10-Dec-07 23:38
CKnig10-Dec-07 23:38 
GeneralRe: size of an empty class Pin
.NET- India 10-Dec-07 23:47
.NET- India 10-Dec-07 23:47 
GeneralRe: size of an empty class Pin
CKnig10-Dec-07 23:54
CKnig10-Dec-07 23:54 
GeneralRe: size of an empty class Pin
.NET- India 11-Dec-07 0:03
.NET- India 11-Dec-07 0:03 
GeneralRe: size of an empty class Pin
pmarfleet11-Dec-07 2:36
pmarfleet11-Dec-07 2:36 
GeneralRe: size of an empty class Pin
Christian Graus10-Dec-07 23:56
protectorChristian Graus10-Dec-07 23:56 
QuestionDataTable.Select() finding data in all columns... Pin
thecodedemon10-Dec-07 22:12
thecodedemon10-Dec-07 22:12 
GeneralRe: DataTable.Select() finding data in all columns... Pin
CKnig10-Dec-07 23:18
CKnig10-Dec-07 23:18 
GeneralDropdownlist in a repeater Pin
minniemooo10-Dec-07 21:56
minniemooo10-Dec-07 21:56 
GeneralRe: Dropdownlist in a repeater Pin
Christian Graus10-Dec-07 22:20
protectorChristian Graus10-Dec-07 22:20 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.