Comments (5)
Yes, but you have to define the structure of the XML in Julia first. What I'm looking for is automatically generating this Julia code to parse and generate XML based on it's schema. In MusicXML's case I would take the XML schema from here: https://www.musicxml.com/for-developers/musicxml-xsd/ and automatically generate the AcuteML code.
XSD provides a stricter definition of the MusicXML 3.1 format than the MusicXML Document Type Definition (DTD).
from acuteml.jl.
@kskyten This seems like a very good idea. However, I am not sure how we should approach this.
It is also related to #93.
from acuteml.jl.
You can parse any XML file if you declare its structure using @aml
macro.
See MusicXML.jl for an example of a library that uses AcuteML:
https://github.com/JuliaMusic/MusicXML.jl
from acuteml.jl.
Hmmm... Actually I would also benefit from this functionality. I have some XML Schemas that are generated by other people and would be great to automatically create readers and writers based on those.
from acuteml.jl.
What would the different types enable you to do, as opposed to using a Dict
or NamedTuple
or another single type?
Note for example that Julia's own AST representation for its syntax uses (for non-leaf nodes) the same type Expr
.
Or another example: https://github.com/yurivish/Hyperscript.jl/blob/c780f6dcd95fbf8931c7afc00499a8436075ae6c/src/Hyperscript.jl#L79-L84
Hyperscript: A lightweight DOM representation for Julia - yurivish/Hyperscript.jl
from acuteml.jl.
Related Issues (20)
- Getting custom code for defining methods HOT 1
- Remove setting missing argument properties HOT 1
- Full dom API HOT 2
- Updater bug when default is nothing
- Refactor xmlutils more
- General interface for HTML/XML libararies
- Learn form lit-HTML (polymer project)
- Extractor: ERROR: MethodError: Cannot `convert` an object of type Nothing to an object of type Array{ HOT 5
- Idea: use MacroTools.jl? HOT 4
- Use CompileBot.jl
- Consider using a trait based API instead of macros HOT 3
- TagBot trigger issue HOT 4
- How to write a template type? HOT 5
- Cannot add documentation to each field of a type using `@aml` HOT 4
- dependency version updates
- Table.jl
- Dispatch on the value - No vector function in the backend
- [Parsing] Automatic field creation for the remaining data HOT 1
- Dict data support HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from acuteml.jl.