Questions tagged [xml]
A simple, very flexible text format that stands for eXtensible Markup Language, that can be used to exchange, share, and store data. It is easily parsed by computers, but is also readable by programmers. Use this tag for questions related to topics about using XML.
259 questions
Score of 1
1 answer
139 views
Can DAO parse local files?
We need to retrieve data in the form of entities
We have DAOs that hit a DB
But sometimes we need to parse (local) XMLs to retrieve essentially the same entities
Should we have a separate type for ...
Score of 3
1 answer
301 views
C++: Good approach to handle libxml2 resource management in a wrapper
I try to write a C++ wrapper to a well-known C library, libxml2. In libxml2, an xmlDocPtr represent an XML document and xmlNodePtr represents a node. An xmlDocPtr contains a root xmlNodePtr and every ...
Score of 3
2 answers
1316 views
Get a hash from XML
I need to get the same hash of an xml in any language.
I tried to get the xml's canonical form then get it's hash
But what I experienced was that the canonical is not a "fixed standard". It ...
Score of 2
2 answers
583 views
What is the best way to keep some constant complex data structures in a C++ code?
As implied by the title of the Q, I have a few entities and need to keep them as constant objects in a C++ project. Each entity contains very complex data structures (lists of enums, maps of maps, etc....
Score of -2
1 answer
133 views
Creating a promise based API, from a message based API
I'm building some software that behind the scenes needs to communicate with hardware via a "message" API, over a named pipe.
For example, I can send this message:
<?xml version="1.0&...
Score of 0
1 answer
341 views
Where should schemas be maintained?
When working with big architecture, I experienced high costs when it comes to changes of a data model that is used in multiple applications, servers, databases.
So I thought about designing a server ...
Score of 1
1 answer
770 views
Is it a good practice to have XML document with no-namespace elements in the middle
I have an XML looking like this:
<?xml version="1.0" encoding="utf-8"?>
<n0:OrderConfirmation xmlns:n0="http://company.org/interface/MVSI"
xmlns:ord="...
Score of 1
1 answer
223 views
Java, dealing with XML and JPA Annotated Classes
I use xjc to compile XSD files to Java Classes, and want to edit/extend them to make them persistable through JPA.
I cant figure out what the best "Coupling?" would be and how to organize it,...
Score of -5
1 answer
78 views
How is data stored prior to downloading?
I go to several sites that offer their data in XML, JSON, CSV formats. As shown here,
https://www.space.org/basicspacedata/query/class/boxscore/format/csv, I choose the format. Question is how is ...
Score of 3
4 answers
198 views
More maintainable way for handing a variable XML
The data of my application is retrieved from an XML file. XML file is versioned, but there is a new XML version file very often. The structure of each XML file changes with respect to the other ...
Score of 5
1 answer
916 views
Are legacy C# DataTable/SqlDataAdapters exponentially faster than SqlConnection/SqlCommand and/or LINQ to SQL DataContext.ExecuteCommand calls? [closed]
I can't believe DataTable/SqlDataAdapter massively beat out System.Data.Linq.DataContext.ExecuteCommand and ExecuteNonQuery (tried with both Stored Procedures and command text) and just straight ...
Score of 1
0 answers
86 views
Handle multiple similar structured XMLs in a Java project
We have a case scenario in our project where we are provided with a set of XSDs. These XSDs we converted to Java Pojos with the help of JAXB. After this we were suppose to update few values in the ...
Score of 2
3 answers
2625 views
How to maintain XML/JSON serialization tests?
It is quite common to test JSON / XML producing methods against file-stored expected output (at least in Java world, but probably in other environments, too).
For instance there's a method that ...
Score of 1
3 answers
338 views
Query 30 million HTML documents
I have 30-ish million html documents in a file system. There is no emergency, the files are in a reasonable directory tree, it's not breaking the file system. But I'd like to be able to organize and ...
Score of 1
1 answer
782 views
c# xml import and validation with different document versions without XSD
Context:
I have a case where I need to extend some existing functionality for loading a new version of an xml file into a system (new fields, some mandatory that were not mandatory before, etc). The ...