From Phil at slacker.com Thu Oct 23 20:27:41 2008 From: Phil at slacker.com (Phil Pellouchoud) Date: Thu, 23 Oct 2008 11:27:41 -0700 Subject: [Expat-discuss] Windows Mobile Support. Message-ID: <40AB5A80E5E562409254E65CBACFE2BD02C6E298@BBMAIL.corp.bbi.com> Has anyone compiled expat for Windows Mobile? -phil From skysoshy at msn.com Fri Oct 31 03:52:31 2008 From: skysoshy at msn.com (Michael Liu) Date: Fri, 31 Oct 2008 10:52:31 +0800 Subject: [Expat-discuss] Question on using Expat. Message-ID: Hi all, I am new to XML parser. in my project, I want use a XML to be a config file,get the value of attribute after parse the cfg-XML.And i have no idea about how to use Expat,i had a look at outline.c.It is too sample,just output the element-name and content.It makes me to do lot of work to parse the content to get the value. Are there any way that i can get it with some API of expat?Like this I will gethello= "world";hi = 0xaa Please give me your input or tricks.Thanks a lot in advance. Best RegardsMichael _________________________________________________________________ ?????????????????????????? http://im.live.cn/Share/18.htm From nickmacd at gmail.com Fri Oct 31 06:12:54 2008 From: nickmacd at gmail.com (Nick MacDonald) Date: Fri, 31 Oct 2008 01:12:54 -0400 Subject: [Expat-discuss] Question on using Expat. In-Reply-To: References: Message-ID: eXpat is just a generic XML parser... it will return to your program events that help describe the XML file in the order in which it encounters them. You will need to make those events have meaning to whatever task you have at hand. You might be able to search among the open source code on the net to see if there are any better examples of using eXpat by searching for references to the functions of the eXpat API... Also do some searching among the archives for the mailing list... I posted a simple example file not to long back that might get you a little further along... I'll see if I can dig it out of my own email archive and send it to you directly... 2008/10/30 Michael Liu : > > > > Hi all, I am new to XML parser. in my project, I want use a XML to be a config file,get the value of attribute after parse the cfg-XML.And i have no idea about how to use Expat,i had a look at outline.c.It is too sample,just output the element-name and content.It makes me to do lot of work to parse the content to get the value. Are there any way that i can get it with some API of expat?Like this I will gethello= "world";hi = 0xaa Please give me your input or tricks.Thanks a lot in advance. Best RegardsMichael > _________________________________________________________________ > ?????????????????????????? > http://im.live.cn/Share/18.htm > _______________________________________________ > Expat-discuss mailing list > Expat-discuss at libexpat.org > http://mail.libexpat.org/mailman/listinfo/expat-discuss > -- Nick MacDonald NickMacD at gmail.com From webmaster at hartwork.org Fri Oct 31 22:15:47 2008 From: webmaster at hartwork.org (Sebastian Pipping) Date: Fri, 31 Oct 2008 22:15:47 +0100 Subject: [Expat-discuss] Question on using Expat. In-Reply-To: References: Message-ID: <490B7583.10206@hartwork.org> Maybe try a DOM-based parser, that should be less work for you. Have you had a look at libxml? Sebastian From aleix at member.fsf.org Fri Oct 31 22:46:36 2008 From: aleix at member.fsf.org (=?ISO-8859-1?Q?Aleix_Conchillo_Flaqu=E9?=) Date: Fri, 31 Oct 2008 22:46:36 +0100 Subject: [Expat-discuss] Question on using Expat. In-Reply-To: <490B7583.10206@hartwork.org> References: <490B7583.10206@hartwork.org> Message-ID: <70919CE1-96BD-454C-924D-C750952394B7@member.fsf.org> A bit propagandistic on my side, but you might also want to look at SCEW. Aleix On Oct 31, 2008, at 10:15 PM, Sebastian Pipping wrote: > Maybe try a DOM-based parser, that should be less work for you. > Have you had a look at libxml? >