But the compiler says there is no org.orbeon.oxf.xml.dom4j package:
Error compiling 'MyProcessor' /Library/jakarta-tomcat-4.1.27/webapps/forms/WEB-INF/resources/test/MyProcessor.java:13: cannot resolve symbol
symbol : class dom4j
location: package xml
import org.orbeon.oxf.xml.dom4j;
Hi Michael,
You should write (looks like the class name is missing in your import):
import org.orbeon.oxf.xml.dom4j.LocationSAXWriter;
LocationSAXWriter extends the dom4j SAXWriter class (in org.dom4j.io). It does not add any method, so you can just refer to the dom4j documentation (http://dom4j.org/apidocs/org/dom4j/io/SAXWriter.html).
Using the LocationSAXWriter ensures that if location information is stored in the DOM (i.e. file, line and column of each element), this information will be exposed to the SAX content handler. If you just create the DOM yourself, you will probably not have any location information and using the SAXWriter will work just as well.
Alex
_______________________________________________ oxf-users mailing list [EMAIL PROTECTED] http://mail.orbeon.com/mailman/listinfo/oxf-users
