Extensible Markup Language (XML) is a structured document format that defines human- and machine-readable encoding rules.
216
votes
10answers
15k views
Can you provide some examples of why it is hard to parse XML and HTML with a regex?
One mistake I see people making over and over again is trying to parse XML or HTML with a regex. Here are a few of the reasons parsing XML and HTML is hard:
People want to treat a file as a sequence ...
10
votes
2answers
2k views
A simple program to CRUD node and node values of xml file
I decided to save setting in xml file since field takes only one value.
My XML file is like
<?xml version="1.0" encoding="UTF-8"?>
<setting>
<setting1>setting1 ...
46
votes
7answers
49k views
Best XML Parser for PHP [closed]
I have used the XML Parser before, and even though it worked OK, I wasn't happy with it in general, it felt like I was using workarounds for things that should be basic functionality.
I recently saw ...
158
votes
8answers
129k views
Best XML parser for Java [closed]
I need to read smallish (few MB at the most, UTF-8 encoded) XML files, rummage around looking at various elements and attributes, perhaps modify a few and write the XML back out again to disk ...
100
votes
9answers
81k views
XML parsing of a variable string in JavaScript
I have a variable string that contains well-formed and valid XML. I need to use JavaScript code to parse this feed.
How can I accomplish this using (browser-compatible) JavaScript code?
218
votes
7answers
197k views
How does one parse XML files? [closed]
The default methods for dealing with XML in C# seem incredibly crude to me, leading me to suspect that I must be missing something in my searches. Is there a simpler method of parsing XML files in C#? ...
32
votes
2answers
29k views
How to parse XML using the SAX parser
I'm following this tutorial.
It works great but I would like it to return an array with all the strings instead of a single string with the last element.
Any ideas how to do this?
212
votes
3answers
182k views
Where can I get a list of the XML document escape characters?
Where can I get a list of the XML document escape characters?
76
votes
5answers
100k views
How to Deserialize XML document
How do I Deserialize this XML document:
<?xml version="1.0" encoding="utf-8"?>
<Cars>
<Car>
<StockNumber>1020</StockNumber>
<Make>Nissan</Make>
...
175
votes
5answers
59k views
16
votes
6answers
17k views
Parse XML with Namespace using SimpleXML
I have this as xml:
<event:event>
<event:sessionKey></event:sessionKey>
<event:sessionName>Learn QB in Minutes</event:sessionName>
...
148
votes
7answers
87k views
Best practice to 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 reading information. This path can be modified by the user, by using the options form I ...
167
votes
20answers
138k views
how to pretty print xml from Java
I have a Java String that contains XML, with no line feeds and indentations. I would like to turn in into a String with nicely formatted XML. How do I do this?
String unformattedXml = ...
91
votes
18answers
98k views
How to generate sample XML documents from their DTD or XSD? [closed]
We are developing an application that involves a substantial amount of XML transformations. We do not have any proper input test data per se, only DTD or XSD files. We'd like to generate our test data ...
72
votes
19answers
76k views