File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

xml basic doubt

 
aruna sydu
Ranch Hand
Posts: 98
MyEclipse IDE Oracle
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.




 
Anila Mathew
Ranch Hand
Posts: 69
Java
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Aruna,

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.

Thanks,
Anila

 
aruna sydu
Ranch Hand
Posts: 98
MyEclipse IDE Oracle
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Anila,

You cleared my question..
Thanks a lot...
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic