Extensible Markup Language (XML) is a structured document format that defines human- and machine-readable encoding rules.

learn more… | top users | synonyms

2
votes
1answer
51 views

Generic data converter for one type of data to another

I wrote a generic data converter that takes one kind of data and converts to JSON and XML types of file. Now, it reads data from the given ...
4
votes
2answers
41 views

Parsing an XML file with elements for keys and values

I'm parsing an XML file that is structured like this: ...
3
votes
2answers
62 views

Loading items from XML document

I'm making a game in Unity and I need to have a inventory/item system, I decided to store my items in simple XML document which I later read from. I'm planning to have different varieties of items and ...
1
vote
0answers
23 views

Simple API testing framework for testing of SOAP xml requests

I have a need to try to automate the testing of a large Web Service with an XML API interface. The framework takes the form of a Mavenised Java project. The usual maxims apply: must be highly ...
1
vote
1answer
39 views

Creating an AlertDialog with a list

I am wanting to implement an AlertDialog with a list into my app and I created a sample to see if I can get the result that I am looking for. It seems I do have the ...
4
votes
3answers
100 views

Reading and working with a large number of XML attributes

I'm currently facing the problem of unmarshalling a huge number (47) of attributes to a Java object. Changing the format of the XML file to be more structured is sadly not an option. The following ...
2
votes
1answer
38 views

Animating multiple views in Android efficiently

I am currently making an application where the user will launch the app and the first this we see is the app logo fade in at the center of the screen. After about a second, the logo will translate up ...
1
vote
1answer
26 views

TextView vs Button for Android AlertDialog

I want to open an AlertDialog on the click of either a Button or TextView but I am not sure ...
0
votes
0answers
17 views

Ant task to conditionally perform system upgrade

I have this Ant task which checks if enable.clustering is on and cluster.nodeType is ...
4
votes
1answer
46 views

Recursively generating flat XML elements from hierarchical data structure

My class has a method that does some stuff, and then wants to recursively operate on some data. Specifically, I'm generating an XML report whose output includes a flat list of elements derived from a ...
2
votes
1answer
131 views

Analyze Shakespeare's Macbeth parsing XML from web using Nokogiri

This is a simple Ruby program to analyze the number of lines characters speak in Shakespeare's Macbeth using Nokogiri and open-uri to parse a given url containing xml. I wrote this as practice getting ...
3
votes
1answer
23 views

Translate strings from an XML attribute into corresponding constants in my module

I have a non-trivial list comprehension in Python. My goal is to take a whitespace-delimited list of strings from an XML attribute — which may not exist — and look up the corresponding constant in my ...
6
votes
2answers
107 views

Console colorizer

To be able to apply various colors to the console I created a ConosoleColorizer. It's really simple. It just takes an XML and renders it to the console with the ...
2
votes
2answers
38 views

Pythonic way to convert XML attribute to float, or else get None

My Python code is converting XML attributes in an ElementTree to appropriate values. How do I best convert a value in this dict to a ...
1
vote
0answers
44 views

XML settings file read/write Design Patterns [closed]

I'm new to C# and would like to create a WPF app with xml config file. I have a certain setting file written by using System.Xml.Linq;. And I'd like to write ...
2
votes
1answer
40 views

Comparing XML string with different formats

I need to compare 2 xml strings where the formatting may be different. The approach is to use the XmlWriterSettings to format both strings and compare the formatted ...
1
vote
1answer
62 views

Building DOM tree from XML, checking/updating player's average score

This is the first time I'm parsing an XML file. So I will be grateful for any suggestions on how my code may be improved. Or if you could suggest another approach to solving this problem. One other ...
1
vote
1answer
23 views

Parse child value from XML using ezxml

I'm parsing an XML file and searching for a child value. As I'm familiar with this XML file structure, I know that the final value is a child of a child, and so I wrote the following code section: <...
2
votes
1answer
77 views

C# XML Config File

I'm trying to find a simple, clean and fast way to implement an XML config file in C# without any 3rd party tools. It also should replace this restricted ...
7
votes
2answers
181 views

SQL query to compare two XML columns

I need to compare two XML columns. I currently have about 1000 rows of data that this is running against and it takes about 20min. Is there anyway I can improve this query to run faster. ...
5
votes
2answers
39 views

Slicing Stack Exchange data dump XML files into small bites

I was posed with a challenge when trying to load XML files from Stack Exchange into a SQL Server database; some of these XML files are extremely large (largest one being a whopping 67 GB in a single ...
7
votes
1answer
52 views

Load and Parse Stack Exchange data dump XML into DB table

I have put together a stored procedure to load and parse the Stack Exchange Data Dump into a relational database (akin to Stack Exchange Data Explorer). Each site has 8 XML files like these: The ...
6
votes
2answers
101 views

Authenticating web request to get the xml data from it

I wrote a method early of our development last year about getting the content of a webrequest where it contains an xml data that we need to process and insert to ...
1
vote
0answers
36 views

Retrieving XML data

I am using the following function to receive XML data from a URL. Is there a more efficient method for retrieving this XML data? ...
1
vote
0answers
25 views

Functional-style Cocoa XML serializer and object mapper

I'm working on an XML-to-model-object serialization and deserialization library. There are three main design goals for the code: It should parse XML into and serialize from Cocoa-native collection ...
1
vote
1answer
28 views

Counting standard deviation from parsed XML file

I wrote a method that calculates the average and standard deviation of sell currency exchange-course (ASK). But I think that it isn't the easiest way to define such behavior. In my opinion there is ...
6
votes
3answers
699 views

Determine if a file is either in JSON or XML format

The purpose of this function is to determine if report_input_file is either in JSON format or XML format, this is what I came up with, just want to know if this is ...
3
votes
3answers
60 views

Reporting test results as JSON and XML

I have two functions now with very similar functionality, and would like to merge them into one more generic function. The only difference between those two functions is that one handles json input ...
2
votes
2answers
57 views

Converting XML to DOT

I would like to show an XML tree as a tree using GraphViz Dot tool. Then I must convert it to a DOT file. It is what I have tried ...
3
votes
1answer
36 views

Parses XML to return the bus times at specified bus stop

The code uses the XML-based OC Transpo data feed to create a list of the bus name, where it's headed, and the times. Keep in mind that I am a beginner at python so any advice at all is appreciated. <...
1
vote
1answer
38 views

Minimum acceptable POM

I've been learning how to use Maven, and in order to understand it better, I want to try and write the smallest possible pom.xml file, while being as modern as ...
0
votes
0answers
49 views

SQL BulkCopy - XML to SQL

The application we've built occasionally needs to load XML data into a SQL database. The code works well until the files reach 600kb or greater at which point out-of-memory exceptions occur. The ...
14
votes
2answers
3k views

O PC, why are you so slow?

In order to test some software I've written, I need to write values to a test harness with OLE for Process Control (OPC). The problem is, for a larger range of values I'm generating points for (say ...
5
votes
3answers
181 views

Xml serialize to object

I have to read some data from xml file and then need to store the converted json in the database. The class DtoProcedureXml mapped with xml attributes. ...
13
votes
1answer
86 views

#TODO Remove duplication in XML parsing

I have to modify the number of points in this XML in order to test the performance of another program of mine. Here is an example of the XML I have to modify. performance.xml: ...
4
votes
1answer
373 views

Serializing a list

I have a ColorFormat class that contains a string format for a color and its format name. In the software, I will define multiple instances of this class and ...
1
vote
1answer
44 views

Cloning Distinct XML structures without data in PHP

I struggled for the last couple days on this question and finally came up with a solution. But it's got so many loops I get dizzy just looking at the code - from recursive functions with loops to ...
4
votes
0answers
34 views

Reading and updating an XML address file

I have some code that reads from an XML file and updates if needed. I want to move some of the stuff around. Here is the code overall: ...
1
vote
0answers
16 views

Optimize query from xml column

So I have a query like this: ...
2
votes
2answers
344 views

Classes for reading XML from a file

Basically, all I have to do is read some xml from a file. And I have a working solution, although I am not sure that it is the best way of going about doing things, as I have only recently started ...
3
votes
1answer
23 views

Apply classes to selected XHTML elements based on content

I wish to take an XHTML source document (e.g. demo.in.xhtml below) and add class attributes to every td element whose content is ...
0
votes
0answers
16 views

Most performant filtering method for nested XML using Google Apps Script

Assuming a theoretical XML hierarchical file exported from an analysis tool thus: ...
3
votes
1answer
55 views

Transfer XML data to database where table fields must match with elements

This is my first Java program, where I have a class that gets XML data from a certain website and another class that does all the database related tricks. I omitted all non-related code to this case. ...
1
vote
0answers
69 views

Making a TV guide from XML file

I have a background worker that is RunWorkerAysnc() on form load with the following code in it: ...
1
vote
1answer
57 views

XSD Schema for optical media

I recently wrote my first XSD Schema: ...
2
votes
1answer
44 views

Java class that parses Shoutcast stats XML

I have written a Java class that parses Shoutcast 2 stats XML. It uses JDOM to parse the XML. I have only basic knowledge of Java and I wrote this class in about 3 hours. It works, but I don't know if ...
4
votes
1answer
73 views

Data Driven (ability) system

I am making a data drive system for creatures, abilities, items, etc. Considering my ability objects I need to create "templates" from the these since parsing them in real time is too slow. I am ...
2
votes
1answer
211 views

Distinct List of attribute values from XML, using a pre-defined set of attribute names

I have an XML stream that looks like the following (attribute and node quantity , and node depth reduced for demonstration purposes.) ...
2
votes
1answer
113 views

XML parser for multiple browsers

I made a basic XML parser supposed to be work in many browsers by using most older functions. What it must do is return an AST (Abstract Syntax Tree) of a XML text in a string. (it's not cool for ...
1
vote
2answers
41 views

XML Python can this be improved

ok spent ages on this simple problem (I'm not good at XML) below code is probably self explanatory and it works, but i think this could be done a lot easier Sample XML ...