TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
Chandra Sekhar
NA
41
3.5k
How can i convert this code to LINQ
Oct 29 2019 10:37 PM
private
XmlDocument FilterRecords(XmlDocument responseXml,
int
noOfRecords) {
XElement envelope = XElement.Parse(responseXml.OuterXml);
XElement envelopeAdd =
new
XElement(
"searchResultsList"
);
foreach
(XElement xe
in
envelope.Elements().Elements()) {
if
(xe.Name.LocalName ==
"searchResultsList"
) {
int
count = 0;
foreach
(XElement childXe
in
xe.Elements()) {
if
(count < noOfRecords) {
if
(childXe.Name.LocalName ==
"searchResultsRecord"
) {
envelopeAdd.Add(childXe);
count++;
}
}
}
}
}
}
Reply
Answers (
1
)
how to get more than 100 records from JSON using Jquery
The Document not loading into wordprocessing