Extensible Markup Language (XML) is a structured document format that defines human- and machine-readable encoding rules.
3
votes
1answer
74 views
Generating Settings Objects from Database via Factory Class
In an ASP.NET MVC application (C#) have a factory-like class that generates settings objects of ISettingType for my application. However, some settings are very ...
2
votes
2answers
50 views
Locating people by roleId
Basically, I'm trying to find all active people with a roleId of 3 (analyst id). But I want to exclude ids that were created as test analysts, i.e. "130", "252", ...
1
vote
0answers
18 views
XMPP XML Parsing and Tests in Swift
I am implementing chat app using XMPP.
Here is my XML Parser function which tells me whether given XML is file transfer offer or not:
XMPPIQ+FileTransfer Extension->
...
1
vote
0answers
29 views
A vanilla JavaScript library for typesetting algorithms in HTML documents using XML and LaTeX - follow-up
This post is basically a follow-up to my related question. I added some new keywords, made the code less DRY. Also, the library inserts the required CSS to the HTML document, so that there is no need ...
8
votes
0answers
72 views
A vanilla JavaScript library for typesetting pseudocode in HTML documents
I have this plain JavaScript library for typesetting pseudocode in HTML documents. (See the documentation for details.) (See the GitHub repository - broken as of now.)
Source code
algotype.js
<...
4
votes
4answers
370 views
Program to search many files and remove a certain string
The reasons I create this program is because we had an issue of XML elements showing up with older assembly versions in, which were duplicate elements of the same element with the new assembly version ...
2
votes
2answers
77 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
57 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
69 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
46 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
40 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
104 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
43 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 ...
2
votes
1answer
39 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
18 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
51 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
147 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
113 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
53 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
77 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
43 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
66 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
31 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:
<...
1
vote
0answers
36 views
SVG filtering an image to stepped alpha grayscale
I have a variety of images that will be used in a style intended to mimic a dot-matrix LCD.
In a previous version, I rendered these images using a program and essentially ended up with a duplicate of ...
2
votes
1answer
83 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
192 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
46 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 ...
8
votes
1answer
62 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
113 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
37 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
30 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
851 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
65 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
70 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
37 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
39 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
51 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
183 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
94 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
374 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 ...
2
votes
1answer
51 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
2
votes
2answers
345 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
25 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
17 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
59 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.
...