How to use a xml files in PSoC6?

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
DaGa_4352226
Level 2
Level 2
10 questions asked 5 replies posted 5 questions asked

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
Moderator
First comment on KBA First comment on blog 5 questions asked

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
Moderator
First comment on KBA First comment on blog 5 questions asked

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

0 Likes