EDN Admin
Well-known member
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-spacere <Eranotz65><br/>
<span style="white-spacere <Messages><br/>
<span style="white-spacere <Message><br/>
<span style="white-spacere <Sender> eva </Sender><br/>
<span style="white-spacere <DateTime> 10/01/2011 19:34 </DateTime><br/>
<span style="white-spacere <Contents>
<span style="white-spacere <Content Name="Packet1 " long string......" </Content><br/>
<span style="white-spacere <Content Name="Packet2 " long string......" </Content>
<span style="white-spacere <Contents>
<span style="white-spacere <Message><br/>
<span style="white-spacere <Message MarkArtib="last_message <span style="white-spacere
<span style="white-spacere <Sender> Yoko </Sender><span style="white-spacere
<span style="white-spacere <DateTime> 10/01/2011 20:34 </DateTime>
<span style="white-spacere <Contents><br/>
<span style="white-spacere <Content Name="Packet1 " "</Content><br/>
<span style="white-spacere </Contents><br/>
<span style="white-spacere </Message><br/>
<span style="white-spacere </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
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-spacere <Eranotz65><br/>
<span style="white-spacere <Messages><br/>
<span style="white-spacere <Message><br/>
<span style="white-spacere <Sender> eva </Sender><br/>
<span style="white-spacere <DateTime> 10/01/2011 19:34 </DateTime><br/>
<span style="white-spacere <Contents>
<span style="white-spacere <Content Name="Packet1 " long string......" </Content><br/>
<span style="white-spacere <Content Name="Packet2 " long string......" </Content>
<span style="white-spacere <Contents>
<span style="white-spacere <Message><br/>
<span style="white-spacere <Message MarkArtib="last_message <span style="white-spacere
<span style="white-spacere <Sender> Yoko </Sender><span style="white-spacere
<span style="white-spacere <DateTime> 10/01/2011 20:34 </DateTime>
<span style="white-spacere <Contents><br/>
<span style="white-spacere <Content Name="Packet1 " "</Content><br/>
<span style="white-spacere </Contents><br/>
<span style="white-spacere </Message><br/>
<span style="white-spacere </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