D Busѧϰ£¨¾Å£©£ºÀûÓÃXML¶¨ÒåD BusÖ®SingalÊÕ·¢Àý×Ó
¡¡¡¡ÔÚÇ°ÃæÎÒÃÇѧϰÁËʹÓÃGlibµÄ¸ß³ÌÀ¦°ó·½Ê½µÄmethodµÄÊÕ·¢£¬ÏÖÔÚѧϰsingalµÄÊÕ·¢£¬xmlÀý×ÓÈçÏÂ
<?xml version="1.0" encoding="UTF-8" ?>
<node name="/com/wei/MyObject">
<interface name="com.wei.MyObject.Sample">
<method name="Test">
<arg name="x" type="u" direction="in" />
<arg name="d_ret" type="d" direction="out" />
</method >
<signal name="Hello">
<arg name="w_dialog" type="s" />
</signal>
</interface >
</node >
¡¡¡¡ÔÚÇ°ÃæÎÒÃÇÒѾѧϰÁË·½·¨TestµÄ´¦Àí£¬ÏÖÔÚÔö¼ÓÒ»¸öÐźÅHello£¬ÎªÁËÊǵĴ¦Àí·½Ê½¸üΪ¼ò½à£¬Õâ¸öÐźÅÖ»´øÀ´Ò»¸ö½Ð×öw_dialogµÄ×Ö·û´®¡£Í¬ÑùÎÒÃÇʹÓÃdbus-binding-tool¹¤¾ß·Ö±ðÉú³ÉÁËserverµÄÍ·Îļþwei_server2.hºÍclientµÄÍ·Îļþwei_client2.h¡££¨²Ù×÷·½Ê½£¬Çë²ÎÔÄÉÏÁ½´Îѧϰ£©¡£
ServerµÄ±àд
¡¡¡¡²é¿´wei_server2.h£¬ºÍ֮ǰֻÓÐmethodµÄÏà±È£¬Ö»ÓÐÉÔÉԵĸĶ¯£¬ÔÚ¶ÔÏóµÄinfoÖУ¬Ôö¼ÓÁËHelloµÄ˵Ã÷¡£ÈçÏ£º
... ...
const DBusGObjectInfo dbus_glib_com_wei_object_info = {
0,
dbus_glib_com_wei_methods,
1,
"com.wei.MyObject.Sample\0Test\0S\0x\0I\0u\0d_ret\0O\0F\0N\0d\0\0\0",
"com.wei.MyObject.Sample\0Hello\0\0"
,
"\0"
};
¡¡¡¡ÎÒÃÇÐèÒª¶ÔÏóÖÐÔö¼ÓÏà¹ØµÄ´úÂ룬ͷÎļþcom_wei_myobject2.hÈçÏ£º
#ifndef WEI_COM_WEI_MYOBJECT2_H
#define WEI_COM_WEI_MYOBJECT2_H
typedef struct ComWeiMyObject2 ComWeiMyObject2;
typedef struct ComWeiMyObject2Class ComWeiMyObject2Class;
struct ComWeiMyObject2
{
GObject parent;
};
struct ComWeiMyObject2Class
{
GObjectClass parent;
};
#define COM_WEI_MYOBJECT2_TYPE (com_wei_myobject2_get_type())
GType com_wei_myobject2_get_type(void);
gboolean com_wei_test(ComWeiMyObject2 * obj ,
Ïà¹ØÎĵµ£º
ÔÚʹÓÃGoddadyÖ÷»úʹÓÃ
Google XML
Sitemaps²å¼þµÄʱºò£¬×ÜÌáʾÎÞȨÏÞ£¬¶øʵ¼ÊÉÏÎÒÊÇÁËȨÏ޵ģ¬°Ñ²å¼þÏÂÔص½±¾µØ£¬Ò²ÊÇ¿ÉÒÔÕý³£Éú³ÉsitemapµÄ£¬Ôõô°ì£¿×ÔÈ»²»ÄÜÄѵ¹ÔÛ
Iter¡£
¼ìË÷¶à·½¼ì²é£¬·¢ÏÖÔÚ·þÎñÆ÷ÉÏ£¬¼ì²é·¾¶Ò»ÏîΪsitemap.xml£¬¶øÔÚ±¾µØ£¬¼ì²é·¾¶
Ϊd:\workstation\site\iove.net\sitemap.xml£¬Ò²¾ÍÊÇ˵ ......
Ò» DOM ÒÔÏ´úÂëÓÃDOMÊÇÉú³ÉÒ»¸öXMLÎĵµ
package xml;
import java.io.File;
import java.io.FileNotFoundException;
import java.io.FileOutputStream;
import javax.xml.parsers.DocumentBuilder;
import javax.xml.parsers.DocumentBuilderFactory;
import javax.xml.parsers.ParserConfigurationException;
imp ......
¿ª·¢¹ýAndroidÓ¦ÓõÄͬѧÃǶ¼ÖªµÀ£¬Android¹¤³Ì-res-layout×ÊÔ´Îļþ¼ÐÏ´æ·Å×Å¿ØÖÆview²¼¾ÖµÄxmlÎļþ£¬ÎÒÃÇ¿ÉÒÔͬ¹ýgetViewById(int i)·½·¨£¬´ÓXMLÖй¹Ôìview¼°Æä×ÓÀ࣬ÔÚÕâ¸ö¹ý³Ìµ±ÖУ¬XMLÎļþÖеÄÒ»ÇÐlayoutÊôÐÔÒ²½«±»¸³ÓèÕâ¸öview¡£µ±È»£¬ÎÒÃÇÒ²Äܹ»Í¨¹ý´úÂëÀ´ÎªÄ³Ò»¸öviewÀ´ÉèÖÃlayout£¬ÄÇÊǺ󻰡£Í¨¹ý¶Ô¼ ......
1.Òª½âÎöµÄXMLÎļþÈçÏ£º
<?xml version="1.0" encoding="GB2312"?>
<?xml-stylesheet href="student.xsl" type="text/xsl"?>
<StudentInfo>
<student>
<name>´ïÄÚ</name>
<sex>ÄÐ</sex>
<lesson>
  ......
windows xpÏÂIIS°²×°ºó¡£
¿ªÊ¼ÏÔʾµÄ´íÎóΪ
ÎÞ·¨ÏÔʾ XML Ò³¡£
ʹÓà Ñùʽ±íÎÞ·¨²é¿´ XML ÊäÈë¡£Çë¸üÕý´íÎóÈ»ºóµ¥»÷ ˢа´Å¥£¬»òÒÔºóÖØÊÔ¡£
------------------------------------------------------------------------- ......