Questions tagged [xml]
Extensible Markup Language (XML) is a structured document format that defines human- and machine-readable encoding rules.
431 questions
6votes
1answer
334views
Simple XML string to user-friendly plain text converter method in Java
I want to write a simple method in Java to convert XML to some user-friendly plain format (like YAML, etc.). Attributes, null, empty or zero values should not be taken into account. Also, documents ...
3votes
2answers
356views
Receive byte string (high speed position output) from FANUC robot, parse and append to dated .xml file
This script just opens a TCP server to listen for real-time position data from a FANUC robot to pass to another sensor software we are using (Luna Terahertz sensor). So far everything is working great,...
0votes
1answer
94views
types.xml XML file merger
A friend of mine and me are running a modded DayZ server. One of the common tasks when adding mods that include new items is to update the server's types.xml file (example). My mate did this by hand ...
2votes
2answers
157views
C# addXmlDefinition method
I have this methods that take in a xml file and add XDeclaration for utf-8. I want to optimize the code because it need to ...
1vote
1answer
545views
Python script to read an XML file and write some information to an Excel file
I'm getting an XML file from an application, want to extract some information from that file and write it to an Excel file. The XML file contains data about vacations. I need data from the last month ...
0votes
1answer
106views
Retrieve data from an XML file in Java
few months back I did a code test for a company and I quickly managed to solve it within 5-10 minutes. But, I got rejected because it wasnt "good enough". What is good enough? they said its ...
1vote
2answers
82views
Parse give CSV of UK phone numbers, filter non-conforming numbers and output XML of correct numbers
This script takes a CSV of numbers and processes them to check to see if the numbers conform to the UK standard 11 digit numbers. Any errors are outputted to a log and the correct numbers sent to an ...
2votes
1answer
149views
Extracting authors and books from XML and inserting them into PostgreSQL
There is a tree of start folder, it's subfolders, their subfolders, etc. In each folder, subfolder, etc. there are the same structured XML files stored. books.xml ...
5votes
1answer
236views
Traverse/transform (xml) tree
I am trying to write a utility for transforming xml trees using single pass and specifying node handlers. I used pugixml prior to this, and the library provides a ...
1vote
1answer
84views
Parsing an XML tree of categories
I have parse function which is parsing tree of categories. I've written it in simplest way possible and now struggling with refactoring it. Every nested loop is doing the same stuff but appending ...
4votes
1answer
1kviews
Translate SOAP response into a CSV using Python
I have this XML from a SOAP call: ...
2votes
0answers
92views
Bot gets data of sitemap, parses it and send message to Telegram channel
UPDATED - 25-12-2021 Summary: Renamed start.py --> bot.py Modified a lot of code in bot.py Modified code in sitemap.py Created init.py Check the update code in the bottom of this question. I have ...
0votes
0answers
1kviews
Extract series of XML elements' values into an array
This code needs to extract data from in XML file. Specifically it needs to iterate over it, looking for a node called CHARGE_CODES that repeats over and over and ...
3votes
1answer
300views
Python script to parse XML file into Json
How are you doing? I have to make a script to parse an xml input file to a json file. I tried to do my best, but it will be nice if you could check it and help me to improve it. The idea is that I don'...
2votes
1answer
130views
Is this a good design for runtime Macro execution?
I am developing a system for runtime macro executions in an automatic test environment. Macros are defined in an xml and are for configuring multiple devices/DUTs for a specific use case. The xml ...