Extensible Markup Language (XML) is a structured document format that defines human- and machine-readable encoding rules.
2
votes
1answer
52 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
66 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
45 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
133 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
30 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
24 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
48 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
55 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
52 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
31 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
121 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
36 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
406 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
114 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
79 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
59 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
78 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
325 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
2answers
110 views
4
votes
3answers
123 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
27 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
81 views
Deserializing multiple elements from XElement [closed]
I'm serializing multiple elements using this code:
...
5
votes
3answers
341 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
15 views
XSLT to recurse web server and build sitemap.xml
Code runs and produces valid sitemaps. Questions in the code comments.
...
0
votes
0answers
19 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
336 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
50 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.
...
13
votes
2answers
196 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
59 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
0answers
32 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
73 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
146 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
116 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
413 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
158 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
104 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
664 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
101 views
XML/HTML Read/Write
I am developing a .Net application that involves reading data from XML and writing to HTML. The methods to do these tasks are all in the same class as the data they read/write are properties of ...
2
votes
1answer
57 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
44 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
152 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
113 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
203 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
48 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
222 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
88 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
176 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
212 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
51 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 ...