2011/10/11 Subhodip Biswas <subhodipbis...@gmail.com>: > Hi all, > > I wrote few codes in Jython for reading xmls. Everything was working > fine until one fine day my client asks for a java interoperability. > I dig up the internet and landed up here: > http://jythonpodcast.hostjava.net/jythonbook/en/1.0/JythonAndJavaIntegration.html > This is however is not the problem. The problem is I used > beautifulsoup because of b0rked XML responses. Considering that for > different request there will be different response which in turn(in > beautifulsoup) results in something like ns#:somename (where # is a > number and Some name is a node name). I will be lost with random > combinations every time a different response comes. > > One way of thinking is to generalize the beautifulsoup code(but will > face the problem above) and then use the Java Jython patching. > Another way is to use something else similar to Beautifulsoup (e.g. > JSoup maybe). > > Beautiful soup is powerful and I am helpless. Please help with your > thoughts and ideas.
You can take the BeautifulSoup.py and compile it to .class file and put it in a jar. That should allow you to use it from Java with ease. Anand _______________________________________________ BangPypers mailing list BangPypers@python.org http://mail.python.org/mailman/listinfo/bangpypers