From: Boris K. <bo...@co...> - 2007-01-18 08:04:40
|
Hi, Paul Tomsic <pt...@gm...> writes: > i'd love to see VTD support XSD's, specifically schema validation, I think there will be problems similar to what one would encounter implementing support for DTD. XML Schema has a number of places where the document is modified, including default attribute and element expansion, value normalization (e.g., removing of white- spaces), etc. Tatu Saloranta <cow...@ya...> writes: > It does not (and probably will not) handle DTDs: > validation is not the problem (it could be > implemented), but entities are, and perhaps things > like attribute defaulting and normalization. This may > be problematic for document-centric approaches, but > usually is not for data-centric (like SOAP messages > etc) =46rom my experience both use things like default attributes and data normalization equally often. Also note that if you are really into speed/space optimization for data- centric applications then the way to go is to parse the data directly into business objects rather than creating a raw representation of XML. Also implementing validation by generating schema-specific validators helps a lot, as shown in this benchmark: http://www.codesynthesis.com/projects/xsdbench/ hth, -boris --=20 Boris Kolpackov Code Synthesis Tools CC http://www.codesynthesis.com Open-Source, Cross-Platform C++ XML Data Binding |