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 supportIn 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.
···
-----Original Message-----
On 9/27/02 11:18 AM, “Volkmann, Mark” > Mark.Volkmann@AGEDWARDS.com wrote:
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.