XPathNavigator

EDN Admin

Well-known member
Joined
Aug 7, 2010
Messages
12,794
Location
In the Machine
hello im new to .net and in particuler to xml <br/>
im trying to create an xml file wich holds messages for each user <br/>
<br/>
an xml file per user in a chat applicaition <br/>
<br/>
now to issue here is that i need to save messages wich come throw in one or more packets

the file sould look like this <br/>
<br/>
< xml........ >
<span style="white-space:pre <Eranotz65><br/>
<span style="white-space:pre <Messages><br/>
<span style="white-space:pre <Message><br/>
<span style="white-space:pre <Sender> eva </Sender><br/>
<span style="white-space:pre <DateTime> 10/01/2011 19:34 </DateTime><br/>
<span style="white-space:pre <Contents>
<span style="white-space:pre <Content Name="Packet1 " long string......" </Content><br/>
<span style="white-space:pre <Content Name="Packet2 " long string......" </Content>
<span style="white-space:pre <Contents>
<span style="white-space:pre <Message><br/>
<span style="white-space:pre <Message MarkArtib="last_message <span style="white-space:pre

<span style="white-space:pre <Sender> Yoko </Sender><span style="white-space:pre

<span style="white-space:pre <DateTime> 10/01/2011 20:34 </DateTime>
<span style="white-space:pre <Contents><br/>
<span style="white-space:pre <Content Name="Packet1 " "</Content><br/>
<span style="white-space:pre </Contents><br/>
<span style="white-space:pre </Message><br/>
<span style="white-space:pre </Messages>
</eranotz65>
now theres no problem just creating this as is <br/>
but i need it to be dinamic i need for the XPathNavigator <br/>
To Find "last_message" and then append another Content
and i have to each time remove the MartAtrib value (Change it to "" )<br/>
so when a completly new message arrives<br/>
<br/>
i would appricite any help <br/>
i will post code later becuase i need to change some stuff there .<br/>
<br/>
10X.

View the full article
 
Back
Top