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

learn more… | top users | synonyms

3
votes
1answer
39 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
38 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
51 views

XSD Schema for optical media

I recently wrote my first XSD Schema: ...
2
votes
1answer
30 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
48 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 ...
0
votes
0answers
48 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
106 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
34 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 ...
0
votes
1answer
57 views

Create Xml to string serializer

I don't want to serialize everything. I created a custom attribute DoNotSerializeAttribute. If some property in info contain ...
3
votes
3answers
82 views

XML parser using PHP

It is just one of the files. I have also tried to write some tests using PHPUnit. Please give me some suggestions to improve my coding-writing skills. The below is the test file for the above file: ...
3
votes
1answer
92 views

Checking if a student ID is present in the database

What I need to do is fetch the XML link using curl then get a student ID and check if the ID is present in the database. If yes, then I need to get other details from another database table. My code ...
8
votes
1answer
107 views

Extending the functionality of lxml.etree

I wrote a class to slightly customize the behavior of lxml.etree.ElementTree and I use it quite extensively. It works great, but there are a few methods that I'm ...
3
votes
1answer
56 views

Python webpage parser

I have a working code, but it has a lot of flaws. The main project is to get a value from a website. I need to complete this action million of times, so i download the webpage returned from the class ...
1
vote
0answers
31 views

JavaFX save method for two files

I am working on a JavaFX application where the user through a series of textfields and dropdown menus has to create some sort of report. The data from the user are written in an xml file, I also ...
2
votes
1answer
70 views

Parsing of XML in Python using minidom, and inserting data into a database

I have some XML that I am parsing in Python and I need to insert the data on the database. This is current implementation of my code that is working. Actual XML: ...
1
vote
1answer
76 views

Shredding XML into an SQL table

I have a few "given" things: An SQL Server 2012 table with certain structure Data provided as XML with certain structure My code has to shred that XML into a ...
4
votes
1answer
62 views

Import data from XML files into data.frame

I have a number of XML files containing data I would like to analyse. Each XML contains data in a format similar to this: ...
1
vote
0answers
139 views

Opening the same CSV file in two different ways in order to transform data in one column and update original CSV using Python

I have the following functions and accompanying script. The purpose of these is is to extract XML data from one CSV column (one XML document for each row), and then transform it into a dictionary ...
1
vote
1answer
37 views

XML editing and merging

I have only started working with XML files and PowerShell. I feel that while there are many ways to accomplish the same thing that I might be doing the following inefficiently. This is all based on ...
1
vote
0answers
70 views

Simple WebView with embedded videos (Youtube, Vimeo Etc…), and some more features

I tried to create a very simple Webview with embedded video's in it, that can change to vertical and not reset to its default when changed to vertical or vice versa, even tho its working just fine I'm ...
5
votes
0answers
64 views

Error Handling for XML parser

I have the following Ruby code, which parses an XML document sax style (it's a very simplified version): ...
5
votes
1answer
59 views

Using LINQ to output SQL data from two tables into XML

I am very new to this. Hope someone could help me suggest how to improve the code. I have two tables where I need to get the SQL data and output it into XML format. I am using LINQ method. Below how ...
-4
votes
1answer
53 views

XmlControl class

I've written this code that connects to a .xml file at a given url, parses it and outputs the values of some specific elements to the console. I want to write reusable and appropriate code ...
-2
votes
1answer
38 views

Gracefully handling xml api that returns error or success responses

I am working with a third party XML api, which can only respond to api calls with a error or success xml response. For example, ...
9
votes
1answer
480 views

Import multiple XML files into Excel

I have adapted a VBA code to import all the XML files I have on a folder into Excel. I have tried to run the code with only two files and it takes about 30 seconds. Several minutes to import less than ...
3
votes
0answers
48 views

Stylishly saving source

Simple tool to save a web page's source. Styled to resemble Sublime Text, given frequent personal use. I took the opportunity to learn and apply an MVC approach, the FXML is generated via Scene ...
8
votes
2answers
988 views

VB.NET code to AES encrypt and decrypt

I wrote this for use internally at work and have never worked with encrypted data before, so can you please critique? It's written in VB.NET which I have decent experience in, just not the encryption ...
1
vote
2answers
138 views

Java Utility that converts warc (Web Archive) files into XML files

I have written a program to perform a task, but I'm guessing it is not optimized. I want to know if there are any ways to improve the effiency and performance of this program. This program reads a ...
2
votes
2answers
93 views

Xml messages processing networkstream [closed]

I'm currently processing xml messages with C#. It is working But I'm not confident that my code is fast enough. There are 3 possible messages I can receive. When I receive one the message an event is ...
1
vote
1answer
74 views

Java XML parsing

I am attempting to create XML forms using user input to populate certain areas that would appear when loaded into a STIG viewer. Right now everything is working enough for me to create this and have ...
1
vote
1answer
27 views

Reading XML files and finding pairs between the files

I read three files and parse a few individual fields from each row of the XML. Using these fields, I find the dictionaries that contain the same keys (ItemK and either SensorK for sensors or PointK ...
3
votes
2answers
99 views

Extracting an XML config file from ZIP file and parsing it

I am currently working with an app that should load various info on a very specific zip file which contains the XML config file, using the DotNetZip library on C#, here's the code: ...
5
votes
3answers
331 views

Fetching, adding, and viewing games

This is a simple application that will eventually manage certain files for video games. For now, I'm only posting code that handles fetching, adding, and viewing games. I'm trying to keep things ...
5
votes
3answers
170 views

Python script to delete sections of text

I've been writing a python script to help me clear up some files that contain outdated code, while also serving as a way to learn python. These files have sections of code surrounded with tags on ...
1
vote
1answer
32 views

WebService --> XML Cache Repository

I'm working on a small application that uses a WebService to get meta-data about television episodes. What I'd like to do is start building out a local cache of the series so that I can reduce the ...
1
vote
1answer
126 views

Deserializing multiple elements from XElement [closed]

I'm serializing multiple elements using this code: ...
5
votes
3answers
609 views

Stock control system

I have programmed this simple Stock Control System using JavaFX for GUI and PostgreSQL for a database. Please go through my code and point out flaws, inefficiencies, and better ways of doing things. ...
0
votes
0answers
18 views

XSLT to recurse web server and build sitemap.xml

Code runs and produces valid sitemaps. Questions in the code comments. ...
0
votes
0answers
29 views

Xml file attributes merge

To merge the attributes of two xml files I have written the following script. It works perfect but I feel like some improvements could be made especially for the part where the 'looping' is done. This ...
7
votes
1answer
771 views

Converting partial XML (Node List) to a String

I have a need to extract a part of XML tree (everything under root) and convert it to a string. (The result string will be later pasted inside ...
2
votes
2answers
82 views

Merging tags in two XML files with same attributes and different content

From time to time I translate some Android apps: the developer sends me an XML file, e.g. ...
14
votes
2answers
201 views

Learning by translating - Follow the Rubberduck - Part 2: Beta

This project is my learning place for a few things: MVP (model view presenter) XML (parsing, editing and leveraging) deeper swing functionality Concerning the XML part I have already recieved a ...
2
votes
2answers
73 views

Encypt XML file with AES and storing on disk

I have written some code to encrypt XML and then store it on the disk. I want to be sure that the encryption code is secure, so here is the code: ...
1
vote
1answer
40 views

XML/HTML batch generator

As part of an exercise I've written some code to generate multiple HTML files based on information stored in a couple of XML files. I'm not really sure how much code you'd need to evaluate my function ...
2
votes
1answer
80 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
384 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. ...
4
votes
1answer
152 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
971 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 ...
4
votes
1answer
209 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 ...