This week's book giveaway is in the OO, Patterns, UML and Refactoring forum.
We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line!
See this thread for details.
The moose likes XML and Related Technologies and the fly likes No target namespace Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

JavaRanch » Java Forums » Engineering » XML and Related Technologies
Bookmark "No target namespace" Watch "No target namespace" New topic

No target namespace

Sudhanshu Mishra
Ranch Hand

Joined: May 28, 2011
Posts: 235

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?


Jaikiran Pai

Joined: Jul 20, 2005
Posts: 10441

See the section named "Target namespace and no target namespace" in this article

[My Blog] [JavaRanch Journal]
g tsuji
Ranch Hand

Joined: Jan 18, 2011
Posts: 591
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.
I’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link:
subject: No target namespace
It's not a secret anymore!