On Sat, Dec 8, 2018 at 12:58 PM Oliver Drotbohm <ogie...@pivotal.io> wrote:
>
> If it's about pure XML parsing and tweaking the information and building the 
> model is not required, XmlBeam [0] is a lightweight alternative to map the 
> entire file to a Java object. We use that in the Spring Data release 
> automation. Declare an interface containing accessors backed by XPath 
> expressions, use the API to create instances and read and write data from and 
> to the XML file.
>

I've tried using pure XML parsing to work with pom.xml before and it's
more challenging than it should be. Parent POMs are one issue, but
that's expected. What may not be obvious is that many real world
pom.xml files omit the namespace declarations. This require s lot of
contortions in your code to handle cases both with and without
namespaces.

-- 
Elliotte Rusty Harold
elh...@ibiblio.org

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@maven.apache.org
For additional commands, e-mail: dev-h...@maven.apache.org

Reply via email to