Extensible Markup Language (XML) is a structured document format that defines human- and machine-readable encoding rules.
1
vote
1answer
466 views
Printing results in XML
I have been writing PHP programs in the MVC pattern for quite some time. But I am not sure if I am doing it right.
For instance, I have this PHP file that prints results in XML, and I put this file ...
3
votes
4answers
562 views
Improving search through XML file
I'm working on a function that extracts information from an XML document and compares to what the user has typed in. Can you suggest any ways in which I can improve it? The variables in the XML file ...
5
votes
4answers
5k views
Mapping the differences between JavaScript objects
The reason I want to do this is that the JavaScript objects are created from XML elements and if the element has changed I want to be able to detect that change in the JavaScript objects. So I wrote a ...
3
votes
1answer
267 views
XML Writer in C++ - Updated
I recently posted about a basic XML writer in C++ and got a lot of great feedback. Well, I'm back with an updated version of the XML writer that is a bit less basic, but hope it's better than the ...
2
votes
2answers
281 views
Generating .xml files based on .csv files
This reads in data from a .csv file and generates an .xml file with respect to the .csv data. Can you spot any parts where re-factoring can make this code more efficient?
...
2
votes
1answer
290 views
Collection of XmlNode control
I have implemented the structure below at least 5 times, and it is getting cumbersome. Is there a better approach?
Current code-segment implemented
...
17
votes
3answers
214 views
Translating the Rubberduck - Übersetzen der Gummiente - Part 1: Modelling
So I have committed to making a German translation for the guys over at Rubberduck, which is localized via .resx files.
Now these files are basically XML-Files with a certain, rather simple document ...
4
votes
2answers
8k views
Parsing XML in Python
The aim of this code is to return an object which contains all of the movies. Where attributes are not found, they need to return None rather than be undefined and ...
12
votes
2answers
827 views
XML format for game data
I want to create an XML format in which I will define data objects for a game I am currently working on.
The base idea is that I will have Elements which can be ...
10
votes
1answer
190 views
Civilization 5 mod validator
I would like to submit a portion of my code for Code Review, and I have done my best to comment the code (and include essential parts that may aid understanding of the program) for your convenience! ...
7
votes
2answers
315 views
Fluent Interface for a XmlQueryBuilder
In this answer I suggested using a fluent interface "builder" to replace all the hard-coded, repetitive and quite error-prone inline XML string concatenations.
This code might need a bit of tweaking ...
8
votes
4answers
7k views
Check if XmlNode with certain attribute exists and create XmlNode if not
I'm not going to explain the purpose of the code provided below. If you do not understand it, i know that i have to improve it (naming, structure etc.).
I would like to know how to improve this code ...
6
votes
4answers
3k views
Basic XML Writer in C++
This is an XML Writer in C++. It doesn't do much but the basics, and I've tested it, so it should hold up well enough. I hope in the near future, I can bring you an XML Reader.
I kinda built the ...
5
votes
2answers
123 views
3
votes
0answers
41 views
Stylishly saving source
Simple tool to save a web page's source. Styled to resemble Sublime Text, given frequent personal use. I took the opportunity to learn and apply an MVC approach, the FXML is generated via Scene ...
1
vote
1answer
333 views
Manage XML file with custom XmlFileHandler class
This post is a follow up question.
The purpose of this class should became clear without any further explanation. Raise your hand. If not, then I will have to improve the naming/structure.
I would ...