Re: [api-dev] problems reading xml file with com.sun.star.xml.dom.DocumentBuilder

2006-09-26 Thread Christoph Jopp
Sorry, it seems to be a platform independent problem. I could reproduce your problem even on the Linux machine. Just had no really 'iso formatted' xml test document first. In the code I sent, the TextInputStream is in fact providing the correct character encoding and it turned out that the

Re: [api-dev] problems reading xml file with com.sun.star.xml.dom.DocumentBuilder

2006-09-25 Thread Christian Andersson
Hmm this is not working for me, I still get a null object from oDB.parse... what system do you test this on? I am running this on windows 2003 server and openoffice 2.0 (I know that there is a way to get build number, but I keep forgetting it) Christoph Jopp wrote: Kjære Christian, for meg

Re: [api-dev] problems reading xml file with com.sun.star.xml.dom.DocumentBuilder

2006-09-25 Thread Christoph Jopp
The system I tested it was a Linux Machine ;-) so it might be true that there is a difference. To check it on a Windows (XP) machine I have to wait until the evening. But what I found in the IDL reference might help: They say they use the character encoding name according to this

Re: [api-dev] problems reading xml file with com.sun.star.xml.dom.DocumentBuilder

2006-09-22 Thread Christian Andersson
thank you, I'll try that at once, and don't worry about the norwegian, I'm not good at it either. Christoph Jopp wrote: Kjære Christian, for meg følgende code virker: oSFA = createUNOService (com.sun.star.ucb.SimpleFileAccess) oInpStream = oSFA.openFileRead(sUrl) oTextInpStream

Re: [api-dev] problems reading xml file with com.sun.star.xml.dom.DocumentBuilder

2006-09-21 Thread Christoph Jopp
Kjære Christian, for meg følgende code virker: oSFA = createUNOService (com.sun.star.ucb.SimpleFileAccess) oInpStream = oSFA.openFileRead(sUrl) oTextInpStream = createUnoService(com.sun.star.io.TextInputStream) oTextInpStream.setInputStream(oInpStream)