From: "Volkmann, Mark" Date: 2002-09-30T23:28:43+09:00 Subject: RE: REXML namespace support This message is in MIME format. Since your mail reader does not understand this format, some or all of this message may not be legible. ------_=_NextPart_001_01C2688D.62568530 Content-Type: text/plain; charset="iso-8859-1" > -----Original Message----- > From: Bob Hutchison [mailto:hutch@recursive.ca] > Sent: Monday, September 30, 2002 9:08 AM > To: ruby-talk@ruby-lang.org; Volkmann, Mark > Subject: Re: REXML namespace support > > > On 9/27/02 11:18 AM, "Volkmann, Mark" > wrote: > > > In my case I'm given a string which is a namespace prefix > and I want to > > determine the namespace it is associated with. I don't > have an Element object > > so I can't use the namespace method. ... snip ... > It occurs to me that it is possible that you miss-understand > the requirement > on having an element that somebody else mentioned -- any > element at all will > do (or processing instruction, or comment) *when* *parsing*, > regardless of > its namespace or prefix, and all in-scope prefixes and > namespaces will be > available to you. You are absolutely correct! I figured out that what I was asking for didn't make sense the day after I asked my question. I'm now asking a "context" element for the namespace that goes with a given prefix using the namespace method on the REXML Elmeent class and everything is working fine. *********************************************************************************** WARNING: All e-mail sent to and from this address will be received or otherwise recorded by the A.G. Edwards corporate e-mail system and is subject to archival, monitoring or review by, and/or disclosure to, someone other than the recipient. ************************************************************************************ ------_=_NextPart_001_01C2688D.62568530 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable RE: REXML namespace support

> -----Original Message-----
> From: Bob Hutchison [mailto:hutch@recursive.ca]
> Sent: Monday, September 30, 2002 9:08 AM
> To: ruby-talk@ruby-lang.org; Volkmann, Mark
> Subject: Re: REXML namespace support
>
>
> On 9/27/02 11:18 AM, "Volkmann, Mark"
> <Mark.Volkmann@AGEDWARDS.com> wrote:
>
> > In my case I'm given a string which is a names= pace prefix
> and I want to
> > determine the namespace it is associated with.=   I don't
> have an Element object
> > so I can't use the namespace method.

... snip ...

> It occurs to me that it is possible that you miss-un= derstand
> the requirement
> on having an element that somebody else mentioned -= - any
> element at all will
> do (or processing instruction, or comment) *when* *= parsing*,
> regardless of
> its namespace or prefix, and all in-scope prefixes = and
> namespaces will be
> available to you.

You are absolutely correct!  I figured out that what= I was asking for didn't make sense the day after I asked my question. = ; I'm now asking a "context" element for the namespace that goes = with a given prefix using the namespace method on the REXML Elmeent class a= nd everything is working fine.



***************************************************************************= ********
WARNING: All e-mail sent to and from this address will be received or
otherwise recorded by the A.G. Edwards corporate e-mail system and is
subject to archival, monitoring or review by, and/or disclosure to,
someone other than the recipient.
***************************************************************************= *********
------_=_NextPart_001_01C2688D.62568530--