Tag: xml

63 votes
13 answers
1.6K views
What's the difference between an element and a node in XML?

I'm working in Java with XML and I'm wondering; what's the difference between an element and a

avatar
Patsy
0 1 0 9
asked 07 September, 2021
57 votes
9 answers
3K views
POST XML file using cURL command line

How can I POST an XML file to a local server http://localhost:8080 using cURL from the command line? What comm

avatar
Carmelina
0 1 0 9
asked 07 September, 2021
53 votes
11 answers
2.8K views
How do I read and parse an XML file in C#?

How do I read and parse an XML file in C#?

avatar
Xavier
0 1 0 9
asked 07 September, 2021
59 votes
12 answers
1.2K views
Web colors in an Android color XML resource file

What do all of the X11/w3c color codes look like in the format of an Android XML resource file? I know thi

avatar
Arline
0 1 0 9
asked 07 September, 2021
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
19 answers
1.2K views
How to handle button clicks using the XML onClick within Fragments

Pre-Honeycomb (Android 3), each Activity was registered to handle button clicks via the onClick tag in a Layo

avatar
Virgil
0 1 0 9
asked 07 September, 2021
53 votes
30 answers
1.4K views
How to pretty print XML from Java?

I have a Java String that contains XML, with no line feeds or indentations. I would like to turn it into a Str

avatar
Adolfo
0 1 0 9
asked 07 September, 2021
45 votes
27 answers
1.4K views
Pretty printing XML in Python

What is the best way (or are the various ways) to pretty print XML in Python?

avatar
Adolfo
0 1 0 9
asked 07 September, 2021
62 votes
6 answers
654 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
608 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
59 votes
4 answers
2.5K views
What&apos;s the difference between text/xml vs application/xml for webservice response

This is more of a general question about the difference between text/xml and application/xml. I am fairly new

avatar
Freida
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
54 votes
20 answers
1.8K views
How to make layout with rounded corners..?

How can I make a layout with rounded corners? I want to apply rounded corners to my LinearLayout.

avatar
Trudy
0 1 0 9
asked 07 September, 2021
54 votes
20 answers
635 views
Can the Android layout folder contain subfolders?

Right now, I'm storing every XML layout file inside the 'res/layout' folder, so it is feasible

avatar
Rudolf
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