Page 1 of 2

Need help for XML file parser

Posted: Sun Nov 12, 2017 4:20 pm
by Ritesh
Hi,

We are using ESP32 IDF 2.1 latest release for my development purpose and we need to store XML file and also parse it.

To store XML file, we are going to use SPIFFS which we have verified before as well.

But, we need xml library or parser code to parse it as per project Requirement.

Please let me know link or informations regarding that if anyone has ported and used with well tested before.

Re: Need help for XML file parser

Posted: Sun Nov 12, 2017 4:46 pm
by WiFive

Re: Need help for XML file parser

Posted: Sun Nov 12, 2017 5:28 pm
by Ritesh
Thanks for providing Links. I will check and let you know if any issue or need any further help for that.

Re: Need help for XML file parser

Posted: Sat Nov 18, 2017 5:06 pm
by Ritesh
Hi,

We have checked libexpat component into ESP32 IDF and found that it is used to parse XML file and its components. So that can be used for XML file parse.

But we have also requirement to create XML file and as well as to update XML file based on Request.

SO, Does anyone has any idea for any other library or external component to do it?

Re: Need help for XML file parser

Posted: Mon Nov 20, 2017 6:24 am
by Ritesh
Hi Espressif System Developers or Loboris,

Does any one has any idea regarding requirement which I have raised in my last comment?

We need to parse as well as create XML file and update it according to request which can not fulfilled using libexpat component.

Please let me know if anyone has any idea or information regarding that so that it will be helpful for us to move ahead into our project.

Re: Need help for XML file parser

Posted: Mon Nov 20, 2017 9:50 am
by loboris
XML structure is quite simple, it should be easy to create the xml file 'manually', if you don't need very complex xml.

Re: Need help for XML file parser

Posted: Mon Nov 20, 2017 1:40 pm
by kolban
A search of the phrase "embedded xml c" resulted in a few hits. This one appears to have both parser and constructor:

http://michaelrsweet.github.io/mxml/

Re: Need help for XML file parser

Posted: Tue Nov 21, 2017 12:20 pm
by Ritesh
loboris wrote:XML structure is quite simple, it should be easy to create the xml file 'manually', if you don't need very complex xml.
Thanks for Reply.

Re: Need help for XML file parser

Posted: Tue Nov 21, 2017 12:21 pm
by Ritesh
kolban wrote:A search of the phrase "embedded xml c" resulted in a few hits. This one appears to have both parser and constructor:

http://michaelrsweet.github.io/mxml/
Thanks for Reply.

Yes. We have started to port mxml library for same and started to work for that.

Re: Need help for XML file parser

Posted: Thu Jul 28, 2022 7:52 am
by AjitSingh
Ritesh wrote:
Tue Nov 21, 2017 12:21 pm
kolban wrote:A search of the phrase "embedded xml c" resulted in a few hits. This one appears to have both parser and constructor:

http://michaelrsweet.github.io/mxml/
Thanks for Reply.

Yes. We have started to port mxml library for same and started to work for that.
how you include the mxml component .i'm using eclipse ide. i'm trying to add this component under a component section.
wrote cmake for it.

Code: Select all

set(COMPONENT_REQUIRES  )
set(COMPONENT_ADD_INCLUDEDIRS )

set(COMPONENT_SRCDIRS mxml-3.3.1
					vcnet
					)
  
set(COMPONENT_NAME ".")

register_component()