No announcements
Found 2074376 threads
-
0 Votes
Please help: dynamically adding elements into XElement??
In regards to the current code for my first issue, see below for the code that contains "phone" elements: xml = new ...Answered | 4 Replies | 4914 Views | Created by Goalie35 - Monday, November 15, 2010 9:36 PM | Last reply by Allen Zhang - Thursday, December 9, 2010 8:32 AM -
3 Votes
How to add an XElement to Xdocument conditionally?
You can use the ternary operator and just pass null if the condition is not satisfied.Answered | 6 Replies | 5990 Views | Created by mandal smith - Wednesday, February 23, 2011 6:59 PM | Last reply by mandal smith - Thursday, February 24, 2011 3:04 PM -
0 Votes
IEnumerable<XElement>
Hi, I am calling a method to read the configuration file and the method returns IEnumerable<XElement>, and i have set a breakpoint in the method.Answered | 4 Replies | 5857 Views | Created by litusahoo - Wednesday, August 24, 2011 11:42 AM | Last reply by Gavin Ying - MSFT - Wednesday, September 14, 2011 2:26 AM -
0 Votes
Data Table Distinct XElement
If you wanted to use distinct you could try var xEle = new XElement("Receiptsui", (from row ...Answered | 4 Replies | 2718 Views | Created by Sushil Agarwal - Saturday, September 8, 2012 11:28 AM | Last reply by Sushil Agarwal - Sunday, September 9, 2012 11:36 AM -
4 Votes
IEnumerable<XElement>
You should be able to assign it to a variable of type IEnumerable<T> (in this case T: XElement).Answered | 12 Replies | 4835 Views | Created by litusahoo - Wednesday, August 24, 2011 11:43 AM | Last reply by Muthukrishnan Ramasamy - Thursday, August 25, 2011 2:25 AM -
0 Votes
Extending XElement
The xElement is just a container for the node which it contains.Answered | 2 Replies | 4051 Views | Created by Clarity Software - Friday, November 25, 2011 2:26 PM | Last reply by Min Zhu - Thursday, December 1, 2011 3:51 AM -
1 Votes
Dynamic conditions in WHERE query
And what I expect is the query like this "select XXX from Customer where EMailAddress=txtStr.Text "Answered | 7 Replies | 7355 Views | Created by FishingEveryDay - Thursday, March 18, 2010 2:48 PM | Last reply by Wilbur Littleton - Friday, July 23, 2010 4:28 AM -
0 Votes
How to get SyndicationItem.Content as XElement
Now from this property I want to extract the Content as an XElement.Answered | 3 Replies | 2098 Views | Created by azizulhakim - Sunday, October 7, 2012 1:09 PM | Last reply by Mitja Bonca - Sunday, October 7, 2012 5:46 PM -
5 Votes
help with XElements and XAttributes
new XElement(XName.Get("Type", defaultNS), ...Answered | 7 Replies | 1501 Views | Created by Thomo03 - Tuesday, January 8, 2013 8:46 PM | Last reply by Thomo03 - Friday, January 11, 2013 10:18 PM -
3 Votes
XNode and XElement
Hi, I think the relationship between them is same as XmlNode and XElement .Answered | 4 Replies | 33207 Views | Created by TheLearner - Thursday, July 16, 2009 9:01 AM | Last reply by Harry Zhu - Friday, July 17, 2009 8:19 AM -
0 Votes
XElement Custom comparer for Except
Please try the following code: public int GetHashCode(XElement obj) { return ...Answered | 2 Replies | 3939 Views | Created by Reggie Chen - Wednesday, August 12, 2009 12:00 AM | Last reply by Reggie Chen - Wednesday, August 12, 2009 4:08 PM -
0 Votes
Dynamically Select Table in SQL Query ?
Declare @qry nvarchar(2000) set @qry='Select * from ' set @qry=@qry+' '+ (select top 1 name from ...Answered | 6 Replies | 645 Views | Created by Sign of Shine - Monday, May 18, 2015 7:04 AM | Last reply by Sign of Shine - Monday, May 18, 2015 8:21 AM -
0 Votes
Add XElement to XDocument
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Xml.Linq; namespace ...Answered | 1 Replies | 18327 Views | Created by markgoldin - Tuesday, April 26, 2011 4:56 PM | Last reply by JohnGrove - Tuesday, April 26, 2011 5:07 PM -
2 Votes
Having trouble retriving XElement value
string[] source2 = ...Answered | 5 Replies | 2949 Views | Created by angus454 - Friday, April 22, 2011 4:16 PM | Last reply by Louis.fr - Tuesday, April 26, 2011 1:16 PM -
0 Votes
Linq XElement and formatting elements ('<', '>', '/' )
XElement xElement = new XElement("myTable", XElement.Parse("<table><tr><td>Hello, this is a table ...Answered | 4 Replies | 3569 Views | Created by Sergiu Dudnic - Monday, June 22, 2009 5:42 PM | Last reply by Martin Honnen - Tuesday, June 23, 2009 11:02 AM -
1 Votes
Overriding a .NET Class: XElement
Can you not modify XElement to have a parameterless constructor?Answered | 3 Replies | 1251 Views | Created by Randy42Developer42 - Thursday, February 20, 2014 7:07 PM | Last reply by Eric Fleck - Friday, February 21, 2014 10:17 PM -
0 Votes
Namespace breaks ability to search on XElement
If I search an XElement that does not have a namespace then this code works: Dim address As IEnumerable(Of XElement) = _ From el In root.Answered | 1 Replies | 805 Views | Created by John Bailo - Friday, March 28, 2014 9:18 PM | Last reply by sqlguy - Saturday, March 29, 2014 2:37 PM -
0 Votes
Dynamic select in stored procedure
try CREATE PROCEDURE usp_yourprco ( col2select varchar(10) ) AS BEGIn DECLARE @strquery as ...Answered | 3 Replies | 2430 Views | Created by Doraemon_3 - Thursday, February 2, 2012 7:15 AM | Last reply by Erland Sommarskog - Thursday, February 2, 2012 9:30 AM -
0 Votes
Dynamically set XElement Select Conditions
You can use Contains method to check if the name exists in the conditions array.Answered | 1 Replies | 38 Views | Created by Anonymous - Monday, April 7, 2014 11:41 AM | Last reply by Anonymous - Monday, April 7, 2014 11:49 AM -
0 Votes
filtering a List<XElement> on an attribute value
(string)t.Attribute("tokeep) == "*") should do or with the query syntax from t in trial where ...Answered | 1 Replies | 3283 Views | Created by Newmanb1 - Wednesday, May 9, 2012 8:10 PM | Last reply by Martin Honnen - Thursday, May 10, 2012 8:51 AM - Items 1 to 20 of 2074376 Next ›
No announcements