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

learn more… | top users | synonyms

-1
votes
0answers
6 views

How to create serialize class for soap xml message using WCF data contract serializer? [on hold]

I need to create class and assign values of classes's property.Can I convert this composed class into SOAP XML message.The soap message should include credential in header. Can I do this by using WCF ...
1
vote
1answer
30 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 ...
3
votes
0answers
21 views

How to unify 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 ...
0
votes
0answers
16 views

row not retrieving date until line 63 [on hold]

I'm running the following code, but it doesn't start the result until the 63rd row. Not sure how to change it. ...
12
votes
2answers
657 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
31 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 ...
9
votes
1answer
86 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
83 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
43 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
50 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
42 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
118 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
44 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
181 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
37 views

Optimisation XML handling within vb.net application

I need to optimize this snippet to be faster: ...
6
votes
1answer
96 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
53 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 ...
10
votes
2answers
205 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 ...
1
vote
0answers
24 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
74 views

Extracting the text of a specific XML node

I have to extract friendlyName from the XML document. Here's my current solution: ...
3
votes
1answer
49 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
70 views
7
votes
2answers
120 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 ...
9
votes
1answer
79 views

Saving an XML file created by Tesseract OCR as a traversable object

My project here works upon output that comes out of a Tesseract OCR scan using hOCR format, then I read it with JDOM 2.0 and finally save it one of my own objects, which at a later point needs to be ...
2
votes
1answer
57 views

Optimizing playlist processing

I am trying to process an audio library file which is about 350 KB. My application processes each song on the file gets its meta-data and displays it in a List Box. The problem is that it takes too ...
9
votes
1answer
130 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! ...
1
vote
1answer
73 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 ...
8
votes
4answers
417 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
1answer
85 views

Extraction of data from Flickr

I'm crawling Flickr for data for my university research project. However it's very slow and I'm not sure what it is exactly. It could be the FileWriter slowing it ...
8
votes
2answers
82 views

Comparing Server Version Number History

I have this code that compares all version numbers of servers. (The version numbers are stored in an XML file) Before the code would compare the current version number with the previous. This caused ...
5
votes
3answers
176 views

Converting KML/XML to Javascript

So, I have the boundaries of every states in the US, from the google map KML file. This KML file is actually a XML file. I'm converting this file to a JS file compatible with google map in order to ...
3
votes
1answer
90 views

Parse XML using Python XML eTree

I am a high school intern, and I am trying to parse my mentor's code so that he can read in an XML file and call simple methods to edit or get information from his XML file. I was hoping someone ...
6
votes
1answer
392 views

Dividing the screen in two halves using LinearLayout

I want to divide the screen in two halves. The layout is locked on portrait mode. The top half will have one button and the bottom half will have many buttons. That's why I choose this division, since ...
3
votes
1answer
91 views

Parse needs to be more efficient

I will preface by saying that this data set is much larger than what I have here. I'm having to loop through an XML file to get data and display it on a site with jQuery. I have to use jQuery because ...
3
votes
1answer
89 views

Best practice to create XML messages with DOMDocument class in PHP

I want to create XML messages for webservice communication. These messages should be created from a pool of reusable elements. Therefore I have created different classes. A "factory" class, that only ...
5
votes
1answer
70 views

Anonymous methods, factory methods, threading, and XML input

I have an application which retrieves data from a (potentially) very large XML file. A combination of XMLReader and XDocument seemed to be the only way I could manage the entire thing the way I ...
5
votes
3answers
2k views

Client Sends XML, Server Parses XML, Queues Up and Executes Commands

I recently had a Java interview where I was asked to write a client-server application. I don't code primarily in Java, but with my preliminary Java knowledge, I thought I built a reasonable working ...
3
votes
1answer
30 views

XML Schema File that validates my XML File

I just want to know if my schema file is correct: XML File: ...
3
votes
2answers
154 views

PHP Weather class

I am kind of new to object orientation in PHP and I need some experts feedback. This class fetches the weather from this URL. It grabs the weather, temperature and an icon from the current hour. ...
4
votes
2answers
129 views

Dynamic Storing Objects from XML in RPG

I would prefer if more experienced users could give pointers on how I can optimize and think better when writing code. If you are unfamiliar with unity3d, ignore the use of UnityEngine, the heritage ...
10
votes
4answers
225 views

XmlCmdBuilder - doing away with inline xml

I have to work with a 3rd-party API that allows me to define and execute "commands", using XML. Since I don't like seeing mixed abstraction levels, I managed to remove all the inline XML / string ...
0
votes
1answer
47 views

Formatting an inventory of parts

There is a text file formatted this way. 51689299 4719 Medium Azure Riding Cycle 51689345 4720c01 Trans-Clear Wheel & Tire Assembly In real ...
2
votes
2answers
149 views

A query on Hibernate database design

I am writing a simple web application where I have a User entity and set of pre-defined questions to be answered by the User. The answers provided by the users for these questions would need to be ...
3
votes
3answers
109 views

Small function for getting character value

I want to extract some values in i-commas(") from lines like this: <P k="9,0,1" vt="191" v="100.99936" z="" /> Example: ...
2
votes
1answer
134 views

Best practice for storing arbitrary form data

I am currently storing form data in an XML format ...
5
votes
3answers
340 views

Proper and elegant way of Building a XML Document

I need to build the following XML document ...
0
votes
1answer
91 views

Reducing number of blank spaces

This program takes blank spaces before some chars like > < />, and if there is more than one blank space in the line, it will reduce to one. ...
2
votes
2answers
166 views

DOM parser implemented from scratch

I have implemented a DOM parser. I would like any comments for optimizing, improving, and making the code coherent to best coding practices. ...
2
votes
1answer
348 views

Conditional assignment in XSLT?

I've written some XSLT where I want to assign values to some variables. Depending on whether or not a condition is met, I want the variable to be populated with a computed value and I want it to have ...
0
votes
0answers
41 views

Selecting nodes how-to

I'm working on a tool to help me work with XML documents easier, and this function is at it's hart of selecting nodes based on arbitrary criteria. I forged it to accept a filter callback, Node to ...