commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 32360] - Default Namespace not handled correctly
Date Mon, 17 Jan 2005 20:03:42 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=32360>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND·
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=32360





------- Additional Comments From dmitri@plotnix.com  2005-01-17 21:03 -------
Richard,

Here's a question for you: Let's say I have a file that looks like this:

<?xml version="1.0" encoding="iso-8859-1"?>
<parent>
  <test xmlns="http://test">
    <child-element />
  </test>
</parent>

How do I access the child-element in this situation.

If I declare
  context.registerNamespace(null, "http://test")

and then try:
  context.getValue("/parent/test/child-element")

I get nothing, because "parent" does not have "http://test" as its namespace.

In other words, as soon as I introduce a mapping for the empty prefix I seem to 
lose the ability to access nodes that really don't have any namespace.  Does 
this make sense?  How should we resolve this conundrum?

Thanks,

- Dmitri


-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org


Mime
View raw message