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
54 views

Custom TCP / XML messaging in C++

I am interested in hearing views on this new Module I am adding to an existing system to handle sale items from a 3rd party Software system. This system sends (XML) messages to our system, we need to ...
3
votes
1answer
37 views

Opening an XML File and Returning the XmlDocument

I'm working on my first Windows Forms tool for a project; this is my first time using C# extensively. Right now, my only objective is to be able to open an XML file and have the resulting XML in hand. ...
-3
votes
0answers
22 views

New to XML, not sure why DTD is not allowing XML to validate, keeps asking for a specific type [closed]

I have been stuck on this single attribute for 3 hours and I still have a second case problem, a quiz and an entire C# program to finish by Tuesday. I am working on creating my first DTD and as far as ...
4
votes
0answers
32 views

Android XML parser to parse themes

I used XML to control the theme of an InputMethod for Android. A theme in XML contains the color and the shape of keys. XML file ...
2
votes
2answers
48 views

Parsing an XML file and creating an object with multiple properties from the XML

This question contains some C# code I've written as well as a XML format I have designed. My C# code runs a series of "jobs" by loading the XML file and then calling different SQL stored procedures ...
2
votes
1answer
38 views

Reading XML files from RSS of different websites in PHP

I've created a working XML RSS reader. I wanted to know if it's a good one or not and if it's efficient for the server or not. I run this code every 12 hours or something give or take the amount of ...
3
votes
1answer
69 views

Storing user settings using LINQ to XML

I want to store some user settings into a file, so that the users get the same experience on all machines they're working on. The built-in user.config turned out to ...
2
votes
3answers
204 views

XML serialization helper class

Yesterday was JSON serialization, today is XML serialization. I've taken some of the suggestions from there and made modifications, as well as making other modifications that were not suggested but ...
4
votes
2answers
61 views

XML/HTML Read/Write

Edit 15 August: Many thanks for the two answers thus far! However, because they each address only a part of the solution, I'm going to refrain from marking either as correct for the time being. I am ...
2
votes
1answer
49 views

Retrieving Assembly without DLL

Here is my code to retrieve a class from a different solution (both solutions are in the same folder) using an XML file: ...
2
votes
2answers
41 views

Merging two XMLs together in Python

I have these two XMLs that I want to merge together based on these conditions: If any of the element is more than 7 weeks old, it has to be deleted. If any of the element is newer with the same date ...
3
votes
1answer
131 views

Populate tree from 3 different data sources and show its content

The task is to build a WinForm app which populates a tree from 3 different data sources and shows its content. 1 ComboBox at top - to choose datasource. (File ...
3
votes
1answer
42 views

XSL template for converting XML to JSON

I used saxon v9 to profile an XSL transformation which converts XML to JSON. The profiler tells me that the function which escapes certain characters takes about 70% of the total processing time. The ...
7
votes
2answers
81 views

Parse and write data from/to a xml file

I recently started to learn Python for the purpose of making my life as a network engineer easier when performing repetitive tasks. The script below does parse a huge inventory.xml file I get from a ...
3
votes
1answer
34 views

cURL GET requests recieving XML data

First of all, I would like to know if there is any difference (execution-time) in C between: GET request made by using cURL GET request make by using sockets (BSD sockets) Second, I've done a C ...
4
votes
1answer
74 views

XML parsing in Java using SAX parser

I have started learning XML parsing in Java (currently reading Java & XML by Brett McLaughlin). Here is my first program to parse XML using SAX parser. Please review the code and let me know if ...
7
votes
1answer
53 views

Python XML parsing, extraction and renaming files

I've written some code to: Parse an XML file. Extract some strings. Make copies of the original XML whose names are suffixed with the extracted strings. Please review this. ...
4
votes
2answers
113 views

Wordy LINQ for XML word list

This code works as intended, however, I am sure that there is a way to condense the xmldataLoad method. If someone could maybe explain a better approach than what I ...
17
votes
3answers
185 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 ...
2
votes
1answer
35 views

Pull data from database to generate XML files

I have the following script in Perl that does the following: Prompts user for time in epoch. If user enters '########', the query will look for all reports generated after that date/time. If user ...
1
vote
2answers
51 views

AES-encrypted key store

I am writing a program that needs to retain specific data but that should not be easily readable. I am in no way very skilled in crypto but I wrote this class that takes all of the data in and then ...
7
votes
4answers
179 views

iTunes playlist copier

When you own an Android device and want your iTunes playlist to be copied over onto it, what do you do? What if your playlist hits something in the region of 20GB+ ? Well, I am sure I could've paid ...
0
votes
1answer
48 views

Checking multiple XML in PHP

I am working on a code to see if a video already exists. The problem is that I have to check multiple sections. The code is working but it should not be this big, I think, and it takes a long time to ...
2
votes
0answers
76 views

XML to JTree app needs Model/View/Controller refactoring

I'm developing a JavaSE-1.7 Swing application that displays XML files as a JTree. This will be the base for further work, e.g. filtering nodes. My questions, as a ...
2
votes
2answers
54 views

Generating random XML documents

I'm trying to generate a fresh XML file using Perl XML::Mini::Document. It's working fine, but I don't know whether it's the right way to do it. Performance is the ...
3
votes
1answer
86 views

Parsing large CSV in Perl

I am getting Out of Memory errors when I try to parse through a large CSV file (2.5Gb). My computer has 32Gb of Memory but Perl uses all of it up. The CSV has 2 ...
3
votes
1answer
102 views

XML parsing program in C++

This is my code which works and compiles but I feel it may be non-optimal, especially the tag mapping and use of the if command. It reads two .xml files and finds ...
3
votes
1answer
63 views

Find change in XML and print node

This code has been developed with help on Stack Overflow. It is designed to compare two XML files and print the node for any differences (i.e if a entry appears in A.xml and not B.xml and vice versa). ...
4
votes
2answers
304 views

Checking the difference between old and new XML

I have two xml files, about 500mb each, an old and a new. I want to find out what items have been added or removed in the new.xml compared with the old.xml. I had some help on this code and I'm a bit ...
3
votes
2answers
81 views

Simple medical collection/database about patients visits

I am writing a system for doctors who are regularly visited by patients. The doctor adds each patient's visit to collection/database. The class can save data to an .xml file and restore it. Can you ...
1
vote
1answer
83 views

Python XML - extracting information

I am very new to Python, and also this is my first time trying to parse XML. I am interested in information within str elements. I can identify that information ...
6
votes
1answer
360 views

Android Compass

I have made my first app in Android Studio. I made a compass using a sensor-listener. I would greatly appreciate if someone could review my code (it is very short), and suggest improvements. My ...
4
votes
3answers
589 views

Complex search program

I am working on a fairly complex (at least it feels complex to me at the moment) search program and am looking to possibly increase the performance. Everything works exactly how I want it to, but I'm ...
1
vote
1answer
77 views

Parsing specifically nested XML Tags

I've written a function that works however I'm sure there is a better way. I need to parse specific tags from an xml document (Microsoft Word docx document.xml). Here is the general structure of the ...
2
votes
1answer
64 views

Reading and Converting XML File to Array

I'm using WordPress ( PHP Based Platform ) and I'm trying to read an external XML File, convert it into a usable array, then compare two arrays - one from the xml file and another from an options ...
11
votes
2answers
131 views

HTML/XHTML/XML tokenization

I want to write a library to parse any valid or invalid HTML-like things. First of all, I am trying to build a lexer. Here is what I did; ...
1
vote
0answers
83 views

Class derived from TXmlIniFile to save/read to/from XML

I have created this unit containing a class derived from TXmlIniFile. This class uses the common TCustomInifile methods to write to and read from an XML file. It comes from an idea of Chris Rolliston ...
0
votes
1answer
74 views

Parse and Query XML code optimisation

I have stored in a XML file some Travel packages, each package has a code( the codes are stored in an array = $code). I am using the below code to pull the ...
5
votes
1answer
86 views

Android Compound View Usage

I have 2 buttons for Terms and Conditions in my project, that I need to implement in multiple activities. I created the following class: ...
0
votes
1answer
155 views

XML document parser with XPath

Here is my simple implementation on XML parser for XML which I received from a server response. Also I've tried to use XmlPathDocument but failed to get child ...
8
votes
1answer
111 views

Reading Values From Enviromental Monitor XML Feed

I have written the below code to handle accessing and parsing the data presented in XML format from our server room environmental monitor. The plan is to call this class from a controller/view ...
0
votes
0answers
755 views

Performance increase on Spring integration

I have been running a program to read a file having 6 million rows and validate each line and write the string containing the validation message to an output file. I am using spring integration to ...
4
votes
1answer
148 views

Python prettyXML and prettyHTML functions

After much searching around the web, I couldn't find a single module which did a decent prettyXML or prettyHTML. Because: ...
1
vote
1answer
301 views

Executing URL using Apache HttpClient

I have XML below which is stored as a String in xmlData variable and I need to pass this String to my URL in ...
3
votes
2answers
106 views

Basic XML Parser

A while back, I posted an XML Writer. Today I have finished what I hope to be a solid XML parser that, while not professional, will get the job done. To start, I do use a stack on one part of the ...
10
votes
3answers
1k views

Read/write to XML using LINQ

This will compile, but I'm thinking that this implementation of read/write is very hard coded and would not be easily adapted to larger situations where large XML documents are being processed or if ...
8
votes
2answers
212 views

Strategy Pattern Implementation

I thought I would learn a design pattern today and picked this one. I wrote a simple Android test demo to test the pattern. main.xml ...
7
votes
1answer
481 views

XML tags constants vs hardcoded values

I have to create an XML body for a web service call. I want to use: ...
2
votes
1answer
228 views

Design a row in a listview

I want to design a row of the following style in my Android project: I have the following code for this: ...
1
vote
1answer
104 views

PHP DOM XML Creation

I am currently working on Shopify webhooks which posts XML to the Colorado timber line API. But due to the order protocol of the Colorado timber line API, it is required to modify the XML posted by ...