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
1vote
1answer
96views
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 ...
2votes
1answer
167views
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 ...
3votes
2answers
799views
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 ...
2votes
2answers
509views
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....
-2votes
1answer
106views
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&...
0votes
1answer
242views
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 ...
1vote
1answer
550views
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="...
1vote
1answer
137views
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,...
-5votes
1answer
51views
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 ...
3votes
4answers
154views
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 ...
5votes
1answer
767views
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 ...
1vote
0answers
66views
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 ...
2votes
3answers
3kviews
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 ...
1vote
3answers
292views
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 ...
1vote
1answer
723views
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 ...