Re: What is the logic of storing XML in a Database?
Date: 30 Mar 2007 20:47:33 GMT
On 2007-03-30, Stefan Nobis <snobis_at_gmx.de> wrote:
> "Daniel" <danielaparker_at_gmail.com> writes:
>> In some sense, avoiding having to solve this problem is the entire
>> reason for XML.
> No, XML does in no way address the real problem: documentation and
> semantics. For example the problem Bernard Peek described was not
> really solved by using XML but by documentation and clear
As I've sai before, there is nothing that XML can do that can't be done in other ways. But as we have XML I don't see a lot of point in putting in any work to discover those ways unless we can be sure that the time/resource saved will be more than the cost of researching and developing an alternative.
> XML is no help here, because people are not *forced* to
> define a schema neither to write documentation.
Actually in my case they were. I forced them and I wrote and published the documentation. "XML" is a magic word. It's one of a few technical terms that senior managers recognise, even if they don't understand it. I could get board level support for an initiative to introduce XML standards, I probably couldn't have got that support to use a technology that lacked magic words.
> If you have a XML
> document without schema and documentation or even with (a complex)
> schema but without documentations (so you have no or little ideas
> about semantics) you are just as lost as with every (undocumented)
> binary format.
> XML is no real help here.
That's not completely true. Given an XML file you can reverse-engineer a schema which will document the structure to some extent. With that schema you can feed the XML into analysis tools that will show its structure. You can then take the schema and attempt to refine it. If you get more samples of the XML file you can start to identify possible constraints on data types, formats and values.
-- bap_at_shrdlu.com In search of cognoscentiReceived on Fri Mar 30 2007 - 22:47:33 CEST