[jdom-interest] b7 namespaces bug... or "feature"? :-)
Jason Hunter
jhunter at acm.org
Fri Sep 7 16:02:06 PDT 2001
This works fine for me (using SAXBuilderDemo) with the latest code in
CVS.
-jh-
David Weller wrote:
>
> ok, here's a simple test I wrote, using Jason/Brett's InAndOut simple example
> (no modifications). When I feed this XML file into it:
>
> <?xml version="1.0" encoding="ISO-8859-1"?>
> <Wiki:Preferences xmlns:Wiki="http://www.lunawiki.org" version="0.1">
> <Wiki:Pattern type="prefix" start="^" levelmarker="" regex="BumpyWord"
> tag="Wiki:Anchor" />
> </Wiki:Preferences>
>
>
> I get these results:
>
> <?xml version="1.0" encoding="UTF-8"?>
> <Wiki:Preferences xmlns:Wiki="http://www.lunawiki.org" version="0.1">
> <Wiki:Pattern start="^" levelmarker="" regex="BumpyWord" tag="Wiki:Anchor"
> />
> </Wiki:Preferences>
>
> Notice that the first attribute of the element has disappeared. This happens
> regardless of which attribute is first.
>
> Removing the namespace reference and colons yields:
> <?xml version="1.0" encoding="UTF-8"?>
> <WikiPreferences>
> <WikiPattern type="prefix" start="^" levelmarker="" regex="BumpyWord"
> tag="Wiki:Anchor" />
> </WikiPreferences>
>
> So, as the subject says, is this a bug or a feature (or, in the "most likely"
> scenario... programmer error :-) ?
>
> __________________________________________________
> Do You Yahoo!?
> Get email alerts & NEW webcam video instant messaging with Yahoo! Messenger
> http://im.yahoo.com
> _______________________________________________
> To control your jdom-interest membership:
> http://lists.denveronline.net/mailman/options/jdom-interest/youraddr@yourhost.com
More information about the jdom-interest
mailing list