REXML XML Schema Data Types

S

Sacha Schlegel

--=_wasp.net.au-25939-1069857276-0001-2
Content-Type: text/plain
Content-Transfer-Encoding: quoted-printable

Hi Ruby Friends

Thanks to Sean about REXML it realy does a fine job.

Having to deal with XML Instance Documents I mainyl find myself getting
the value or text of an element or attribute and work (read, compare)
with it. So what I get is a ruby string.

XML Schema provides "lots" of built in data types, such as string, date,
time etc.

Also derived types from string where user can set facets, such as having
white spaces collapsed ("abc def" will be the same as "abc def" for
example).

Are there any attempts to support these a) built in data types and b)
provide means to support derived data types?

I think REXML is not there, yet.

Anyone using libxml binding or similar bindings for XML Schema specific
jobs?

Kind regards.

Sacha

--=20
------------------------------------------------
Sacha Schlegel
------------------------------------------------
4 Warwick Str, 6102 St. James, Perth, Australia
(e-mail address removed) www.schlegel.li
public key: www.schlegel.li/sacha.gpg
------------------------------------------------

--=_wasp.net.au-25939-1069857276-0001-2
Content-Type: application/pgp-signature; name="signature.asc"
Content-Transfer-Encoding: 7bit
Content-Description: This is a digitally signed message part

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.3 (GNU/Linux)

iD8DBQA/xLl6jTNlL0xFfy4RAuP7AJ9YP/qbhMD1E/3VjcTwg1u/kyYzHgCgwYKz
hzD0DdCiYfkp+qtq+8bE0yM=
=rwgA
-----END PGP SIGNATURE-----

--=_wasp.net.au-25939-1069857276-0001-2--
 
J

James Britt

Sacha said:
...
Are there any attempts to support these a) built in data types and b)
provide means to support derived data types?

I beleive Sean is considering (or maybe working on) adding RELAX NG
support. Don't recall offhand about W3C XML Schemas
I think REXML is not there, yet.

Well that depends on where "there" is.

But, yes, an option for using a DTD or schema of some sort would be nice.



James
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads


Members online

No members online now.

Forum statistics

Threads
473,756
Messages
2,569,534
Members
45,007
Latest member
OrderFitnessKetoCapsules

Latest Threads

Top