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

learn more… | top users | synonyms

1
vote
1answer
29 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
31 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
11 views

Optimize query from xml column

So I have a query like this: ...
2
votes
2answers
329 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
21 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
3 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
44 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
44 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
53 views

XSD Schema for optical media

I recently wrote my first XSD Schema: ...
2
votes
1answer
33 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
52 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
72 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
108 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
37 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
75 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
86 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
99 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
118 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
59 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 ...
2
votes
1answer
87 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
80 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
78 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: ...
2
votes
0answers
145 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
44 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
128 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
68 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
63 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
43 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
789 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
76 views

Stylishly saving source

Simple tool to save a web page's source. A result of trying to learn and apply an MVC approach. The FXML is generated via Scene Builder, but included for completion. I welcome any general feedback on ...
9
votes
2answers
1k 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
151 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
100 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
90 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
119 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
335 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
236 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
33 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
165 views

Deserializing multiple elements from XElement [closed]

I'm serializing multiple elements using this code: ...
5
votes
3answers
676 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
21 views

XSLT to recurse web server and build sitemap.xml

Code runs and produces valid sitemaps. Questions in the code comments. ...
0
votes
0answers
36 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
1k 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
118 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
212 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
79 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
49 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 ...