[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]
[xml] where can i find a complex example?
- From: storein <storein sina com>
- To: xml gnome org
- Subject: [xml] where can i find a complex example?
- Date: Wed, 15 Jan 2003 21:59:08 +0800
hi everybody ,
I can dispose simple xml file by libxml after I read
http://www.xmlsoft.org/tutorial/index.html
but I don't dispose complex xml file ,such as :
example.xml file
----------------------------------------------------------
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE story SYSTEM "example.dtd">
<story>
<storyinfo>
<author>John Fleck</author>
<datewritten> June 2, 2002</datewritten>
<keyword>example keyword</keyword>
</storyinfo>
<body>
<headline>This is the headline</headline>
<para>This is the body text</para>
</body>
</story>
---------------------------------------------------
example.dtd file
--------------------------------------
<?xml version="1.0" encoding="UTF-8"?>
<!ELEMENT story (storyinfo, body)>
<!ELEMENT storyinfo (author, datewritten, keyword)>
<!ELEMENT author (#PCDATA)>
<!ELEMENT datewritten (#PCDATA)>
<!ELEMENT keyword (#PCDATA)>
<!ELEMENT body (headline, para)>
<!ELEMENT headline (#PCDATA)>
<!ELEMENT para (#PCDATA)>
------------------------------------
i don't know how to use program automatic to parse xml file,
not by struct define ,because I think if there are many xml file
and dtd file ,I will rewrite my program many times .It is not reality .
So I want to find some example for exercising to use libxml ,
can you help me ?
thank you very much
Dupengchao
______________________________________
===================================================================
免费试用新浪15M任你邮 获数码相机、手机大奖 (http://vip.sina.com/sol_mail/promotion/pro_men.html)
新浪二手市场:一元投入,十分惊喜,百分满意 (http://classad.sina.com.cn/2shou/)
每天1部手机!缤纷新年短信专题 (http://sms.sina.com.cn/act/beautyxmas.html)
[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]