OK, I extracted the contents of the jar files into folders under C:\jdk1.3.1_08\lib\ext and it compiled. To run I also had to unpack xercesImpl.jar to resolve a run time error. Thanks for the help.
I just shifted the files as Pete suggested and tried
javac ApplyXPath.java
and
javac -classpath .;C:\jdk1.3.1_08\lib\ext ApplyXPath.java
with
CLASSPATH=C:\jdk1.3.1_08
Same result, I'm afraid
I have downloaded xalan-j_2_5_1-bin.zip from http://xml.apache.org/xalan-j/downloads.html
The documentation leads me to believe that this will contain all I need to run the samples - I am particularly interested in ApplyXPath, as this seems to cover all I need (load and parse an XML file, select...
Thanks - the following got what I needed:
String inputline;
BufferedReader in = new BufferedReader(new InputStreamReader(urlcon.getInputStream()));
inputline = in.readLine();
in.close();
urlcon.disconnect();
Pete: Thx for the response - all comments taken on board. The POST now works fine - code is:
try
{
String xml = BuildXML();
byte data [] = xml.getBytes();
URL url = new URL( "http://myhost/XMLserver/default.asp" );
HttpURLConnection urlcon =...
I'm trying to build an XML client which communicates over http with a remote server, using the HttpURLConnection class, but believe that there are problems in the way I am POSTing the data or trying to read the response. The current code is
try {
String xml = BuildXML();
byte data []...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.