Re: Issues with WbxmlParser.java in KXML2 rel. 2.1.8

Stefan Haustein <[email protected]> Sun, 19 Oct 2003 22:58:27 +0200
Newsgroups gmane.comp.java.enhydra.kxml
Organization University of Dortmund
Message-ID <[email protected]>
Eric Vuillermet wrote:

> I am using the WbxmlParser class in KXML2 2.1.8 and wasn't able to 
> "roundtrip" my xml to wbxml and back. I found a few issues with the 
> class that pushed me to debug it and figured out enough of those issues 
> to make the parser work for the project I am working on.
> 
> I am not sure if this is the right forum to post these changes, but I am 
> outputting the changed class for anybody who is experiencing the same 
> problems with this class (look for "EV>>>" comments).

Eric,

thanks a lot for your help!

Actually, most of the issues were already fixed in the version available 
via public CVS, but there was no new release yet because I still have a 
bunch of changes from Bogdan Onoi I still need to apply...

> It'd be nice if the author of the class could look at those changes and 
> let everyone know if they are correct or not. One of the issue got fixed 
> by uncommented code that worked perfectly, so I am curious to know why 
> was this code commented in the first place !

The commented code was made obsolete by the adjustNsp() method. Can you 
provide any hint how to reproduce the problem, perhaps an xml fragment I 
can feed to the roundtrip so I can figure out what's going wrong with that?

I have added a Wbxml rountdtrip example to the version available in CVS:

http://cvs.sourceforge.net/viewcvs.py/kxml/kxml2/samples/WbxmlRoundtrip.java?view=markup

Cheers,
Stefan