steveliles / dsl4xml Goto Github PK
View Code? Open in Web Editor NEWEasy and fast marshalling of XML And JSON to Java objects via a DSL that mirrors the document structure.
License: BSD 3-Clause "New" or "Revised" License
Easy and fast marshalling of XML And JSON to Java objects via a DSL that mirrors the document structure.
License: BSD 3-Clause "New" or "Revised" License
Some information about the license would be appreciated.
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 :)
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,
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.