Re: [xml] XML Data Typing with libxml

Date view Thread view Subject view Author view

From: Daniel Veillard (Daniel.Veillard@imag.fr)
Date: Tue Feb 06 2001 - 04:14:09 EST


On Tue, Feb 06, 2001 at 08:57:41AM +0000, Gary Pennington wrote:
> I'm using libxml to manipulate XML documents and I need to add some
> support for data typing and validation. Fairly simple stuff initially,
> e.g. attribute must be numeric, and then some more complex validations,
> e.g. attribute must be numeric and a minumum value of A and a maximum
> value of B.
>
> What's the best approach to take with libxml?
>
> Options under consideration include :-
>
> 1. Roll my own scheme with DTDs.

  bleech, have you looked at cost of DtD support, dead-end, don't
extend on it ...

> 2. SOX

  Didn't looked at it

> 3. XML-DATA

  Didn't looked at it either

> 4 XML Schema

  IMHO the best bet w.r.t. future support in libxml, though I never
got an answer back from
   http://xmlsoft.org/messages/1346.html

  Too bad, I think Schemas will probably be the next piece added
on top of libxml,

> My main criteria for selection are, simplicity and availability.

  Availbility sounds like 0 in the 3 cases. And I'm far more
enthusiast at implementing something which is a standard than
a single vendor pushed proposal.
  However XML Schemas don't sounds like the most simple piece
availble, one thing to look at also would be TREX proposal from
James Clark, though it seems to target more structure validation
than data typing:
  http://www.thaiopensource.com/trex/

Daniel

-- 
Daniel Veillard      | Red Hat Network http://redhat.com/products/network/
veillard@redhat.com  | libxml Gnome XML toolkit  http://xmlsoft.org/
http://veillard.com/ | Rpmfind RPM search engine http://rpmfind.net/
----
Message from the list xml@rpmfind.net
Archived at : http://xmlsoft.org/messages/
to unsubscribe: echo "unsubscribe xml" | mail  majordomo@rpmfind.net


Date view Thread view Subject view Author view

This archive was generated by hypermail 2b29 : Tue Feb 06 2001 - 04:43:39 EST