cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From e nio <enio...@yahoo.com>
Subject RE: XML Parsing + SAX
Date Wed, 18 Jun 2003 17:41:59 GMT
  I believe a File object can be converted to a URL, look at the
toURL() method.

--- "Carmona Perez, David" <DPerezCar@fcc.es> wrote:
> Why don't you use a java.io.StringBufferInputStream?
>  
> --------
> David
>  
> -----Mensaje original-----
> De: Brian Delahunty [mailto:bdelahunty@tssg.org]
> Enviado el: miércoles, 18 de junio de 2003 17:11
> Para: cocoon-users@xml.apache.org
> Asunto: XML Parsing + SAX
>  
> Hey,
>  
> I have a String that contains an XML file [not a URL/URI that
> points to an XML file but the actual XML itself].
>  
> I'm tying to use this string in a custom generator to produce
> sa exents. I'm using this code so far:
> 
> XMLReader xmlr = XMLReaderFactory.createXMLReader();
> xmlr.setContentHandler(this.contentHandler);
> xmlr.parse( <don't know what goes here> );
>  
> I can't get parse to work with a String.
>  
> Any ideas?
>  
> Brian
>  
> 


__________________________________
Do you Yahoo!?
SBC Yahoo! DSL - Now only $29.95 per month!
http://sbc.yahoo.com

---------------------------------------------------------------------
To unsubscribe, e-mail: cocoon-users-unsubscribe@xml.apache.org
For additional commands, e-mail: cocoon-users-help@xml.apache.org


Mime
View raw message