jianlong chen

Greenhorn
+ Follow
since May 23, 2003
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by jianlong chen

hi,
I have a dom which parsed from a xml file, now I want to transform it xml file ,the following is my source code:
import org.w3c.dom.*;
import javax.xml.transform.*;
import javax.xml.transform.dom.*;
.......
DOMSource doms=new DOMSource(dom);
File f=new File(file);
StreamResult sr=new StreamResult(f);
TransformerFactory tff =TransformerFactory.newInstance();
Transformer tr=tff.newTransformer();
Properties pr=tr.getOutputProperties();
pr.setProperty(OutputKeys.ENCODING,"GB2312");
pr.setProperty(OutputKeys.INDENT,"yes");
tr.setOutputProperties(pr);
tr.transform(doms,sr);
it will throw a exception when I run it:
javax.xml.transform.TransformerFactoryConfigurationError: Provider org.apache.xalan.processor.TransformerFactoryImpl not found
at javax.xml.transform.TransformerFactory.newInstance(Unknown Source)

what's the matter? pleas help me!!
thanks
20 years ago
hi,
I have a dom which parsed from a xml file, now I want to transform it xml file ,the following is my source code:
import org.w3c.dom.*;
import javax.xml.transform.*;
import javax.xml.transform.dom.*;
.......
DOMSource doms=new DOMSource(dom);
File f=new File(file);
StreamResult sr=new StreamResult(f);
TransformerFactory tff =TransformerFactory.newInstance();
Transformer tr=tff.newTransformer();
Properties pr=tr.getOutputProperties();
pr.setProperty(OutputKeys.ENCODING,"GB2312");
pr.setProperty(OutputKeys.INDENT,"yes");
tr.setOutputProperties(pr);
tr.transform(doms,sr);
it will throw a exception when I run it:
javax.xml.transform.TransformerFactoryConfigurationError: Provider org.apache.xalan.processor.TransformerFactoryImpl not found
at javax.xml.transform.TransformerFactory.newInstance(Unknown Source)

what's the matter? pleas help me!!
thanks
hi,
I have a dom which parsed from a xml file, now I want to transform it xml file ,the following is my source code:
import org.w3c.dom.*;
import javax.xml.transform.*;
import javax.xml.transform.dom.*;
.......
DOMSource doms=new DOMSource(dom);
File f=new File(file);
StreamResult sr=new StreamResult(f);
TransformerFactory tff =TransformerFactory.newInstance();
Transformer tr=tff.newTransformer();
Properties pr=tr.getOutputProperties();
pr.setProperty(OutputKeys.ENCODING,"GB2312");
pr.setProperty(OutputKeys.INDENT,"yes");
tr.setOutputProperties(pr);
tr.transform(doms,sr);
it will throw a exception when I run it:
javax.xml.transform.TransformerFactoryConfigurationError: Provider org.apache.xalan.processor.TransformerFactoryImpl not found
at javax.xml.transform.TransformerFactory.newInstance(Unknown Source)

what's the matter? pleas help me!!
thanks
20 years ago