Questions tagged [xml]
Extensible Markup Language (XML) is a structured document format that defines human- and machine-readable encoding rules.
436
questions
3
votes
2
answers
307
views
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,...
0
votes
1
answer
82
views
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 ...
1
vote
2
answers
140
views
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 ...
1
vote
1
answer
519
views
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 ...
0
votes
1
answer
99
views
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 ...
1
vote
2
answers
69
views
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 ...
2
votes
1
answer
139
views
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
...
5
votes
1
answer
220
views
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 ...
1
vote
1
answer
76
views
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 ...
4
votes
1
answer
1k
views
Translate SOAP response into a CSV using Python
I have this XML from a SOAP call:
...
2
votes
0
answers
87
views
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 ...
1
vote
0
answers
1k
views
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 ...
3
votes
1
answer
291
views
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'...
2
votes
1
answer
123
views
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 ...
1
vote
0
answers
105
views