XML is the eXtensible Markup Language. It is a format that is easily parsed by computers, but is also readable by programmers.

learn more… | top users | synonyms

211
votes
15answers
23k views

How can a code editor effectively hint at code nesting level - without using indentation?

I've written an XML text editor that provides 2 view options for the same XML text, one indented (virtually), the other left-justified. The motivation for the left-justified view is to help users ...
56
votes
12answers
8k views

Can we replace XML with JSON entirely? [closed]

I'm sure lots of developers are familiar with XML and JSON, and they've used both of them. Thus no point in explaining what they are, and what is their purpose, even in brief. If we try to map their ...
42
votes
4answers
1k views

Why not XHTML5?

So, HTML5 is the Big Step Forward, I'm told. The last step forward we took that I'm aware of was the introduction of XHTML. The advantages were obvious: simplicity, strictness, the ability to use ...
18
votes
13answers
5k views

If XML is so bad…why do so many people use it? [closed]

I understand the purpose of XML, but I always hear people complain about how BAD it is? I don't really understand whats so bad about it? I usually hear the terms "bloated" and "slow" tossed around. ...
18
votes
12answers
5k views

What are the advantages of storing xml in a relational database?

I was poking around the AdventureWorks database today and I noticed that a number of tables (HumanResources.JobCandidate and Sales.Individual for example) have a column which is storing xml data. ...
17
votes
7answers
1k views

Why is XML not called EML?

From Wikipedia Extensible Markup Language (XML) is a set of rules for encoding documents in machine-readable form. It is defined in the XML 1.0 Specification[4] produced by the W3C, and several ...
14
votes
2answers
1k views

What is the importance of XML in the world of JSON?

How important is it to learn XML when JSON is able to do almost all that I need? Having said that, I use JSON mainly for AJAX requests and obtaining data from various APIs. I am a total newbie to web ...
10
votes
2answers
1k views

Why can't an xml comment contain two hyphens

I was applying markdown comments in the xml comments of a config file when the XmlParser reported that two hyphens (--) are not allowed in xml comments. Checking the XML Specification, it appears ...
10
votes
3answers
5k views

Why do we need URIs for XML namespaces?

I am trying to figure out why we need URIs for XML namespaces and I cannot find a purpose for that. Can anyone brighten me a little showing their use on a concrete example? EDIT: Ok so for ...
9
votes
4answers
510 views

Should I parse XML on the server or provide a proxy and let the browser parse it?

I need to interface with a 3rd party API. With this API I make a GET request from within the end user's browser and receive an XML response. This data is to be used in a browser based application ...
9
votes
3answers
2k views

XML vs SQL for small projects?

I'm working on a small project which will only have one user at a time since it's a local application (developed in WPF and C#). To store data I was thinking of using an XML file but I'm wondering if ...
9
votes
3answers
10k views

Relation and differences between SGML, XML, HTML and XHTML

I was wondering what "profile" means in Wikipedia: XML is a profile of an ISO standard SGML, and most of XML comes from SGML unchanged. According to ...
8
votes
11answers
16k views

Using XML as data storage

I was thinking about the XML format and the following quote: “XML is not a database. It was never meant to be a database. It is never going to be a database. Relational databases are proven ...
8
votes
9answers
2k views

How important is XML for a developer? [closed]

Is it must that every developer should know XML? How important is XML for a developer? Any suggestion...
8
votes
6answers
3k views

Techniques for parsing XML

I've always found XML somewhat cumbersome to process. I'm not talking about implementing an XML parser: I'm talking about using an existing stream-based parser, like a SAX parser, which processes the ...
8
votes
8answers
877 views

How would you feel if your code editor formatted your code for you as you typed, without tabs/spaces?

As with most things, I'm sure this concept has been tried before - I just haven't come across editors that use what I've termed 'Virtual Formatting'. The principle is that there's a floating ...
8
votes
6answers
10k views

When should I use the XML data type in SQL Server?

When should I use the XML data type in Microsoft SQL Server?
8
votes
2answers
421 views

What is a good design pattern for generating an Excel (xlsx) file in code?

See my Update at the bottom for more. I occasionally have projects where I have to output some data as an Excel file (xlsx format). The process is usually: User clicks some buttons in my ...
8
votes
3answers
6k views

Generic file parser design in Java using the Strategy pattern

I am working on a product in which the responsibility of one of the modules is to parse XML files and dump the required content in a database. Even though the present requirement is only to parse XML ...
7
votes
9answers
1k views

Is it worth Learning XML as a web developer when JSON is better for AJAX? [duplicate]

Is it worth Learning XML as a web developer when JSON is better for AJAX? or is it better to concentrate on JSON/Javascript for AJAX?
7
votes
5answers
2k views

XSLT and possible alternatives [closed]

I had a look at XSLT for transforming one XML file into another one (HTML, etc.). Now while I see that there are benefits to XSLT (being a standardized and used tool) I am reluctant for a couple of ...
7
votes
2answers
1k views

What are the cons of using XML for GUI development? [closed]

I'm hoping this question fits within the scope of Programmers SE and that it's not too open ended. I've always hated GUI design. I don't mean to offend anyone, but I've hated CSS/HTML, I've hated ...
7
votes
2answers
965 views

Shifting between XML schemas and C# classes in a sensible fashion

A .NET/C# system receives XML messages for processing and further transmission. Since working directly on XML documents would be very inconvenient, it is necessary to deserialize the message to a C# ...
6
votes
3answers
691 views

Purpose of ending tags in SGML/HTML/XML?

There are those tags which have immediate effect (< br >) and those which affect what is between them ( < a > < / a > ). Closing tag is verbose, and I believe also redundant: <tag ...
6
votes
7answers
879 views

Is using something other than XML advisable for my configuration file?

I have a small tool I'm designing which would require a configuration file of some sort. The configuration file in my case is really more of a database, but it needs to be lightweight, and if needed ...
6
votes
2answers
3k views

What's the difference between a marshaller and a serializer?

...and unmarshalling/deserializing? Wikipedia's explanation leaves me none-the-wiser! I'm a Java programmer, in case the terminology is used differently in different languages.
6
votes
6answers
796 views

xml based programming languages

I was looking at wikipedia - Category:XML-based programming languages. Why would someone take this approach for designing a language? What are the advantages of it? I can only think of ...
6
votes
8answers
1k views

Should all new web projects build their backend based on xml/json result sets? [closed]

If you were building a new Saas project, would it make sense to start with all of the backend services returning xml/json? Because these days you need to build for both the web and mobile devices, ...
6
votes
4answers
602 views

Which one to choose: XML attribute or Sub node?

We want to export some data from our data base as XML. For example, a Person can have age, name and some other properties. We have two choices to define the XML format. Choice #1: <Persons> ...
6
votes
5answers
1k views

How to decide between storage formats and what are example use cases for some of them?

We have different ways to store program data (save files in games, employee databases, program configuration etc.): Plain text (think .ini and .conf) XML Databases (MySQL, SQLite...) .zip and ...
6
votes
3answers
613 views

C++ XML Parsing: Suggestions on Approach for Parsing and Storing data

I am looking into developing a C++ application to parse xml (using the rapidxml framework), and I would like some advice on how to approach this. The file I want to parse is a XML game file that ...
6
votes
1answer
791 views

Duplicating documentation on interface implementations/overrides good or bad?

So we have an interface like so /// <summary> /// Interface for classes capable of creating foos /// </summary> public interface ICreatesFoo { /// <summary> /// Creates foos ...
6
votes
2answers
491 views

How should I organize the words of a sentence for better outputs/maintenance and performance?

Having this sentence (consider many sentences in the future) David Henderson Houston patented the first roll film for cameras in 1881. I can make questions like 1. Who patented the roll film? ...
6
votes
1answer
417 views

Mapping variable inputs to user interface elements

Background Developing a system for creating eBooks. The data is highly normalized. The eBook designs are packaged as "themes." The themes can be configured with options for: fonts, colours, some ...
5
votes
5answers
2k views

Version control programs for XML-files - merge/diff tool

My programming environment / language (gamemaker) gives the source files as "XML-files". Each resource has its own XML file. Where the properties (code is a property) are stored inside xml tags. Is ...
5
votes
3answers
3k views

Is there a simple, flat, XML-based query-able data storage solution? [closed]

I have been in long pursuit of an XML-based query-able data store, and despite continued searches and evaluations, I have yet to find a solution that meets the my needs, which include: Data is ...
5
votes
1answer
474 views

Copyright notice in CSS or XML files

I'm currently working on an open-source project. Currently, we put our copyright notice at the top of every Java source file. I was wondering whether it was advisable or common practice to put ...
5
votes
1answer
772 views

Would this be a good web application architecture?

My problem Our MVC based framework does not allow us to cache only part of our output. Ideally we want to cache all static and semi-static parts, and run dynamic parts. In addition, we need to ...
5
votes
1answer
363 views

Conditional attribute in XML - most concise solution?

I am tasked with setting up conditional profiling - a method of tagging chunks of XML with an attribute, which will then be used as a conditional value to extract subset of that XML. Have a look at ...
4
votes
5answers
417 views

Is XML required for this?

I am writing a desktop application in Java, which has all of the Airband radio frequencies for the UK in it. I would like to make this frequency database downloadable so people can print it. Would it ...
4
votes
5answers
1k views

What programming language to choose for this XML and data processing task? [closed]

I currently code in PHP. Recently I've been working on a project using PHP and Symfony that: reads large XML files (lots of DOM parsing/reading), converts large XML files to large arrays, merges 2 ...
4
votes
2answers
384 views

What's an expat XML parser?

I found the term here: https://developer.mozilla.org/en/Mozilla_Web_Developer_FAQ I know what a XML parser is. I can't understand; what exactly is an expat XML parser?
4
votes
1answer
370 views

Are XML Schemas bad for constantly evolving file formats?

I'm struggling with a client-server project where I have Java apps out on the Internet that store data to a backend server. The format of this data is well-defined, but the project is constantly ...
4
votes
4answers
284 views

XML and Registry

Which method is considered to be best practice for setting storage for applications: XML or Registry? What are the benefits/downsides of using either of these?
4
votes
2answers
278 views

Good abbreviations for XML … things

I've never been very good at maintaining a coherent bunch of variable names for interfacing with XML files because I never name the variables in my interfaces the same way across my source. There are ...
4
votes
1answer
126 views

Writing map of data to XML according to a format which is user-defined

I need to write a map of string data to an XML document. The XML document has a specific format. An entry key determines where in the XML document the value will be written to. See below for an ...
4
votes
3answers
301 views

Is it possible to combine XPath and CSS selectors?

Just came through XPath. I got curious about this. Why is there a different way to select tags in XPath and CSS(selectors). Why cant there be a common way in both XPath and CSS?
4
votes
2answers
801 views

Storing data for use on Android and Windows Applications

I posted this last night on StackOverflow and was advised to move it over to StackExchange, thank you for taking a moment to look at my question. I'm developing a project proposal for my final year ...
3
votes
7answers
232 views

XML in the attribute of other XML

Today, another developer was talking to me about how he addressed an issue he was working on. The solution he found was to stick a string of escaped XML into the attribute of another XML element. In ...
3
votes
2answers
154 views

What constitutes competency in XML in the .NET world?

I see a lot of .NET job postings that list XML as a required skill. What should one be able to do in/with XML to have confidence that this requirement is satisfied? Modeling? Work with XPATH? ...