users@jaxb.java.net

Whats the easiest way to find the namespace context at the point on which a POJO is instantiated?

From: James.Strachan <james.strachan_at_gmail.com>
Date: Thu, 11 Oct 2007 13:04:38 -0700 (PDT)

I've a simple JAXB POJO for XPath expressions I'm marshalling in Apache Camel
like this...

<xpath>/foo/bar</xpath>

What I'd like to do is inject the XPath POJO with the XML namespaces
available at the <xpath> element so that the namespace prefixes can be used
inside the XPath expression. e.g.

<foo xmlns:x="cheese">
<xpath>/x:foo</xpath>
</foo>

I've had a little look around the JAXB API and I don't see any way to kinda
grab the namespace context; any one got any neat ideas?

Note this is only an issue for parsing.

James
-- 
View this message in context: http://www.nabble.com/Whats-the-easiest-way-to-find-the-namespace-context-at-the-point-on-which-a-POJO-is-instantiated--tf4609619.html#a13163630
Sent from the java.net - jaxb users mailing list archive at Nabble.com.