Peter,

Yes, the readInputAsDOM() method returns a W3C DOM object with
namespace information, as long as the upstream document contains
namespaces.

You can also use the readInputAsDOM4J() method. The resulting DOM4J
document is easier to work with. The DOM4J API contains several shortcut
methods, uses the Java Collection API, and is usually more memory
efficient. The DOM4J object also contains location information
(system-id, line, column) for every element. You can access this
information with the getData() method, and casting the resulting
object to a org.orbeon.oxf.xml.dom4j.LocationData.


Regards, Julien

Peter Charles wrote:

Hello,

I am trying to figure out if the DOM Documents created by the
readInputAsDOM method in the Processor API creates Documents that are
namespace aware.  If not can you suggest a path such that DOM documents
passed to processors can be made namespace aware.

Thanks

Peter





_______________________________________________
oxf-users mailing list
[EMAIL PROTECTED]
http://mail.orbeon.com/mailman/listinfo/oxf-users


_______________________________________________
oxf-users mailing list
[EMAIL PROTECTED]
http://mail.orbeon.com/mailman/listinfo/oxf-users

Reply via email to