Need help for XML file parser

Ritesh
Posts: 1383
Joined: Tue Sep 06, 2016 9:37 am
Location: India
Contact:

Need help for XML file parser

Postby Ritesh » Sun Nov 12, 2017 4:20 pm

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.
Regards,
Ritesh Prajapati

WiFive
Posts: 3529
Joined: Tue Dec 01, 2015 7:35 am

Re: Need help for XML file parser

Postby WiFive » Sun Nov 12, 2017 4:46 pm


Ritesh
Posts: 1383
Joined: Tue Sep 06, 2016 9:37 am
Location: India
Contact:

Re: Need help for XML file parser

Postby Ritesh » Sun Nov 12, 2017 5:28 pm

Thanks for providing Links. I will check and let you know if any issue or need any further help for that.
Regards,
Ritesh Prajapati

Ritesh
Posts: 1383
Joined: Tue Sep 06, 2016 9:37 am
Location: India
Contact:

Re: Need help for XML file parser

Postby Ritesh » Sat Nov 18, 2017 5:06 pm

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?
Regards,
Ritesh Prajapati

Ritesh
Posts: 1383
Joined: Tue Sep 06, 2016 9:37 am
Location: India
Contact:

Re: Need help for XML file parser

Postby Ritesh » Mon Nov 20, 2017 6:24 am

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.
Regards,
Ritesh Prajapati

User avatar
loboris
Posts: 514
Joined: Wed Dec 21, 2016 7:40 pm

Re: Need help for XML file parser

Postby loboris » Mon Nov 20, 2017 9:50 am

XML structure is quite simple, it should be easy to create the xml file 'manually', if you don't need very complex xml.

User avatar
kolban
Posts: 1683
Joined: Mon Nov 16, 2015 4:43 pm
Location: Texas, USA

Re: Need help for XML file parser

Postby kolban » Mon Nov 20, 2017 1:40 pm

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/
Free book on ESP32 available here: https://leanpub.com/kolban-ESP32

Ritesh
Posts: 1383
Joined: Tue Sep 06, 2016 9:37 am
Location: India
Contact:

Re: Need help for XML file parser

Postby Ritesh » Tue Nov 21, 2017 12:20 pm

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.
Regards,
Ritesh Prajapati

Ritesh
Posts: 1383
Joined: Tue Sep 06, 2016 9:37 am
Location: India
Contact:

Re: Need help for XML file parser

Postby Ritesh » 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.
Regards,
Ritesh Prajapati

AjitSingh
Posts: 10
Joined: Sat Jun 25, 2022 11:24 am

Re: Need help for XML file parser

Postby AjitSingh » Thu Jul 28, 2022 7:52 am

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()

Who is online

Users browsing this forum: Baidu [Spider] and 272 guests