Re: xpath...

<[email protected]>
Newsgroups gmane.text.xml.french.tech
Message-ID <020601c6a10b$b5686df0$0201a8c0@JARLIER>
Merci pour le lien je n'avais pas vu. Alors je n'ai plus la 1ere erreur
effectivement. Par contre j'ai toujours la deuxième a ce niveau la :

org.xml.sax.SAXParseException: Content is not allowed in prolog.


DocumentBuilderFactory dbf = DocumentBuilderFactory.newInstance();
try {	
	
	dbf.setValidating(false);
      dbf.setNamespaceAware(false);
	         
	// ** Using factory get an instance of document builder
	DocumentBuilder db = dbf.newDocumentBuilder();
			
	// ** Reader Writer creation from xmlContent
	this.in = new StringReader(xmlContent);
	this.out = new StringWriter();
	        
	// ** Parse using builder to get DOM representation of the XML file
	this.dom = db.parse(new InputSource(this.in));  //PB HERE
	

C'est à cause de mon XML?
Sophie
        

-----Message d'origine-----
De : [email protected] [mailto:[email protected]] De la part
de Eric van der Vlist
Envoyé : jeudi 6 juillet 2006 16:04
À : [email protected]
Objet : [xml-tech] Re: xpath...

Le jeudi 06 juillet 2006 à 15:58 +0200, [email protected] a écrit :
> Merci beaucoup. C'était bien mon problème.
> Et vous n'auriez pas une idée pour mon premier problème?
Il me semble que la réponse de Robin [*] devrait répondre à la
question :) ... N'est ce pas le cas?

[*] http://xmlfr.org/listes/xml-tech/2006/07/0005.html


Cordialement,

Eric van der Vlist

-- 
GPG-PGP: 2A528005
Lisez-moi sur XMLfr.
                       http://xmlfr.org/index/person/eric+van+der+vlist/
------------------------------------------------------------------------
Eric van der Vlist       http://xmlfr.org            http://dyomedea.com
(ISO) RELAX NG   ISBN:0-596-00421-4 http://oreilly.com/catalog/relax
(W3C) XML Schema ISBN:0-596-00252-1 http://oreilly.com/catalog/xmlschema
------------------------------------------------------------------------


-- Attached file included as plaintext by Ecartis --

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2.2 (GNU/Linux)

iD8DBQBErRhKDvn+ZCpSgAURAtN4AJ9jiLsYfDDmeglecwX0DLsG7w2XSQCbBDAP
etYXywAntKc3lJxwZVMpAUI=
=TgHF
-----END PGP SIGNATURE-----


--
Devenez redacteur <XML>fr et contribuez au developpement du
xml francophone (http://xmlfr.org/infos/redacteurs/) !

Liste de diffusion "[email protected]" (http://xmlfr.org).

Cette liste est a votre disposition pour discuter en francais de 
tout sujet technique lie a XML.

Pour resilier votre abonnement, envoyez un message contenant 
la commande "unsubscribe" a [email protected]
(mailto:[email protected]?Subject=unsubscribe)


__________ NOD32 1.1646 (20060706) Information __________

This message was checked by NOD32 antivirus system.
http://www.eset.com
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.