Re: Why a DTD and not a XML-Schema ?
Pac <[email protected]> Tue, 23 Dec 2003 11:45:23 +0100
| Newsgroups | gmane.linux.zynot.general |
|---|---|
| Message-ID | <[email protected]> |
Le 19/12/03 =E0 12:13, Low Zhen Lin a =E9crit: Low> I don't need to write it down - I am not writing a generic validator= -=20 Low> I will be writing, if at all, a XBuild-specific validator. isn't it a waste of time to write a specific validator for Xbuild if XercesC++ for example already provides this feature ? Low>=20 Low>=20 Low> >DTDs have limitations see : Low>=20 Low> I know. But I won't rewrite it to an XML schema, because I don't nee= d=20 Low> to, for now - you can if you want to. Low>=20 Low> >Low> Feel free to write an XML schema on it... I have a feeling tha= t=20 Low> >XML Low> >Low> schemas are less supported by the generic validators. If you c= an=20 Low> >write Low> >Low> a XML schema that can functionally replace all the DTDs - and = fit=20 Low> >into Low> >Low> a <!DOCTYPE> declaration, we might take that instead. Low> > Low> >What do you mean with "fit into <!DOCTYPE>" Low>=20 Low> Near the top of every XML document is a <!DOCTYPE ... PUBLIC "..."=20 Low> "http://..."> statement. My understanding is that only a DTD can fit= in=20 Low> there. Low>=20 You do not need DOCTYPE declation in your XML document if you use a XML-Schema Best regards --=20 R.Pac