This week's book giveaway is in the OCMJEA forum.
We're giving away four copies of OCM Java EE 6 Enterprise Architect Exam Guide and have Paul Allen & Joseph Bambara on-line!
See this thread for details.
The moose likes XML and Related Technologies and the fly likes a question about XML schema and XML (newbie) Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCM Java EE 6 Enterprise Architect Exam Guide this week in the OCMJEA forum!
JavaRanch » Java Forums » Engineering » XML and Related Technologies
Bookmark "a question about XML schema and XML (newbie)" Watch "a question about XML schema and XML (newbie)" New topic
Author

a question about XML schema and XML (newbie)

raminaa niilian
Ranch Hand

Joined: Jul 14, 2005
Posts: 551
Hi
Thank you for reading my post.
I am learning XSD and xml from w3cscholl and i can not understand some of it. can you please look at this xml and xsd and answer my questions?



in the above we see both targetNamespace and xmlns, what are they and why they appear in XSD?


Thanks.
Paul Clapham
Bartender

Joined: Oct 14, 2005
Posts: 18541
    
    8

First of all, do you know what namespaces are used for in XML and how they are commonly used? Probably not, most people don't really understand them. So I would suggest you read a tutorial about namespaces. I am not impressed by the w3schools tutorial, they are quite superficial. The namespace tutorial at zvon.org is more thorough.

When you have done that, I found this paper on how to use namespaces in schemas that looks like it goes through how to configure things quite well.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: a question about XML schema and XML (newbie)