On Tue, 16 Apr 2002, Adam Greene wrote:
> Does anyone know of a good (and free) program that would help one
> create an XML Schema from an XML file.
On the face of it this would seem to be impossible. If you have
fragments like
<data> 1 </data>
<data> 2 </data>
<data> 3 </data>
it appears that the type should be integer (and a small positive
integer at that). But the next bit could be
<data attr='name'> joe </data>
because the type is actually string and the attribute is optional.
It would be possible to write an interactive program that suggests
a schema and then allows you to embellish it, of course.
> I'm still kind of new to all
> these different XML formats (DTD, XML, XSD, WSDL, and the list goes
> on), but I want to use Castor to create classes for loading and saving
> XML and it wants to start with an XSD. Or as a another possibility an
> XML to Java maker / compiler. Does Xerces have one (like Xalan has
> the XSLT compiler)??
--
Jim Dixon [EMAIL PROTECTED] tel +44 117 982 0786 mobile +44 797 373 7881
---------- THAT'S A CHANGE OF ADDRESS: I'm no longer [EMAIL PROTECTED] --------