Hi Jan,

the wsbn:Topic element is the one that you pass in.  It should then get the 
QName from the element fully.  Note that this only helps with simple topic 
expressions not the full expression syntax (which can't return a single QName). 
 FYI Muse doesn't support the full expression syntax (nested namespaces etc).

cheers,
Chris

-----Original Message-----
From: Jan Torben Heuer [mailto:[EMAIL PROTECTED]
Sent: Thursday, August 07, 2008 1:24 PM
To: [email protected]
Subject: Re: Element[] to QName to topic?

On Wednesday 06 August 2008 13:17:27 [EMAIL PROTECTED] wrote:

Hi,

> The XmlUtils.getQName / getQNameFromChild functions can retrieve
> QNames for you.  These search up the path to collect the namespaces
> mentioned by the QNames.  Note these are QNames in the xsd fashion
> i.e. prefix:localName and the prefix -> namespace mapping must be in a parent 
> element.

The method signature is: XmlUtils.getQName(Element) - however the topic is 
parsed as DefferedTextImpl which is a node but not an Element. Did I miss 
something? My topic looks like:

<wsbn:Topic
dialect="http://docs.oasis-open.org/wsn/t-1/TopicExpression/Simple";
xmlns:tsas="http://www.opengis.net/sas/1.0.0/";>
                                tsas:Measurements </wsbn:Topic>

is that correct?

Jan

--
                                Institute for Geoinformatics
[EMAIL PROTECTED]       Robert-Koch-Strasse 26-28
+49 251 83-31960                48151 Münster, Germany

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to