Fork me on GitHub

Home Forums JSweet Discussion What's a good way to handle XML in JSweet?

This topic contains 2 replies, has 2 voices, and was last updated by  Louis Grignon 6 days, 20 hours ago.

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #3403

    kitfox
    Participant

    What would be a good way to read/write DOM structured XML in JSweet? I tried using the Java SDK library, but that doesn’t seem to transpile.

    #3413

    Louis Grignon
    Keymaster

    Hello again kitfox,

    Since JSweet allows you to use any native JS API, you can take a look at how to parse XML using JS, for instance:
    https://www.w3schools.com/xml/xml_parser.asp

    #3414

    Louis Grignon
    Keymaster

    It would interesting to have a full JSweet example though. If you feel like contributing and you want to add your XML sample, please create a pull request to:
    https://github.com/cincheo/jsweet-examples

    Enjoy.
    Bye.

Viewing 3 posts - 1 through 3 (of 3 total)

You must be logged in to reply to this topic.