Jump to content
Changes to the Jaspersoft community edition download ×

Namespace problem in XPath


2005 IR Help

Recommended Posts

By: John Eric Hamacher - badgerduke

Namespace problem in XPath

2004-12-30 07:05

The following XPath expression is defined at my JrXmlDataSource: /A/nsp:B/nsp:C. I receive the following in error (in JasperAssistant):

 

Error: XPath selection failed. Expression: /A/nsp:B/nsp:C

Caused by: Prefix must be resolved to a namespace: nsp

 

Now, the attribute, xmlns:nsp="some:URL", is an attribute of B.

 

<A>

<B xmlns:nsp="some:URL">

<C>

. . .

</C>

</B>

</A>

 

 

B and C appear to have resolved namespaces. Any ideas about the error?

Link to comment
Share on other sites

  • Replies 0
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...