All Questions

368
votes
12answers
36044 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...
345
votes
14answers
489312 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> ...
476
votes
11answers
347259 views

How does one parse XML files?

Is there a simple method of parsing XML files in C#? If so, what?
674
votes
15answers
801183 views

How do I parse XML in Python?

I have many rows in a database that contains xml and I'm trying to write a Python script that will go through those rows and count how many instances of a particular node attribute show up. For instan...
735
votes
10answers
721125 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?
218
votes
6answers
338024 views

How to read XML using XPath in Java

I want to read XML data using XPath in Java, so for the information I have gathered I am not able to parse XML according to my requirement. here is what I want to do: Get XML file from online via it...
68
votes
13answers
43750 views

Is there any difference between 'valid xml' and 'well formed xml'?

I wasn't aware of a difference, but a coworker says there is, although he can't back it up. What's the difference if any?
485
votes
13answers
340948 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 provid...
232
votes
35answers
311162 views

How to convert array to SimpleXML

How can I convert an array to a SimpleXML object in PHP?
720
votes
11answers
866660 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 CDATA tag always comes at the beginning, and then followed by some stuff. But sometimes it ...

Previous Next