1 Reply Latest reply on Aug 23, 2019 7:38 AM by DheerajK_81

    How to use a xml files in PSoC6?

    DaGa_4352226

      Hello Community.

       

      I am using the evualtion kit PSoC6 for an project where the PSoC has a peripheral GAP role. For this project, need to work with xml files in order to save some information but I do not know how to do this. I created my xml file and my xsd file for the rules but:

      1) how do I merge this two?

      2) how do I read the xml from my C code?

      3) how do I modify this file after the central device (BLE) sent information?

      4) is there an example?

       

      With Visual studio it is a XMLHelper method but it is something like that with Cypress?

       

      Thanks

      David Caraveo

        • 1. Re: How to use a xml files in PSoC6?
          DheerajK_81

          1) how do I merge this two?

          I didn't quite understand what you mean by merge XML and XSD files. XSD are schema files and XML file can be validated against this schema.

           

          2) how do I read the xml from my C code?

          3) how do I modify this file after the central device (BLE) sent information?

          Cypress doesn't have any library to read the XML, but you can make use of any third party C libraries like Libxml2 library to parse the XML files.

           

          4) is there an example?

          No, do not have any example.

           

          Regards,

          Dheeraj