Tagged Questions

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

learn more… | top users | synonyms

2
votes
0answers
13 views

URL fetcher and parser for XML feeds

Here is a program that will parse and print XML feed URLs. I want to reuse most of it to add post date to each link. This adds a new concern of CLI and output formatting on top of parsing and (poor) ...
1
vote
1answer
42 views

Search layout with 2 edittext and 2 buttons

I'm building an Android app and I'm new on building the UI on an .xml file. I've built a simple layout but I think that is not optimize very well. This component is a search layout with 2 edittext ...
6
votes
2answers
72 views

Loading card data from XML file

For our Cardshifter Project we wanted to be able to load card definitions from file. A card is defined as: Having an unique id. Having a set of resources, which are integers identified by a string. ...
1
vote
2answers
25 views

Customizing color for the navbar of my Android app

I got my navigation bar to be the color I want of Blue background with white text. Here is my code which works but this feels totally hacky. Please suggest improvements styles.xml ...
3
votes
1answer
96 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 ...
3
votes
0answers
73 views

Parsing small sets of data from a large XML using XMLReader [closed]

Suppose I have a lot of large XMLs I want to parse data from and each of these can range in size from 10MB to well over 300MB. Now, I only need a small sub-set of data from a few specific keys. For ...
6
votes
4answers
326 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 ...
1
vote
0answers
57 views

Drop-down list with 14 options of RSS feed dates

The goal of this code is to create drop-down menu where there are 14 options on the list. Those 14 options are the dates that an RSS feed were last updated. The URLs for the feed have the query ...
4
votes
1answer
25 views

Finding the next XML element

I am looking for a better way to do a while cycle with the variable update. The background is that I'm writing a StAX-line XML reader in JavaScript and want to ...
1
vote
2answers
82 views

Improving performance on file reading

I got a small assignment to read IP adresses and from a bunch of external text files identify which country the IP adress comes from.. I opted to use XmlReader and read the ranges from an XML file but ...
-3
votes
1answer
61 views

How to make this xml query shorter [closed]

I spent 3 days to read this xml file and put the details in to the database. It works the way it should be but I know the way i read this xml file is not the proper way. Can you please show me how to ...
6
votes
4answers
83 views

Extracting key information from a directory of XML files

I have written some VBA to loop through a directory of 15,000 XML files and extract key information from these files into Excel - this is unbearably slow. Can someone please assist me in optimising ...
7
votes
1answer
111 views

Object-to-XML string implementation

I have recently implemented a code to accomplish Object-to-String. Can you suggest any pros and cons with regard to the code? ...
3
votes
1answer
65 views

Dirty XML-to-JSON parser

I have that XML-to-JSON function based on ElementTree. It looks very simple but until now it does what it's supposed to do: give a JSON description of the ...
2
votes
1answer
144 views
1
vote
0answers
22 views

XML data-parsing design that doesn't sacrifice efficiency [closed]

I have the following method signature ...
3
votes
1answer
97 views

Validate XML using XSD, a Catalog Resolver, and JAXP DOM for XSLT

Background As this related question describes, there does not appear to be a canonical way to validate XML files against an XSD then subsequently transform them using an XSL template with file paths ...
0
votes
0answers
109 views

Propel ORM Schema Builder

I've worked out my Schema Builder for Propel. In short: I've created a class that can be used to create the 'schema.xml' for building a database for propel dynamically, because I need this for another ...
2
votes
0answers
34 views

Client-side XML + CSS architecture

Background With the goal of creating a simple architecture, I am wondering about the implications of a client-side rendering implementation. The request architecture resembles: ...
7
votes
1answer
152 views

Android “Search” Activity and corresponding XML

Below is an Android Activity and corresponding XML layout. The function of the class is to search an ...
5
votes
2answers
36 views

Adding credentialsID node to SVN location nodes

I'm new to ruby. Recently I wrote a script to add a credentialsID node to each SVN location node in each config.xml file for all ...
6
votes
1answer
60 views

File validator configured using XML

I am making an application to check for any files that does not follow a specific pattern defined in a XML file. The application works well, but the source code is not the greatest, and memory ...
3
votes
1answer
34 views

CLI Command Search Tool - XML Framework

I'm working on the OSCP, and Information Security certificate based around penetration testing. CLI-based tools seem to be the core of most pen-testing assignments, so I'd like to build a tool aiding ...
7
votes
3answers
130 views

Too many null checks in an XML-to-XML transformation

I'm writing a conversion mechanism in C#. I deserialize a big XML document of one type and return a big XML document of another type (via serialization of another object). While I'm doing the ...
2
votes
2answers
171 views

Different Approach to the following ASP.NET Web API Action

Maybe someone here can help me sort out this implementation and make it better. First the following constraints: 1 Controller & Action that accepts all post requests, these post requests will ...
1
vote
1answer
69 views

Improving iterative manipulation on XML elements

In this reply, there's an example of how to remove a node from a XML structure. ...
5
votes
1answer
305 views

Single Sign On - SAML Response generation

I am trying to implement a IDP initiated Single Sign On Solution (service similar to onelogin's) to Cloud based Service providers such as Google Apps, Salesforce etc. The project is a Maven eclipse ...
2
votes
1answer
78 views

Parsing XML to send data into several files

My code works for the most part. (The problems are on the html side not the python side) however I feel it could run quicker or more efficiently. Due to the size of the XML document it parses it's ...
3
votes
1answer
90 views

HttpWeb* and XmlReader Async?

I've run into the need to deserialize XML that returns from an http request. I've done some light work with XML deserialization in the past but that was against files on disk. While attempting to ...
4
votes
1answer
40 views

Unifying XML formatting with inheritable parsing

Inspired by the XML format for game data question, I was interested to see how my system works for storing game data. My system works a lot like Halo, where there are a variety of gametypes and ...
12
votes
2answers
689 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 ...
3
votes
0answers
53 views

Use of die() in flow control - proper and sensible?

Designed for OpenCart, vQmod places or replaces bits of code based on XML files. The following three versions of the code achieve the same goal, which is to ...
11
votes
1answer
293 views

Why does the new ADT create a static inner class Fragment by default?

Honestly, I can't help but feel that this is done merely to confuse newcomers. Most of the errors on Stack Overflow by complete Android newbies mostly stem from that they have a static inner class ...
4
votes
1answer
259 views

Converting string array to string (and vice-versa) for storing via XML

I'm using XML to store data and I need to store a string array in it. The best way (that I can think of) to store a string array is by converting it to a single string. In order to do that, I'm using ...
0
votes
1answer
63 views

Finding the minimum of two numbers [closed]

For this flowchart on finding the minimum of 2 numbers: I've created XML for this flowchart: ...
2
votes
1answer
67 views

FormBuilder code suggestions for POCO

I am constructing a form builder in ASP.NET and I am wanting help with the structure of my POCO classes I have the following so far. I just don't see why I need to add to a list and then process it ...
1
vote
2answers
51 views

Updating XML config files

I have been unable to find any other way to update a user config file than the following method. ...
5
votes
2answers
203 views

Short XML parser

This is my first code in C# ever. It compiles and works as intended (not complete), but I want to see what I'm doing right and wrong as a first-timer. ...
4
votes
1answer
110 views

Using XDocument properly

I have a WCF service in which I am reading and adding some records to a .xml file. I load the .xml document in the constructor and use it in all the methods and save when it's updated. I want to ...
5
votes
2answers
197 views

How to avoid duplication in my document writer?

I have these two methods which are generating two different xml files whose header section is same and detail section varies. The root node is different for both xml files. Here I have two methods ...
3
votes
1answer
66 views

Optimisation XML handling within vb.net application

I need to optimize this snippet to be faster: ...
6
votes
1answer
105 views

Themed Folder Classification

I am trying a very simple method of getting the theme information via a theme.xml within each theme folder. What it should do: Scan the theme directory ../themes Return the names of all the theme ...
2
votes
1answer
113 views

ListView with a search filter

I have this piece of code I've been working on for quite some time. It's a ListView with a search filter. Inside each row, it contains a user Image, a User's name and how many friends they have in ...
11
votes
2answers
340 views

Find records with duplicate serial number

I was tasked today with cleaning up data from a SSRS report put together by a DB programmer. The original report was to find duplicate serial number sales within a user-defined period of time. I was ...
3
votes
1answer
233 views

Android layout with equal spacing between elements [closed]

I am trying to make a nice set of items, which are equally spaced from each other. On example below, I set buttons between empty textview. Every button and text view has ...
1
vote
0answers
33 views

Displaying blog posts from non-SSL site in SSL site

The Issue I added SSL to a previously static and non-SSL website because some new features will require it. I'm using rails 4.0.5, ruby 1.9.3, and the site is deployed on heroku. [it's at www dot ...
3
votes
1answer
112 views

Extracting the text of a specific XML node

I have to extract friendlyName from the XML document. Here's my current solution: ...
4
votes
1answer
64 views

First attempt at designing a 'ProfileActivity'

I designed this layout in Balsamiq for my ProfileActivityand I tried to replicate it. The screen on the left fits the correct proportions, whereas the screen on the ...
3
votes
2answers
276 views