Subject: Read XML
- <dialogueHistory id="R8zYh-18">
- <MessageID>43838</MessageID>
- <senderFullName>Idrees Ahmed</senderFullName>
- <recipientID>idrees@192.168.0.98</recipientID>
- <lastMsgSenderID>atif@192.168.0.98</lastMsgSenderID>
- <displayStatus>Developer</displayStatus>
- <ProfilePicURL>../res/Chat/images/larry.png</ProfilePicURL>
- <IsDelivered>true</IsDelivered>
- <IsRead>false</IsRead>
- <ChatDialogID>515</ChatDialogID>
- <messageText>F</messageText>
- <msgDate>12/21/2016 12:02:26 PM</msgDate>
- <unReadCount>0</unReadCount>
- <creationDate>12/19/2016 10:35:17 AM</creationDate>
- <type>1</type>
- <xmppRoomJid>app@conference.chatme.im</xmppRoomJid>
- <title>Group dialog title</title>
- <participant lastMessageStatus="1" role="1" affiliation="1" date="#DeliveryDate">hafeez@192.168.0.151</participant>
- <participant lastMessageStatus="2" role="1" affiliation="2" date="#ReadDate">atif@192.168.0.151</participant>
- <participant lastMessageStatus="1" role="2" affiliation="1" date="#DeliveryDate">bilal@192.168.0.151</participant>
- </dialogueHistory>
below is my code
- agsXMPP.Xml.Dom.ElementList chatDialoguesList = iq.Query.SelectElements("dialogueHistory");
- for (int i = 0; i < chatDialoguesList.Count; i++)
- {
- agsXMPP.Xml.Dom.Element element = chatDialoguesList.Item(i);
- chatDialogue.DialogueLastMessageId = Convert.ToInt32(element.GetTag("MessageID"));
- //how can i reaad the participant outter xml get tag give me the inner xml?
- }