Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

No target namespace

 
Sudhanshu Mishra
Ranch Hand
Posts: 236
1
Eclipse IDE Fedora Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all,
What happens if i do not give targetNamespace in my schema file?Where do the elements and types declared go,and how do I use this schema to validate a xml file?

Thanks.
 
Jaikiran Pai
Marshal
Pie
Posts: 10447
227
IntelliJ IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
See the section named "Target namespace and no target namespace" in this article
 
g tsuji
Ranch Hand
Posts: 656
3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What happens if i do not give targetNamespace in my schema file?

If the schema document, stood alone, it means it define the vocabulary of a null namespace. But, the document can happen and be intended to be include in some other schema, in that case, the targetNamespace might be inherited by the including schema. But, as a start, think of the former might suffice to proceed the study for the moment. Take thing one at a time.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic