[Expat-discuss] Question on using Expat.

Michael Liu skysoshy at msn.com
Fri Oct 31 03:52:31 CET 2008


 
 
 
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<Attr Attr-name="hello" type="char" value="worlrd"\><Attr Attr-name="hi" type="int" value="0xaa"\> 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


More information about the Expat-discuss mailing list