Questions tagged [dom4j]

dom4j is an open source library for working with XML, XPath and XSLT on the Java platform using the Java Collections Framework and with full support for DOM, SAX and JAXP.

dom4j is an open source library for working with XML, XPath and XSLT on the Java platform using the Java Collections Framework and with full support for DOM, SAX and JAXP.

Features:

  • designed for the Java platform with full support for the Java Collections Framework (Java 2 Collections)
  • full support for JAXP, TrAX, SAX, DOM, and XSLT
  • fully integrated XPath support for easy navigation of XML documents
  • event based proccessing mode to support for massive documents or XML streams based on Java interfaces for flexible plug and play implementations
  • support for XML Schema Data Type support using Kohsuke Kawaguchi's excellent Multi Schema Validator library
323 questions
3
votes
2 answers

Dom4j vs JAXB for reading and updating large and complex XML files

I have an XML file with a stable tree structure and more than 5000 elements. A fraction of it is below: 14042015014606877
ingrid.e
  • 531
  • 2
  • 11
3
votes
2 answers

How to get nodes of only current element in dom4j?

Please help me to solve the following issue in dom4j This is my xml file: first first_element
3
votes
2 answers

Can I query DOM Document with xpath expression from multiple threads safely?

I plan to use dom4j DOM Document as a static cache in an application where multiples threads can query the document. Taking into the account that the document itself will never change, is it safe to query it from multiple threads? I wrote the…
Dan
  • 11,077
  • 20
  • 84
  • 119
3
votes
1 answer

Unwanted Dom4J Namespace

When creating a document with a default namespace using DOM4J, I get the following output on writing to file. bar