Question on using Expat.

Michael Liu <[email protected]> Fri, 31 Oct 2008 10:52:31 +0800
Newsgroups gmane.text.xml.expat.general
Message-ID <[email protected]>
 
 
 
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
_______________________________________________
Expat-discuss mailing list
[email protected]
http://mail.libexpat.org/mailman/listinfo/expat-discuss