muttley73 / jlibs

Automatically exported from code.google.com/p/jlibs
0 stars 0 forks source link

SAX2Binding - invalid parsing attributes when default namespace is used #9

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Use a default xmlns="http://a9.com/-/spec/opensearch/1.1/" attribute in 
input XML.
2. Use annotation in Binding
@NamespaceContext({
    @Entry(prefix="", uri="http://a9.com/-/spec/opensearch/1.1/")
})
2. Attributes for Url elements are not parsed (values are null).
That's because the generated code is following:
attributes.getValue("http://a9.com/-/spec/opensearch/1.1/", "width")

The working code for "" prefix should be 
attributes.getValue("width")

What is the expected output? What do you see instead?
Attributes are parsed properly.

What version of the product are you using? 
JLibs r935.

Please provide any additional information below.
Please see attached source code. Problem will be more obvious.

Original issue reported on code.google.com by wordrider.net on 29 Oct 2010 at 7:43

Attachments:

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
Just a note - this is a critical issue. It should have high priority.

Original comment by wordrider.net on 29 Oct 2010 at 9:09

GoogleCodeExporter commented 9 years ago
FIXED: R1267

Original comment by santhosh.tekuri@gmail.com on 2 Nov 2010 at 11:10

GoogleCodeExporter commented 9 years ago
Cool. Thanks Santhosh.

Original comment by wordrider.net on 2 Nov 2010 at 11:42