Help coderanch get a
new server
by contributing to the fundraiser

Pankaj Tandon

Greenhorn
+ Follow
since Mar 13, 2001
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
In last 30 days
0
Forums and Threads

Recent posts by Pankaj Tandon

Thanks for the reply. But that raises another question. I have used DTDs that are declared with DOCTYPE...PUBLIC in XML docs taht are passed between machines on an intranet setup. No access to the sun site. Yet I do not get a validation error. This was if I wanted to start a webapp using weblogic, say. The web.xml file that describes the webapp, has a PUBLIC DTD declaration. So the question is, how is the validation turned off in weblogic. I don't see an explicit switch/property to do this. Could it be that the turning off of the validation (or making it optional) a part of the XML doc itself?
Thanks,
Pankaj
Hey,
I'm familiar with J2EE but what is J2ME. I know I can get info on the sun site but it wold really hep if someone could give me a few lines of intro.
Thanks
23 years ago
Hey,
I'm familiar with J2EE but what is J2ME. I know I can get info on the sun site but it wold really hep if someone could give me a few lines of intro.
Thanks
Hey,
My question relates to DTDs.
The two ways one can specify DTDs are either using the SYSTEM keyword in the <!DOCTYPE ...> element or the PUBLIC keyword.
If a certain XML doc is sent from host A to host B and it has a DOCTYPE with PUBLIC keyword which references a URL like so:
...
<!DOCTYPE web-app PUBLIC
"-//Sun Microsystems, Inc.//DTD Web Application 2.2//EN"
"http://java.sun.com/j2ee/dtds/web-app_2_2.dtd">
.....
How is host B supposed to check the validity of this XML doc. Does it actually go out to the sun site to get the DTD. What if the sun site is down? Also, can I place DTDs on my own servers?
TIA
Pankaj