Hi all,
I got a XML schema and a XSD schema, when i pass for to generate the objets from XSD schema, i got the following error :
C:\castor\Jalil>java org.exolab.castor.builder.SourceGenerator -i modele.xsd -package javaxml
org.xml.sax.SAXException: In document: 'file:///C:/castor/Jalil/modele.xsd'
Parsing Error : Content is not allowed in prolog.
Line : 1
Column : 1
org.xml.sax.SAXException: In document: 'file:///C:/castor/Jalil/modele.xsd'
Parsing Error : Content is not allowed in prolog.
Line : 1
Column : 1
at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
at org.exolab.castor.builder.SourceGenerator.generateSource(SourceGenera
tor.java:518)
at org.exolab.castor.builder.SourceGenerator.generateSource(SourceGenera
tor.java:571)
at org.exolab.castor.builder.SourceGenerator.main(SourceGenerator.java:1
126)
at org.exolab.castor.builder.SourceGenerator.generateSource(SourceGenera
tor.java:518)
at org.exolab.castor.builder.SourceGenerator.generateSource(SourceGenera
tor.java:571)
at org.exolab.castor.builder.SourceGenerator.main(SourceGenerator.java:1
126)
I don't know if it has a problem with my XML or XSD schema, my XML schema is following:
<?xml version="1.0" encoding="iso-8859-1"?>
<?xml-stylesheet type="text/xsl" href=""?>
<mod�le xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="C:\files\modele2.xsd">
<exemple>
<numero_semaine></numero_semaine>
<professeur></professeur>
<difficulte></difficulte>
<nom_fichier></nom_fichier>
<mots_Cl�s></mots_Cl�s>
<titre_exemple></titre_exemple>
<�nonc�>d�finition du probl�me</�nonc�>
<r�solution>
<�tape>
<contenu></contenu>
<expliquer></expliquer>
<action></action>
<objetDirect></objetDirect>
<parametre></parametre>
</�tape>
</r�solution>
<conclusion>la solution de l'exemple</conclusion>
<multimedia>
<media>
<type></type>
<source></source>
</media>
</multimedia>
</exemple>
</mod�le>
Add photos to your e-mail with MSN 8. Get 2 months FREE*. ----------------------------------------------------------- If you wish to unsubscribe from this mailing, send mail to [EMAIL PROTECTED] with a subject of: unsubscribe castor-dev
