Hi Jan,
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.
cheers,
Chris
-----Original Message-----
From: Jan Torben Heuer [mailto:
jan.heuer@...]
Sent: Wednesday, August 06, 2008 12:28 PM
To:
muse-user@...
Subject: Element[] to QName to topic?
Hi,
How can I parse topics that are supplied via soap? I want to add them later with NotificationProducer#addTopic(QName);
The xml-code may look like:
<wsbn:Topic
dialect="
http://docs.oasis-open.org/wsn/t-1/TopicExpression/Simple"
xmlns:tsas="
http://www.opengis.net/ses/1.0.0/">
<tsas:Measurements>mytopic</tsas:Measurements>
</wsbn:Topic>
But I'm not sure how else the topic can be provided.
Is there already topic-parsing-code in muse that I can reuse?
Thanks,
Jan
--
Institute for Geoinformatics
jan.heuer@... Robert-Koch-Strasse 26-28
+49 251 83-31960 48151 Münster, Germany
---------------------------------------------------------------------
To unsubscribe, e-mail:
muse-user-unsubscribe@...
For additional commands, e-mail:
muse-user-help@...
---------------------------------------------------------------------
To unsubscribe, e-mail:
muse-user-unsubscribe@...
For additional commands, e-mail:
muse-user-help@...