File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes XML and Related Technologies and the fly likes Can someone verify the attached XML schema 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 "Can someone verify the attached XML schema " Watch "Can someone verify the attached XML schema " New topic
Author

Can someone verify the attached XML schema

john sal
Ranch Hand

Joined: Jul 30, 2010
Posts: 92
I recently started working on XML and I am creating an xsd for the following sample xml


I created the following schema for the above XML



Can someone look at it and let me know if this is the right schema for the above sample xml?

I am not sure if I used the "student_list" in a right way.
Grigor Avagyan
Greenhorn

Joined: Oct 26, 2010
Posts: 1
Hello , John
john sal wrote:I recently started working on XML and I am creating an xsd for the following sample xml


At first. Your XML contain some errors:
1. </path> must be </name>
2. </module> must be </age>
3. </coulmnname> must be </Roll_No>

john sal wrote:
I created the following schema for the above XML


Can someone look at it and let me know if this is the right schema for the above sample xml?

I am not sure if I used the "student_list" in a right way.


You use "student_list" in a right way, but correct "rollnumber" to "Roll_No" and everything be good
Or you can use this schema:


Regards , Grigor
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Can someone verify the attached XML schema
 
Similar Threads
tag-value should be unique ...
[schema] Allow an element to have any content
recursive declaration of elements in XML Schema
xsd:all element
XML valiadation using schema