Coder Social home page Coder Social logo

dsl4xml's People

Contributors

ntamas avatar sash0k avatar steveliles avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

dsl4xml's Issues

Custom methods while parsing

Hi,

First of all, thanks a lot for DSL4XML, this is really a great API to parse XML very easily :)

This is great to map an xml file to java objects, but I would like to know if I can make some custom stuff when I am reading a new tag. Basically, can I implement another method when I use the tag method ? I would like to make more than just create a Java Object with the xml file, but, for example, execute some custom methods when I am reading specific attributes.

Thanks in advance :)

How to add attribute to the root tag ?

Hello,

I want use this great API to parse GPX files but I cannot add attribute to the root tag.
For example, a GPX file starts like this :


...

How can I add xlmns, version and creator attributes to the root tag "gpx" ? This code doesn't compile and I can't see another way to integrate the attributes :
SAXDocumentReader reader = mappingOf("gpx", XmlGPX.class).to(tag("metadata", XmlGpxMetadata.class)), attributes("xmlns:xsi", "xmlns:xsd", "version", "creator", "xmlns")...

I hope my request is clear, thank you in advance,

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.