Tag: c

66 votes
5 answers
2.6K views
What does "xmlns" in XML mean?

I saw the following line in an XML file: xmlns:android="http://schemas.android.com/apk/res/android" I have

avatar
Scot
0 1 0 9
asked 07 September, 2021
49 votes
9 answers
2.9K views
How can I build XML in C#?

How can I generate valid XML in C#?

avatar
Sachiko
0 1 0 9
asked 07 September, 2021
62 votes
6 answers
657 views
Declaring a custom android UI element using XML

How do I declare an Android UI element using XML?

avatar
Trudy
0 1 0 9
asked 07 September, 2021
56 votes
17 answers
610 views
How to Deserialize XML document

How do I Deserialize this XML document: <?xml version="1.0" encoding="utf-8"?> <Cars> <Car&g

avatar
Frederick
0 1 0 9
asked 07 September, 2021
55 votes
7 answers
1.1K views
XDocument or XmlDocument

I am now learning XmlDocument but I've just ran into XDocument and when I try to search the difference or

avatar
Hildegard
0 1 0 9
asked 07 September, 2021
58 votes
11 answers
2.9K views
How do I escape ampersands in XML so they are rendered as entities in HTML?

I have some XML text that I wish to render in an HTML page. This text contains an ampersand, which I want to r

avatar
Renaldo
0 1 0 9
asked 07 September, 2021
67 votes
11 answers
2.1K views
How to pretty print XML from the command line?

Related: How can I pretty-print JSON in (unix) shell script? Is there a (unix) shell script to format XML in

avatar
Emilia
0 1 0 9
asked 07 September, 2021
49 votes
14 answers
3K views
How can I save application settings in a Windows Forms application?

What I want to achieve is very simple: I have a Windows Forms (.NET 3.5) application that uses a path for read

avatar
Karolyn
0 1 0 9
asked 07 September, 2021
61 votes
9 answers
2.5K views
java.util.Date to XMLGregorianCalendar

Isn't there a convenient way of getting from a java.util.Date to a XMLGregorianCalendar?

avatar
Royal
0 1 0 9
asked 07 September, 2021
48 votes
18 answers
1.3K views
How do I align views at the bottom of the screen?

Here's my layout code; <?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="http

avatar
Rudolf
0 1 0 9
asked 07 September, 2021
53 votes
8 answers
2.8K views
How do I comment out a block of tags in XML?

How do I comment out a block of tags in XML? I.e. How can I comment out <staticText> and everything ins

avatar
Winford
0 1 0 9
asked 07 September, 2021
58 votes
9 answers
1.8K views
What&apos;s "tools:context" in Android layout files?

Starting with a recent new version of ADT, I've noticed this new attribute on the layout XML files, for e

avatar
Chaya
0 1 0 9
asked 07 September, 2021
62 votes
10 answers
2.1K views
What characters do I need to escape in XML documents?

What characters must be escaped in XML documents, or where could I find such a list?

avatar
Corrin
0 1 0 9
asked 07 September, 2021
55 votes
13 answers
512 views
What does <![CDATA[]]> in XML mean?

I often find this strange CDATA tag in XML files: <![CDATA[some stuff]]> I have observed that this CD

avatar
Emilia
0 1 0 9
asked 07 September, 2021
58 votes
8 answers
2.1K views
Combining two expressions (Expression<Func<T, bool>>)

I have two expressions of type Expression<Func<T, bool>> and I want to take to OR, AND or NOT of t

avatar
Kisha
0 1 0 9
asked 07 September, 2021
60 votes
8 answers
655 views
LINQ: Not Any vs All Don&apos;t

Often I want to check if a provided value matches one in a list (e.g. when validating): if (!acceptedValues.A

avatar
Don
0 1 0 9
asked 07 September, 2021
60 votes
5 answers
1.6K views
Why does ReSharper tell me "implicitly captured closure"?

I have the following code: public double CalculateDailyProjectPullForceMax(DateTime date, string start = null

avatar
Tana
0 1 0 9
asked 07 September, 2021
56 votes
6 answers
2.1K views
Convert string[] to int[] in one line of code using LINQ

I have an array of integers in string form: var arr = new string[] { "1", "2", "3", "4" }; I need to an arr

avatar
Karolyn
0 1 0 9
asked 07 September, 2021
60 votes
23 answers
2.8K views
How do I concatenate two arrays in C#?

int[] x = new int [] { 1, 2, 3}; int[] y = new int [] { 4, 5 }; int[] z = // your answer here... Debug.Asser

avatar
Suzan
0 1 0 9
asked 07 September, 2021
52 votes
19 answers
460 views
Using Linq to get the last N elements of a collection?

Given a collection, is there a way to get the last N elements of that collection? If there isn't a metho

avatar
Santiago
0 1 0 9
asked 07 September, 2021