I don't think the URLInputSource is designed to handle things like this. It will only fetch the entire document. You are asking an InputSource object to do more work than it promises to do. I think you are stuck with doing the XPath evaluation. You are essentially asking the InputSource to also perform some XPath type of operations "automagically". As any person who has strayed into the vicinity of 59th street around the University of Chicago will tell you "there is no such thing as a free lunch" :-) 
 
Samar Lotia 
-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Tuesday, July 30, 2002 6:28 AM
To: [email protected]
Subject: URLInputSource - What's wrong?

Hi all.
I use the URLInputSource class to get some special part of xml file like this.
URLInputSource("http://...../test.xml#name1") ;
But the URLInputSource class get all document.
I want to get some part of document; element Id is name1.
Please help me.
 
PS>> I use the XPath evaluator to get some part of document.
But I want easy method.
Thanks.
 

Reply via email to