Hi Group,
Can somebody tell whatz wrong with this xpath ? I am getting when I execute
this xpath..
the structure of message node is
-------
<Message Project_REL_Message_ProjectId="9002"
ContactPerson_REL_Message_createdBy_ContactPersonId="6001" MessageId="2">
<ThreadID>1</ThreadID>
<MessageType>0</MessageType>
<ReadFlag>true</ReadFlag>
<Priority>0</Priority>
<Subject>Sub : subject 2</Subject>
<Status>1</Status>
<CreateDate>2002-02-01T00:00:00.0000000+05:30</CreateDate>
<Message>msg : message 2</Message>
<DueDate>2002-06-01T00:00:00.0000000+05:30</DueDate>
<EmailReminderFlag>true</EmailReminderFlag>
<EmailReminderDate>2002-04-01T00:00:00.0000000+05:30</EmailReminderDate>
</Message>
--------
XmlNodeList nodes
xmlDataDoc.SelectNodes("//Message[@Project_REL_Message_ProjectId
//Project[ProjectName = \"Sierra\"]/@ProjectId and @MessageId
//ContactPerson_sentTo_REL[@ContactPersonId = //ContactPerson[
@PersonName_has_REL_PersonNameId = //PersonName[FirstName
\"Rohit\"]/@PersonNameId]/@ContactPersonId]/MessageId and (MessageType=0 or
MessageType=1) and Status = 1]//(ThreadID,MessageType)");
Now if at the end when I specify just one childnode like //ThreadId it
works well but what I want is few childelements and not all . I also dont
want to get all those messages tag and delete unwanted childs traversing
through that. Is union the only way like message[......]/ThreadId |
message[....]/Status ?? Is there any better way ?
Regards
Rohit Arora
Intersolutions (P) Ltd
B - 21, Sector 58,
Noida - 201301
Tel : 91-2585703/04/05 Extn: 229