on 08-23-2007 3:10 PM
Hello,
I want to convert total xml file into string in UDF, i am getting an error. can anybody tell me the solution. what is the wrong in bellow code.
String str =a+b;
String strLine;
StringBuffer sbr=new StringBuffer();
try{
FileInputStream fileInputStream = new FileInputStream(str);
DataInputStream dataInputStream = new DataInputStream(fileInputStream);
BufferedReader bufferedReader = new BufferedReader(new InputStreamReader(dataInputStream));
while ((strLine = bufferedReader.readLine()) != null) {
sbr.append(strLine);
}
}
catch (Exception e){ e.printStackTrace(); }
return sbr.toString();}
San,
Did you check this Michal's blog of converting data into string....?? its done in very easy way...
/people/michal.krawczyk2/blog/2005/11/01/xi-xml-node-into-a-string-with-graphical-mapping
Hope this will help you.
Nilesh
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Whats the error.......if you havent fixed it already.., you should be getting a NPE.
Regards
Ravi Raman
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi San,
Please provide me the Error information and Input parameters you are passing to this as Value or Context or Queue??
Warm Regards,
Vijay
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
hi,
what are you passing to UDF as input?
Regards,
Akshay Jamgaonkar.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
84 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.