Giter Site home page Giter Site logo

Comments (5)

kskyten avatar kskyten commented on June 10, 2024 2

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.

MusicXML
XSD provides a stricter definition of the MusicXML 3.1 format than the MusicXML Document Type Definition (DTD).

from acuteml.jl.

aminya avatar aminya commented on June 10, 2024 1

@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.

aminya avatar aminya commented on June 10, 2024

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.

el-oso avatar el-oso commented on June 10, 2024

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.

goretkin avatar goretkin commented on June 10, 2024

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

GitHub
Hyperscript: A lightweight DOM representation for Julia - yurivish/Hyperscript.jl

from acuteml.jl.

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.