Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

XPATH in binding files...Nightmare  RSS feed

Praful Thakare
Ranch Hand
Posts: 643
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi, I am using xpath in jaxb bindings file and its nightmare...some one kindly help me out..

my xsd has following structure

I can access any child parameter by placing its binding tag in parent binding using .//xs:element , but it works only if the given element is present only once, else I get error results in too many (2) target nodes

example works only is file is single node in parent but not if there is one more file indirectly under n levels of current node.

I assume this is because .// means access any node after current node so I tried ./ but it returns empty node...

any clue?
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!