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 Avatar Louis Grignon 6 months, 1 week ago.

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

    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
    Avatar
    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
    Avatar
    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)

The forum ‘JSweet Discussion’ is closed to new topics and replies.