Return-Path: Delivered-To: apmail-db-ddlutils-user-archive@www.apache.org Received: (qmail 77000 invoked from network); 24 Nov 2007 13:42:24 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 24 Nov 2007 13:42:24 -0000 Received: (qmail 4588 invoked by uid 500); 24 Nov 2007 13:42:11 -0000 Delivered-To: apmail-db-ddlutils-user-archive@db.apache.org Received: (qmail 4571 invoked by uid 500); 24 Nov 2007 13:42:11 -0000 Mailing-List: contact ddlutils-user-help@db.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: ddlutils-user@db.apache.org Delivered-To: mailing list ddlutils-user@db.apache.org Received: (qmail 4560 invoked by uid 99); 24 Nov 2007 13:42:11 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 24 Nov 2007 05:42:11 -0800 X-ASF-Spam-Status: No, hits=2.0 required=10.0 tests=HTML_MESSAGE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: local policy) Received: from [66.163.178.150] (HELO web34401.mail.mud.yahoo.com) (66.163.178.150) by apache.org (qpsmtpd/0.29) with SMTP; Sat, 24 Nov 2007 13:42:12 +0000 Received: (qmail 50974 invoked by uid 60001); 24 Nov 2007 13:41:48 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=Received:X-Mailer:Date:From:Subject:To:MIME-Version:Content-Type:Message-ID; b=SQ47ua9jzilhgZd0dQFA4Uvefpyl4ffoaU+2BHF0C6rk0oV2H+/MqPERvpSvc2z1xq5VK4GGux/3C13ixcA/AmKpm6WUz58aLjotfl1m9ufGlr/flkJ4J3ZRxUicPzdZ1fuguOYGAl6JYQCoeiQwaNkU9H0ilVsCkaUwZO9kYZU=; Received: from [82.122.79.206] by web34401.mail.mud.yahoo.com via HTTP; Sat, 24 Nov 2007 05:41:48 PST X-Mailer: YahooMailRC/818.27 YahooMailWebService/0.7.157 Date: Sat, 24 Nov 2007 05:41:48 -0800 (PST) From: Laurent ROCHE Subject: Re : Can not read data file ==> OK To: ddlutils-user@db.apache.org MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="0-1024481956-1195911708=:50845" Message-ID: <615129.50845.qm@web34401.mail.mud.yahoo.com> X-Virus-Checked: Checked by ClamAV on apache.org --0-1024481956-1195911708=:50845 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Hi again,=0A=0AMy mistake: in the code lines=0A String[] xmlFile= s =3D {getXfrDir(fileName) };=0A dataIO.writeDataToDatabase(pla= tform, model, xmlFiles);=0AThe variable fileName did not contain the data x= ml file name but another file name.=0AHence the parser complaining about th= e file format ... I should have known.=0A=0A=0ASorry for the inconvenience.= =0A=0AEnjoyt your weekend ... I will now,=0AL@u=0AThe Computing Froggy=0A= =0A----- Message d'origine ----=0ADe : Laurent ROCHE =0A=C3=80 : ddlutils-user@db.apache.org=0AEnvoy=C3=A9 le : Samedi, 24 No= vembre 2007, 4h40mn 40s=0AObjet : Can not read data file=0A=0AHi,=0A=0ANow = that I can read and load a model, and also export data according to=0A the = model, I can not read the data file.=0AI get the following error:=0A Digest= er.fatalError(1558) | Parse Fatal Error at line 1 column 1:=0A Content is n= ot allowed in prolog.=0Aorg.xml.sax.SAXParseException: Content is not allow= ed in prolog.=0A at=0A com.sun.org.apache.xerces.internal.util.ErrorHand= lerWrapper.createSAXParseException(ErrorHandlerWrapper.java:236)=0A=0ADoes = anyone have any idea of where does this come from ?=0A=0AHere are the lines= reading the data file:=0A Platform platform =3D=0A PlatformFac= tory.createNewPlatformInstance(dataSource);=0A DatabaseDataIO da= taIO =3D new DatabaseDataIO();=0A dataIO.setDetermineSchema(true= );=0A dataIO.setSchemaPattern(XFR_IN_SCHEMA);=0A Data= baseIO reader =3D new DatabaseIO(); =0A reader.setValidateXml(fa= lse);=0A reader.setUseInternalDtd(true);=0A Database = model =3D reader.read(getModelFPN(), XFR_IN_SCHEMA);=0A String[]= xmlFiles =3D {getXfrDir(fileName) };=0A dataIO.writeDataToData= base(platform, model, xmlFiles);=0A=0AI am obviously doing something wrong = ... but I can not see what ! ? !=0A=0A=0AAny help appreciated.=0ACheers,=0A= L@u=0AThe Computing Froggy=0A=0A=0A=0A=0A =0A _________________________= ____________________________________________________ =0ANe gardez plus qu'u= ne seule adresse mail ! Copiez vos mails vers Yahoo!=0A Mail =0A=0A=0A=0A= =0A=0A _______________________________________________________________= ______________ =0ANe gardez plus qu'une seule adresse mail ! Copiez vos mai= ls vers Yahoo! Mail --0-1024481956-1195911708=:50845--