Re: Why a DTD and not a XML-Schema ?

Pac <[email protected]> Tue, 23 Dec 2003 12:29:58 +0100
Newsgroups gmane.linux.zynot.general
Message-ID <[email protected]>
Le 23/12/03 =E0 18:48, Low Zhen Lin a =E9crit:
Low> -----BEGIN PGP SIGNED MESSAGE-----
Low> Hash: SHA1
Low>=20
Low> Pac wrote:
Low>=20
Low> | isn't it a waste of time to write a specific validator for Xbuild
Low> | if XercesC++ for example already provides this feature ?
Low>=20
Low> Because.... There are fields within the XBuild that do not map to
Low> simple types. Dependencies for instance.


Huuum what exactly will you check ?

Low>=20
Low> | You do not need DOCTYPE declation in your XML document if you use =
a
Low> | XML-Schema
Low>=20
Low> Ah, then how do I say that this document conforms to (or is supposed
Low> to) this schema?

Short example :=20

<book isbn=3D"0836217462"=20
	xmlns=3D"http://example.org/ns/books/"
	xmlns:xsi=3D"http://www.w3.org/2001/XMLSchema-instance"
	xsi:schemaLocation=3D "http://example.org/ns/books/ file:library.xsd">

where library.xsd your schema



Best regards