HISE Logo Forum
    • Categories
    • Register
    • Login

    loadFromXmlFile()

    Scheduled Pinned Locked Moved General Questions
    7 Posts 3 Posters 326 Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • LindonL
      Lindon
      last edited by Lindon

      Has anyone got this to produce anything useful? It seems to only parse and retain, only the last component of the XML ignoring the swaths of XML before it...

      I really really dont want to go and have to code my own XML parser...

      HISE Development for hire.
      www.channelrobot.com

      Christoph HartC 1 Reply Last reply Reply Quote 0
      • Christoph HartC
        Christoph Hart @Lindon
        last edited by

        @Lindon The problem is that is has to convert XML to JSON somehow and there is a fundamental difference between the data structures which makes this not an easy task (XML properties vs. children). I'm struggling with this problem in many other areas (eg. the user preset handler callbacks have to convert between those two but that works only because I'm doing some tricks in the data layout.

        I think I wrote the XML parser just for parsing simple setting files (eg. you can parse the AudioSetting.xml file and read out the values in there).

        LindonL 1 Reply Last reply Reply Quote 0
        • LindonL
          Lindon @Christoph Hart
          last edited by

          @Christoph-Hart --hmm well okay. As I have a very complex set of XML data I guess I'm off to write my own XML parser... bummer.

          HISE Development for hire.
          www.channelrobot.com

          d.healeyD 1 Reply Last reply Reply Quote 0
          • d.healeyD
            d.healey @Lindon
            last edited by

            @Lindon Would it be easier to covert the XML to JSON instead?

            Libre Wave - Freedom respecting instruments and effects
            My Patreon - HISE tutorials
            YouTube Channel - Public HISE tutorials

            LindonL 1 Reply Last reply Reply Quote 0
            • LindonL
              Lindon @d.healey
              last edited by

              @d-healey said in loadFromXmlFile():

              @Lindon Would it be easier to covert the XML to JSON instead?

              ..er thats what this function is failing at isnt it?

              HISE Development for hire.
              www.channelrobot.com

              d.healeyD 1 Reply Last reply Reply Quote 0
              • d.healeyD
                d.healey @Lindon
                last edited by

                @Lindon I mean is it faster to do it manually rather than write an XML parser

                Libre Wave - Freedom respecting instruments and effects
                My Patreon - HISE tutorials
                YouTube Channel - Public HISE tutorials

                Christoph HartC 1 Reply Last reply Reply Quote 0
                • Christoph HartC
                  Christoph Hart @d.healey
                  last edited by

                  Lol just use one of those:

                  Link Preview Image
                  Free Online XML to JSON Converter - FreeFormatter.com

                  This free online tool lets you convert an XML file into a JSON file with your choice of indentation

                  favicon

                  (www.freeformatter.com)

                  1 Reply Last reply Reply Quote 1
                  • First post
                    Last post

                  44

                  Online

                  1.7k

                  Users

                  11.7k

                  Topics

                  101.8k

                  Posts