wood burning stoves 2.0*
The moose likes Web Services and the fly likes xml basic doubt Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Web Services
Bookmark "xml basic doubt" Watch "xml basic doubt" New topic

xml basic doubt

aruna sydu
Ranch Hand

Joined: Jan 21, 2008
Posts: 98

Hi all,

I have a very basic question...please explain...

Whats is the difference between the targetNamespace attribute and the xmlns attribute declared when writing a xml document or and xsd.

Attitude Determines Altitude

Anila Mathew
Ranch Hand

Joined: Jun 16, 2004
Posts: 69


xmlns is an attribute which points to the namespaces of prefixes used in an xml document. It helps the XML parsers to lookup to the acutal location of the XML document which the prefix refers to.

targetNameSpace is used to allocate the XML document to any location outside the default namespace(http://www.w3.org/2001/XMLSchema)

Let me know if this helps.


aruna sydu
Ranch Hand

Joined: Jan 21, 2008
Posts: 98


You cleared my question..
Thanks a lot...
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
subject: xml basic doubt
Similar Threads
Problem with Devakas Final Exam Q on Static Thread methods
An intersting question in XML
WA #1.....word association
session validate is not working in internet explorer
How to change the color of text-decoration:line-through to red instead of black?