7
            
            votes
        
            
                
                Accepted
            
        
            
        How do different file types generally store data?
                    The reason there are many different file formats is that there are many different goals for the way data is formatted.  Some of these are in opposition to each other and some are orthogonal to each ...
                
            
       
        
            
                6
            
            votes
        
        
            
        In what way is an XML database different from (is not specialization of) a graph database?
                    The terms XML database and graph database describe the use cases of each kind of database. The XML database is intended to store and search XML documents. Graph databases is intended to represent a ...
                
            
       
        
            
                6
            
            votes
        
        
            
        Why not program our video text terminals/terminal emulators to use something JSON or XML on the backend instead of ANSI escape sequences?
                    Your question is sort of like saying assembly is difficult to work with, so computers should use higher level languages instead. The ANSI format is the right level of abstraction for working with ...
                
            
       
        
            
                5
            
            votes
        
        
            
            
        Clean Architecture and Persistence Annotations
                    You basically answer your own question. 
Strictly following the "clean architecture" dogma leads to "many new classes and boilerplate code (...) this option may do more harm than good." 
If ...
                
            
       
        
            
                5
            
            votes
        
            
                
                Accepted
            
        
            
        How to maintain XML/JSON serialization tests?
                    Tests of the kind you describe are brittle.  As you've correctly pointed out, small changes are likely to break a significant number of the existing tests.  But that is by design; tests like these are ...
                
            
       
        
            
                5
            
            votes
        
        
            
            
        C++: Good approach to handle libxml2 resource management in a wrapper
                    #1 sounds good, your XMLNode just needs to distinguish between the cases where the node is in an XMLDocument, or not (_xmlNode struct has a doc field, I looked it up). When it is, don't free the node ...
                
            
       
        
            
                4
            
            votes
        
            
                
                Accepted
            
        
            
        Why not program our video text terminals/terminal emulators to use something JSON or XML on the backend instead of ANSI escape sequences?
                    There is a simple reason. When you are typing you can only input a character at a time. 
Something that is processing typed text has to deal with what in effect is invalid markup, half a json blob or ...
                
            
       
        
            
                4
            
            votes
        
        
            
        What is the best way to represent data with inheritance?
                    I suggest not using inheritance, but composition, eg:in json:
Here is a "Person"
{
  "name":"name",
  "age":32
}
Here is a "Student", which holds a "Person" instead of becoming a "Person":
{
    "...
                
            
       
        
            
                4
            
            votes
        
            
                
                Accepted
            
        
            
        Storing survey data from csv to xml
                    Which is the better encoding really depends on what you're trying to store. If you're storing the data gathered by the survey, it'll be much different than if you're storing a record of the user input ...
                
            
       
        
            
                4
            
            votes
        
        
            
        Get a hash from XML
                    In both your C# and Java code, you are simply hashing the byte sequence contained in the string variable result. This will only yield the same hash value if both strings are byte for byte identical. ...
                
            
       
        
            
                4
            
            votes
        
            
                
                Accepted
            
        
            
            
        Get a hash from XML
                    Your problem is that in the C# code, prior to canonicalization, you parsed the XML document with a parser that strips whitespace, whereas in Java, you preserved the whitespace. In general whitespace ...
                
            
       
        
            
                3
            
            votes
        
        
            
        Relation and differences between SGML, XML, HTML and XHTML
                    The history of these might enlighten you here. Simply talking about meta-languages, profiles, subsets and instances is a little dry ! I'll try to keep it short and simple.
SGML evolved from GML (...
                
            
       
        
            
                3
            
            votes
        
        
            
        Is there a mismatch between XSL and OOP?
                    There is no mismatch between stateless systems and OOP, any way of writing software is independent from a system trait. You can make a stateless service using an OO language just fine and you will ...
                
            
       
        
            
                3
            
            votes
        
        
        What are good ways to parse a large amount of input for a C++ application
                    When dealing with command-line programs, there are two conventions that together allow us (and the program) to work effectively with a large number of arguments.
The program uses mostly named ...
                
            
       
        
            
                3
            
            votes
        
            
                
                Accepted
            
        
            
        Development Of Scriptable Webpage Served As XML And Parsed As HTML
                    How To Make A XHTML Page
To answer the question, everything about the linked page is off-bat. There is nothing cross-browser about it (though it does work fine in most browsers coincidentally). Expect ...
                
            
       
        
            
                3
            
            votes
        
        
            
        When to use 'nillable' in XML schemas
                    I found a use case!
(See https://stackoverflow.com/a/18984458/2886891 for detailed explanation of the bacground.)
When there is a mandatory element in the XSD schema, such as
<xsd:element name=&...
                
            
       
        
            
                3
            
            votes
        
        
        Why XML is meant to be Software and Hardware independent?
                    Historically, the "normal" way to save structured data was to simply write the in-memory data to disk.
However this caused several issues.
It closely coupled the storage format to the ...
                
            
       
        
            
                3
            
            votes
        
            
                
                Accepted
            
        
        What is the best way to keep some constant complex data structures in a C++ code?
                    If this data is the same for all users, then you might as well have a constant C++ object, and one source file where it is initialised. It's a C++ source file, but an XML file would also be a source ...
                
            
       
        
            
                2
            
            votes
        
        
        XML/HTML: Do we need the element name in closing tags?
                    We don't need it.
Your proposal would work just fine. In fact you can propose to the world your own extension of XML, let's call it XMLight, which is exactly the same except closing tags can be ...
                
            
       
        
            
                2
            
            votes
        
        
        OMG ASTM and weird languages (like Scheme, Ocaml, Haskell)
                    The standard is intended to be extended, as necessary, to support other language concepts (see pages 18-19 of the PDF). It is basically a general purpose abstract syntax tree with provision to add new ...
                
            
       
        
            
                2
            
            votes
        
        
            
        Why use XML in Android?
                    I'm slightly late for the party, but here are my two cents on the matter, and I've been lucky enough to answer this question for someone who wrote a large app with 70+ screens and tons of business ...
                
            
       
        
            
                2
            
            votes
        
        
            
            
        How to parse XML files too big to fit in memory
                    I created a code generator designed to solve this particular problem (an early version was conceived in 2008). Basically each complexType has its Java POJO equivalent and handlers for the particular ...
                
            
       
        
            
                2
            
            votes
        
        
            
        Is there a mismatch between XSL and OOP?
                    Interfaces between interpreters of different languages are always a little painful. XSLT is best thought of as a domain-specific programming language (it's Turing-complete, after all) for transforming ...
                
            
       
        
            
                2
            
            votes
        
        
        Should I wrap my web service request data in an additional object?
                    Having an explicit wrapper allows your code to state its intent, without further knowledge of the endpoint.
Let's compare two versions of the XML:
Wrapped Version:
<soapenv:Envelope ...>
   &...
                
            
       
        
            
                2
            
            votes
        
        
            
        Parsing huge XML files
                    I think you will find that parsing a 1m line XML file potentially exceeds some of the limits on AWS Lambdas
https://docs.aws.amazon.com/lambda/latest/dg/limits.html
I would suggest the following
...
                
            
       
        
            
                2
            
            votes
        
        
            
            
        Common Design approach when using serialized class from XSD
                    AFAIK the generated classes are all partial, so technically you can add own methods to them easily in separate files, which don't get lost when you regenerate the classes again. As an alternative, you ...
                
            
       
        
            
                2
            
            votes
        
        
        Is there a mismatch between XSL and OOP?
                    A transformation is a pure function from input to output, and there's no problem invoking pure functions from any kind of language whether it's imperative, declarative, functional, object-oriented, or ...
                
            
       
        
            
                2
            
            votes
        
            
                
                Accepted
            
        
        c# xml import and validation with different document versions without XSD
                    The problem with different versions of an XML document is that not every change is compatible with previous versions.  Coding around that can be difficult.  There's a few approaches you can take:
Have ...
                
            
       
        
            
                2
            
            votes
        
            
                
                Accepted
            
        
            
        Query 30 million HTML documents
                    I'm assuming:
You want to be able to search through thirty million HTML documents with XPath.
The search itself should be relatively fast (say two seconds).
You are looking at the way you could pre-...
                
            
       
        
            
                2
            
            votes
        
        
            
        Query 30 million HTML documents
                    Indexing options with PostgreSQL
A sequential scan on 30ish million HTML documents should take less than an hour on cheap notebooks this days. Most database servers work with XML. If this performance ...
                
            
       
        Only top scored, non community-wiki answers of a minimum length are eligible
Related Tags
xml × 259java × 38
c# × 25
database × 24
json × 24
design × 19
html × 19
parsing × 16
xslt × 13
c++ × 11
.net × 11
php × 9
object-oriented × 8
javascript × 8
serialization × 8
data × 7
schema × 7
programming-practices × 6
data-structures × 6
asp.net × 6
android × 6
sql-server × 6
configuration × 6
xhtml × 6
database-design × 5
 
         
         
         
         
         
         
         
         
         
         
         
         
        