how to convert a XML file into XSD format??? can someone say an easy way to do it..

Are you trying to take an XML document and CREATE a Schema that validates the document? If you're looking for a simple solution, many of the good XML IDE have a feature to load an instance document and generate a schema from that document.
Stylus Stuido and XML Spy come to mind. Be warned, the schemas that are generated from these automatically are usually poor schemas. If you don't have one of these IDEs, PM me, I might be able to help.

If you're looking for some kind of transformation to take an XML document and generate a schema file. You're going to need to define all the rules for the transformation in order to do that, but it can be done easily with xslt.

this is a lab sheet what i got in my class.. i have to use visual studio 2008. and i created it. but its hard to understand how it happened when creating into XSD.. if u want i can mail u the lab sheet..

<?xml version="1.0" encoding="utf-8" ?>
<courselist xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="file:///C:Users/Anu/Desktop/university.xsd">
<course id="001">
<title>SPDII</title>
<lecturers>
<lecturer>
<fname>Anuradha</fname>
<lname>Karunasena</lname>
</lecturer>
<lecturer>
<fname>Nishani</fname>
<lname>Ranpatabandi</lname>
</lecturer>
</lecturers>
<optional>false</optional>
</course>
</courselist>
this is the code have to convert

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.