|
From: James H. <ja...@is...> - 2003-08-13 03:58:25
|
On Tue, Aug 12, 2003 at 10:05:04PM -0500, mamutas wrote: > I got a feeling that James has answered Red Knight's questions, but the > answers did not make to the mailing list. So, I will try to answer > them and James will correct me if I am wrong, ok? *ahem* :-) Sorry, my bad. I've resent it. > 1) Type checking in XML could be enforced via using of XML schemas > instead of DTDs. But I guess that was not meant for 'country-namegroup' link. > This issue could be resolved by using references to an element. > 4) Namespaces could be specified in the DTD or XML header (or again, > in XML schemas). It can be done with DTD's. The problem is that I didn't want to alter the XML *too* much, which precludes strict enough type-checking. But yes, in general Schemas are a powerful alternative to DTD's. Namespaces should be specified in the top-level element you want them to apply to - in this case, the root element. > That is what I remember so far without digging through my memory since > it was about 2 years I worked with XML. > > In my understanding, if we are going to use proper XML for our > datafiles, then we should pick up some open source XML parser. I do not have > preferences whether it will DOM or SAX so far, it all depends on what > memory management we are going to have for those DBs. You're absolutely right. I've used QT's SAX2 implementation so far, but as QT is problematic to use on Windows I'd suggest fixing on Xerxes - http://xml.apache.org/#xerces. > mamutas james. |