Hemant KS Sengar

Greenhorn
+ Follow
since Apr 26, 2001
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Hemant KS Sengar

Hi!
I would like to set classpath for xerces and xercesSamples permanently in my Linux box. Any suggetsions would be appreciated.... because I'm fedup of setting $ export CLASSPATH=$CLASSPATH:/usr/..... every time...
Is there any way to set it, in such a way so that all the users of the linux box get it without doing any configuration setting by themselves.
Thanks
Hemant
23 years ago
Hi!
DOM is best suited for :
1)When structurally modifying an XML document
2)When sharing the document in memory with other Applications
3)for applications that operate on the document as a whole
SAX:
1)Dealing with large document that does not fit in memory
2)extracting contents of a specific element
Hope it will help!
Hemant

Originally posted by saradhi74:
hi
sitll Iam confused whether to use DOM or SAX
how to decide which one to be opted and what
criteria shall I have to opt.
Thanking u
Saradhi


Hi!
Try at MSDOS command prompt:
ipconfig
(if you just want to know about your PC's address)
or if it is in some java program try
InetAddress ad = InetAddress.getByName("localhost");
Hemant
[This message has been edited by Hemant KS Sengar (edited April 28, 2001).]
Hi Matt!
Thanks for your prompt reply. Actually I access Internet through Dial-up connection to my college server ...is this the reason(DHCP). Is there any way to get it solved....
Thanks
Hi All!!
I was trying to get response code and response message from the server by writing this very small code... but I dont know where I'm making mistake because it is giving UnknownHostException.
Though for all other methods it is working fine except
getResponseCode() and getResponseMessage() methods.
Code goes here:
-------------------
import java.net.*;
import java.io.*;
import javax.swing.*;
import java.awt.*;
public class SourceViewer {
public static void main(String[] args){

try{
URL u = new URL("http://www.amnesty.org/");
HttpURLConnection uc = (HttpURLConnection) u.openConnection();
int code = uc.getResponseCode();
System.out.println("HTTP 1.x"+code);
}
catch(IOException e){
e.printStackTrace();
System.err.println(e);
}
}
}
-------------
Thanks in advance.........
Hemant