[ https://issues.apache.org/jira/browse/FELIX-2685?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Guillaume Sauthier closed FELIX-2685. ------------------------------------- It's OK for me. Thanks > Wrong Element name when XML namespace contains ':' > -------------------------------------------------- > > Key: FELIX-2685 > URL: https://issues.apache.org/jira/browse/FELIX-2685 > Project: Felix > Issue Type: Bug > Components: iPOJO > Affects Versions: iPOJO-1.6.0 > Reporter: Guillaume Sauthier > Assignee: Clement Escoffier > Fix For: iPOJO-1.8.0 > > > Here here my metadata.xml > {noformat} > <session name="session" > type="stateful" > base="my-super-base" > xmlns="http://jasmine.ow2.org/rules/1.0.0" /> > {noformat} > Notice that the XML namespace is "http://jasmine.ow2.org/rules/1.0.0". > When I parse the Element/Attribute structure generated from this XML, i > cannot access my "configuration" element. > An Element.toString() gives the fiollowing result: > {noformat} > //jasmine.ow2.org/rules/1.0.0:knowledge-base name="my-super-base" > //jasmine.ow2.org/rules/1.0.0:configuration > //jasmine.ow2.org/rules/1.0.0:property > name="drools.multiThreadEvaluation" value="true" > //jasmine.ow2.org/rules/1.0.0:property > name="drools.eventProcessingMode" value="stream" > {noformat} > Element name is "//jasmine.ow2.org/rules/1.0.0:configuration", not only > "configuration" :'( > The problem is probably due to a bug in > ManifestMetadataParser.parseElements(String), where we considere that the > namespace stops at the first ':' character. > The easiest solution will probably to gather the composite element name > (namespace+name) completely, and then get the index of the last ':', then > split the string. > WDYT ? -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.