FW: [Jython-users] ERROR : parsing xml in jython

D

Divya Prakash

Hi

But I am unable to parse all the nodes of the tree .....especially the
subtree of the main tree

It displays only the sibling not the subtree


Regards
Divya

-----Original Message-----
From: Matthias Berth [mailto:[email protected]]
Sent: Tuesday, December 19, 2006 3:18 PM
To: Divya Prakash
Subject: Re: [Jython-users] ERROR : parsing xml in jython

Hi,

looks like you have to make an InputSource from the file, like so:


from java.io import File, FileReader, StringReader

textReader = FileReader(File(filename))
inputSource = InputSource(textReader)
dp.parse(inputSource)

Hope this helps

Matthias
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,731
Messages
2,569,432
Members
44,835
Latest member
KetoRushACVBuy

Latest Threads

Top