> -----Original Message-----
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
> Sent: October 31, 1999 10:49 AM
> To: [EMAIL PROTECTED]
> Subject: [REBOL] Charset population Re:
>
>
>
>
> On Sun, 31 Oct 1999 [EMAIL PROTECTED] wrote:
>
> >
> > Lookin' for help again...
> >
[...]
>
>
> Just in case you didn't know, there already is an XML parser in
> Rebol. :-) (but it's not a validating parser)
I keep hearing people say that there is an XML parser in Rebol,
but I've yet to find one. Validating parsers are pretty rare
anyway, so I'd be happy to have a non-validating parser.
So far in Rebol I've found the tag stuff for composing tags,
and lots of examples of people hand coding parse routines
for HTML, but no XML parser.
>
> >> help parse-xml
> Parses XML code and returns a tree of blocks.
> Arguments:
> code -- XML code to parse (string)
Oh. Okay...so I haven't seen this anywhere. Certainly not in
the lastest dictionary doc. Where did you find it?
>
>
>
> > It feels like there should be an easy way to build a charset,
> and them maybe
> > do arithmetic on it using 'difference'.
> >
> > You know how you can do this...
> >
> > allowable: charset [#"A" - #"Z"]
> >
> > well I really want to be able to something do this:
> >
> > allowable: charset [#00 - #FF]
> >
>
>
> Try this:
>
> >> charset [#"^(00)" - #"^(FF)"]
>
Excellent, thanks.
>
> > Conceptually what I want is:
> >
> > allowable: charset difference ['set of all chars'] [#"&" #"<"]
> >
>
>
> Something like this?
>
> >> difference charset [#"^(00)" - #"^(FF)"] charset [#"&" #"<"]
>
> Or even easier:
>
> >> complement charset [#"&" #"<"]
>
>
>
> /Martin Johannesson, [EMAIL PROTECTED]
>
>
You've been a great help.
Gavin.