cancel
Showing results for 
Search instead for 
Did you mean: 

PSoC 6 MCU

DaGa_4352226
New Contributor

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

0 Likes
1 Solution
DheerajK_81
Moderator
Moderator

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

View solution in original post

0 Likes
1 Reply
DheerajK_81
Moderator
Moderator

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

View solution in original post

0 Likes
Top labels