Bug 813 : getChild(), getChildren() in XMLElement not properly handling namespaces
Last modified: 2008-06-11 17:19




Status:
RESOLVED
Resolution:
FIXED -
Priority:
P2
Severity:
normal

 

Reporter:
fjen
Assigned To:
fry

Attachment Type Created Size Actions
example showing the bug text/plain 2008-06-10 14:00 974 bytes

Description:   Opened: 2008-06-10 13:59
switch to nanoxml (processing 0139+) seems to break getChildren( String pathToItems ), it
returns 0.

will attach example.

F
Additional Comment #1 From fjen 2008-06-10 14:00
edit]
example showing the bug
Additional Comment #2 From fjen 2008-06-10 14:40
ok. forget it. namespace problem, just had to change the path ...

was:
"channel/item/kuler:themeItem/kuler:themeSwatches/kuler:swatch/kuler:swatchHexColor"

now:
"channel/item/themeItem/themeSwatches/swatch/swatchHexColor"


F
Additional Comment #3 From fjen 2008-06-10 14:45
actually ... it's a bug. i think the comparison inside getChildren() should be against getFullName() which returns the element name including the namespace prefix. this allows for
more detailed "searches" / selects.
Additional Comment #4 From fry 2008-06-11 17:19
k, fixed for 0141.

i'm tempted to remove the namespace handling altogether, since it makes the
API way more confusing, and provides only minimal benefit. but let's
discuss that separately.