Coder Social home page Coder Social logo

Comments (4)

renggli avatar renggli commented on August 16, 2024

The described solution (1) would be tricky to implement, but possible from within the XmlBuilder during the building of the tree. Unfortunately I am quite busy right now, so I don't have the time to look into it. However, free to submit a pull-request.

Alternatively (and if you don't want to modify the library) you could write a visitor over the built XML tree that transforms it into an optimised tree. Implementation wise I think this solution would even be simpler, albeit less efficient as the tree needs to be re-traversed and copied.

from dart-xml.

stevenroose avatar stevenroose commented on August 16, 2024

I will try to give it a look this week, time isn't my best friend either.

from dart-xml.

stevenroose avatar stevenroose commented on August 16, 2024

I got both 1 and 2 implemented. However, I want to know how you want users to opt-in or opt-out for the enhancements.

I'll make a PR and ask you there.

from dart-xml.

renggli avatar renggli commented on August 16, 2024

This is fixed with aebf5bd.

from dart-xml.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.