I'm kinda new to xml programming with Java, so bear with me. If I import javax.xml.parsers.*, everything loads fine, but if I try to import javax.xml.transform.* it can't be found. Any ideas? Is there something I need to include in my classpath?
Yup. The javax should be a part of your CLASSPATH. Also the .jar files. If nothing works, try importing only the classes that you need in your program and see if that works. Eg - import javax.xml.transform.TransformerFactory; import javax.xml.transform.Transformer; Cheers! ------------------ Ajith Kallambella M. Sun Certified Programmer for the Java�2 Platform. IBM Certified Developer - XML and Related Technologies, V1.
Open Group Certified Distinguished IT Architect. Open Group Certified Master IT Architect. Sun Certified Architect (SCEA).
Joined: Jan 19, 2001
thanks Ajith, What has me confused is it will load the javax.xml.parsers but not the javax.xml.transform. . .any recommendations?
Hi, Are you sure you are using JAXP1.1. Because JAXP1.0 does not have any transform packages, while it has javax.xml.parsers. See if org.xml.sax.ContentHandler can be included, if you have problems in that as well, then you are surely using JAXP1.0. Bye.