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
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