Skip to main content

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.

Filter by
Sorted by
Tagged with
2 votes
1 answer
94 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 ...
Zoltán Várnagy's user avatar
3 votes
2 answers
337 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 ...
gdonega's user avatar
  • 49
2 votes
2 answers
482 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....
TonySalimi's user avatar
-2 votes
1 answer
98 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&...
i.brod's user avatar
  • 125
0 votes
1 answer
143 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 ...
telion's user avatar
  • 61
1 vote
1 answer
439 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="...
рüффп's user avatar
1 vote
1 answer
110 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,...
Oblivial's user avatar
-5 votes
1 answer
51 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 ...
Barry vT's user avatar
  • 101
3 votes
4 answers
148 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 ...
trofinao's user avatar
5 votes
1 answer
601 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 ...
Terry's user avatar
  • 159
1 vote
0 answers
60 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 ...
Sri9911's user avatar
  • 115
2 votes
3 answers
2k 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 ...
Dariusz Mydlarz's user avatar
1 vote
3 answers
291 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 ...
Martin K's user avatar
  • 2,917
1 vote
1 answer
644 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 ...
c-chavez's user avatar
  • 113
3 votes
2 answers
2k views

Clean Architecture and Persistence Annotations

If one wants to comply with the clean architecture principle 100%, they must not annotate the entities in the entities layer with database-specific annotations (like Hibernate, Neo4j, etc.). So, two ...
Shayan's user avatar
  • 199
1 vote
0 answers
315 views

How to handle different XML configurations for different deployments

I am a software developer facing the following problem. Normally, I develop software and put client specific settings in a separate place (config file, database etc.). A new version of the software ...
GxB's user avatar
  • 111
0 votes
1 answer
118 views

Turning complex XML (or content tree) into HTML - How to do it (in Java)?

I have a deep object content tree that I transform into a XML using JAXB and a small self written API on top. But now I want to create a static HTML site that has basically the same content (and ...
trallnag's user avatar
  • 131
0 votes
2 answers
156 views

Modelling 2 composition relationships between 2 XML elements using UML

I want to model an XML schema that has the following composition relationships: A can contain B, and in another case B can contain A. Using a bi-directional composition is not an option here as it is ...
user3621950's user avatar
0 votes
1 answer
48 views

portable hashable string representation of data object

I have a class of (flat) objects that are going to be passed around between three different parties, each possibly running a different software stack. my_object: item: "string_a" money: ...
ShapeOfMatter's user avatar
0 votes
2 answers
226 views

Why not program our video text terminals/terminal emulators to use something JSON or XML on the backend instead of ANSI escape sequences? [closed]

Backstory (You can skip) Awhile back I was developing a console toolkit for displaying debug messages and the like: It gives me colour coding, blinking, underlines, bold, italic, etc. While ...
Anon's user avatar
  • 3,613
0 votes
4 answers
220 views

Is there a mismatch between XSL and OOP? [closed]

context and background: I prefer OOP for the most part and find it, largely, more intuitive -- this is my bias. When I read that functional language x is better than OOP language y I think to myself:...
Thufir's user avatar
  • 224
1 vote
1 answer
68 views

java rule based data collection

I'm building a home project using EWS and SQLite. I have a bunch of really similar (and not so similar) Mails (that hava the usual subject sender body etc fields). These mails contain similar ...
grumpynerdy's user avatar
1 vote
1 answer
165 views

Should I wrap my web service request data in an additional object?

I'm preparing some web services with Spring WS. Due to it being contract-first, I followed its guide and prepared an XSD. So far, my Web Service request XML looks like this (this is SoapUI rendered ...
watery's user avatar
  • 197
1 vote
1 answer
989 views

Parsing huge XML files

our startup is working on an integration for various customers. All of the customers are required to provide their data in one unified way = we chose XML files because of legacy compatibility and ease ...
Jan Richter's user avatar
0 votes
1 answer
140 views

Common Design approach when using serialized class from XSD

I am creating a Parser assembly in C# to parse a XML structure. I have a XML schema defined for the XML files. Using XSD tool I have created Class structures from XML Schema. The XML has various ...
srajeshnkl's user avatar
0 votes
1 answer
163 views

What is the best way to represent data with inheritance?

In my current work, we need to serialize some data and use it later. Our data is in this format: <resources> <style name="Person"> <item name="name">name</item> <...
Vivart's user avatar
  • 369
1 vote
1 answer
138 views

Storing survey data from csv to xml

I've been tasked with taking a sample of survey results that are stored in CSV and to convert them to XML. I'm still fairly new to XML, but have come up with a couple of layouts I could use and was ...
screencut's user avatar
0 votes
2 answers
282 views

XSD Namespaces with W3.org

Apologies if this is a repeat of an older question but I did attempt to find a similar question and didn't have any luck. I'm going through the tutorials at www.w3schools.com for writing XSDs and XMLs....
user7406684's user avatar
3 votes
1 answer
1k views

In what way is an XML database different from (is not specialization of) a graph database?

XML is labelled tree, a special case of graphs. So, why there are separate XML databases and why is it that XML is not stored in graph databases? At a first glance it seems so easy - one should map ...
TomR's user avatar
  • 1,003
-1 votes
1 answer
282 views

How do different file types generally store data?

I am working on a project, for which I want to create my own file format to store large amounts of data. I am trying to decide how that file format should be built to be as efficient as possible. The ...
zomnombom's user avatar
  • 101
-4 votes
4 answers
1k views

What are good ways to parse a large amount of input for a C++ application [closed]

For small command line applications I can get away with simple command line input. ./test input.png output.png But for larger applications that requires a lot of input, simply using command line ...
user3667089's user avatar
-1 votes
1 answer
100 views

Moving XML data into DB [closed]

Is this a "overkill" design to store XML data in a relational database? One point is that these web API REST services can later be used by other applications.
Hasle's user avatar
  • 13
0 votes
3 answers
3k views

What approaches can be used to convert existing JSON structure to existing XML structure?

I am working on a component for an enterprise message queue that consumes a message from a queue and sends it as a text message. The message is picked up by my consumer in JSON format (I do not have ...
Chris Maggiulli's user avatar
1 vote
1 answer
90 views

Should usage examples in XML documentation be explicitly tested?

If usage examples are provided in XML documentation, should those examples be explicitly tested? /// <summary> /// Gets a collection of Foo objects. /// </summary> /// <param name="...
Michael J.'s user avatar
0 votes
3 answers
425 views

Development Of Scriptable Webpage Served As XML And Parsed As HTML

In short, this question is about the cross-browser-compatibility-ness of a way to serve a HTML page as XML. I am interested in serving a web page as XML to be interpreted as HTML for increased CSS ...
Jack G's user avatar
  • 242
0 votes
2 answers
2k views

Tips and tricks in implementing XML or XML schema

First is I'm starting to build a standard XML format/structure for our users. The objectives are: XML that can be used for multiple organisations XML that can be used to map external system data to ...
rpmansion's user avatar
  • 247
4 votes
3 answers
16k views

When to use 'nillable' in XML schemas

The absence of a datum in XML can be expressed either by omitting the element (minOccurs="0" in schema) or by setting it to xsi:nil="true" (nillable=true in schema). Using minOccurs=0 seem ...
JacquesB's user avatar
  • 59.9k
-2 votes
1 answer
521 views

Would learning both XAML UI and XML UI be helpful in improving understanding of XML in general? [closed]

I'm familiar with HTML/CSS, and some non-UI programming using C#/node.js/Java and looking at options for building a simple mobile app. I will definitely use Xamarin, and have to choose between ...
Zach Smith's user avatar
2 votes
1 answer
239 views

How to reduce dependency in communication between servers

Background: My team writers back ends, whose job is to receive input, perform calculation and either return the result to the caller or to another server down the line for additional processing. We ...
Belgi's user avatar
  • 567
1 vote
3 answers
1k views

How to handle custom metadata in XML?

Backstory I have an XML type document (SSML, which is used forText-To-Speech), which will be used to generate audio files when ssh transferred to a remote server. As such, I will need to include ...
Anon's user avatar
  • 3,613
5 votes
1 answer
884 views

Visitor pattern. Operating on the nodes of a tree

I am working with jQuery like elements from the cheerio library to manipulate SVG images. These objects represent XML nodes and have a hierarchical internal structure. I am writing a function (in ...
AdamW's user avatar
  • 69
7 votes
3 answers
21k views

How to parse XML files too big to fit in memory

I'm trying to process XML files that are too big to fit in memory. They range in size anywhere from dozens of megabytes to over 120GB. My initial attempt had me reading the files as plain text, in ...
ObvEng's user avatar
  • 79
4 votes
1 answer
495 views

How to solve the problem with various data formats(XML,JSON,SOAP) for data exchange?

We are supporting data exchange in JSON, XML and SOAP for our customers. The bird view of the data flow would be like this Partner 1 sends request for some data with XML data Partner 2 sends request ...
Vamsidhar's user avatar
  • 169
3 votes
4 answers
1k views

Would you use Byte Arrays or XML if size was not an issue?

In my basic understanding of ByteArrays the benefit is that it is smaller in file size. The down size of a ByteArray is that for any given format you have to know the about the file format to get ...
1.21 gigawatts's user avatar
5 votes
4 answers
8k views

Four-way XML comparison in C#

I have 4 XML files: A, B, C, and D. I want to know if the difference between A and B is the same as the difference between C and D. The XML files are serializations of the same .NET object; one of ...
EJoshuaS - Stand with Ukraine's user avatar
0 votes
3 answers
144 views

What is a good strategy for reading XML like hiearchical text data?

I want to read data in a format like the following using Java. [scenario] id=my_first_scenario next_scenario=null name=_"My First Scenario." map_data="{~add-ons/my_first_campaign/...
Can't Tell's user avatar
  • 1,181
0 votes
1 answer
62 views

Rolling Window Analysis - Referencing Data

I have a project which uses a rolling window to count events from incoming XML files and rules based on the values of the window. For example if 10 events of X happen in an hour - trigger an alert. ...
M.Alnashmi's user avatar
6 votes
3 answers
2k views

Best way to consume very dynamic/inconsistent xml/json

I don't know whether to call the data dynamic or inconsistent. But I need to create profile pages for people generated from xml or json. The challenge is in the data the is returned. The data is ...
PieMaker's user avatar
0 votes
1 answer
123 views

What terms are used to differentiate the two xml forms, "<element></element>" and "<element/>"?

I'm writing a boolean that will toggle between these two forms for writing markup into my strings, but I do not know what I should name my boolean. bool setMarkupForm(bool markupForm); Is not ...
Anon's user avatar
  • 3,613
0 votes
1 answer
139 views

how to reach all nodes in a Tree Structure where end of the tree is unknown

There is a XML link, which provides the children of any parentID given. http://www.browsenodes.com/xml.php?action=BrowseNodeInfo&node=1036592 Then you can run the URL again with a children ID ...
brainHax's user avatar
  • 103

1
2 3 4 5 6