以文本方式查看主题

-  计算机科学论坛  (http://bbs.xml.org.cn/index.asp)
--  『 XQuery/XLink/XPointer/ 』  (http://bbs.xml.org.cn/list.asp?boardid=14)
----  用Expat库写最最最基本的parser?????  (http://bbs.xml.org.cn/dispbbs.asp?boardid=14&rootid=&id=9441)


--  作者:星星
--  发布时间:8/19/2004 9:52:00 AM

--  用Expat库写最最最基本的parser?????
各位师兄师姐,帮帮忙拉。马上要交作业了,可我一点头绪都没有。

要用expat-1.95.6库写一个最最基本的parser,所谓最基本就是只处理对元素或属性的查找,比如说:对形如“/A/B/C”或者“//A”或者“/[@a]”等情况的查找。

有谁能帮帮忙写一下这个代码吗?我在线等啊。。。


--  作者:星星
--  发布时间:8/19/2004 8:22:00 PM

--  
怎么没有人帮忙啊?!!!
急啊。。。请给位一定要出手相助啊1!!!
--  作者:ray
--  发布时间:8/20/2004 11:38:00 AM

--  
具体点...
--  作者:星星
--  发布时间:8/20/2004 12:22:00 PM

--  
sorry , i can't type in Chinese now.

the task is to write a single c file,say spath.c and use this file to parse the xml file according to the xquery like "/name/first".

the spath.c doesn't  need to sovle the xquery including the "[conditions]"
that is to say the xquery only includes "//","/" and "@". the formats are like "/name/first","//name/first","/name//first" and "/@[name]",etc.

in a word, the spath.c only needs to get the element and attributes after parsing the xml file.

wait....................


--  作者:星星
--  发布时间:8/21/2004 10:52:00 AM

--  
55555555555,没人帮忙。。。。。。。。。。。

--  作者:林中雨
--  发布时间:4/27/2005 4:07:00 AM

--  
我也正在学呢,有没有人帮我呢!
或者有相关的资料呢?
联系我,yelinxia@hotmail.com
W 3 C h i n a ( since 2003 ) 旗 下 站 点
苏ICP备05006046号《全国人大常委会关于维护互联网安全的决定》《计算机信息网络国际联网安全保护管理办法》
406.250ms