Reputation: 77
We are starting a new data hub project and can freely choose between XML and JSON. What would you prefer?
We are ingesting documents into the data hub from SQL databases and CSV files using Nifi. We use the Quickstart application.
We have XML and JSON know-how. When working with MarkLogic so far, we have often used XML because of the ability to separate domains using namespaces. Would you say that namespaces are an argument for XML?
Upvotes: 0
Views: 90
Reputation: 2236
Namespaces are an argument for XML, though arguably thoughtful naming of JSON properties can avoid the need for namespaces.
When it's a toss up between XML and JSON, I think the decision boils down to whether your developers that will be programming within MarkLogic are more comfortable with JavaScript or XQuery. Most of the time, JavaScript will be the preference, and thus JSON makes sense as the data format.
Upvotes: 3