linuxÏÂlibxml¿â±à³Ì
1
±àд˵Ã÷
±¾ÎĵµÖ÷Òª½éÉÜXMLµÄ»ù±¾ÖªÊ¶¼°ÀûÓÃÈçºÎÀûÓÃlibxmlÀ´²Ù×÷xmlÎļþ¡£
2
XML
»ù´¡
XMLÊÇeXtensible Markup
LanguageµÄËõд£¬ËüÊÇÒ»ÖÖ¿ÉÀ©Õ¹ÐÔ±êʶÓïÑÔ, Äܹ»ÈÃÄã×Ô¼º´´Ôì±êʶ£¬±êʶÄãËù±íʾµÄÄÚÈÝ¡£DOMÈ«³ÆÊÇDocument Object
Model(Îĵµ¶ÔÏóÄ£ÐÍ)£¬¶¨ÒåÁËÒ»×éÓëƽ̨ºÍÓïÑÔÎ޹صĽӿڣ¬ÒÔ±ã³ÌÐòºÍ½Å±¾Äܹ»¶¯Ì¬·ÃÎʺÍÐÞ¸ÄXMLÎĵµÄÚÈÝ¡¢½á¹¹¼°Ñùʽ¡£XML´´½¨Á˱êʶ£¬¶ø
DOMµÄ×÷ÓþÍÊǸæËß³ÌÐòÈçºÎ²Ù×÷ºÍÏÔʾÕâЩ±êʶ¡£
XML½«Êý¾Ý×éÖ¯³ÉΪһ¿ÃÊ÷£¬DOMͨ¹ý½âÎöXMLÎĵµ£¬ÎªXMLÎĵµÔÚÂß¼ÉϽ¨Á¢Ò»¸öÊ÷Ä£ÐÍ£¬Ê÷µÄ½ÚµãÊÇÒ»¸ö¸öµÄ¶ÔÏó¡£ÕâÑùͨ¹ý²Ù×÷Õâ¿ÃÊ÷ºÍÕâЩ¶ÔÏó¾Í¿ÉÒÔÍê³É¶ÔXMLÎĵµµÄ²Ù×÷£¬Îª´¦ÀíÎĵµµÄËùÓз½ÃæÌṩÁËÒ»¸öÍêÃÀµÄ¸ÅÄîÐÔ¿ò¼Ü¡£
XML Öй²ÓÐ12ÖÖ½ÚµãÀàÐÍ£¬ÆäÖÐ×î³£¼ûµÄ½ÚµãÀàÐÍÓÐ5ÖÖ£º
ÔªËØ£ºÔªËØÊÇ XML µÄ»ù±¾×é³Éµ¥Ôª¡££¬ÃèÊöXMLµÄ»ù±¾ÐÅÏ¢¡£
ÊôÐÔ£ºÊôÐÔ½Úµã°üº¬¹ØÓÚÔªËؽڵãµÄÐÅÏ¢£¬Í¨³£°üº¬ÔÚÔªËØÀïÃ棬ÃèÊöÔªËصÄÊôÐÔ¡£
Îı¾£º°üº¬Ðí¶àÎı¾ÐÅÏ¢»òÕßÖ»Êǿհס£
Îĵµ£ºÎĵµ½ÚµãÊÇÕû¸öÎĵµÖÐËùÓÐÆäËü½ÚµãµÄ¸¸½Úµã¡£
×¢ÊÍ£º×¢ÊÍÊǶÔÏà¹ØµÄÐÅÏ¢½øÐÐÃèÊö¡¢×¢ÊÍ¡£
3
LibXml
½éÉÜ
ÐèÇó°²×°°ü£ºlibxml2 ºÍlibxm2-devel£¬ÆäÖÐlibxmlÖ÷Òª°üÀ¨.soÎļþ£¬libxml2-devel °üÀ¨¿ª·¢ÎĵµºÍËùÓеÄ.hÎļþ¡£¿ÉÓÃrpm –ql ÃüÁî²é¿´£¬rpm –qd¿É²é¿´ÎĵµÐÅÏ¢¡£
3.1
Êý¾ÝÀàÐÍ££xmlChar
ÔÚlibXmlÖÐÓÃxmlCha Ìæ´úchar,XMLʹÓÃUTF-8±àÂëµÄÒ»×Ö½Ú×Ö·û´®¡£Èç¹ûÄãµÄÊý¾ÝʹÓÃÆäËü±àÂ룬Ëü±ØÐ뱻ת»»µ½UTF-8²ÅÄÜʹÓÃlibxmlµÄº¯Êý¡£
Èçͬ±ê×¼cÖеÄcharÀàÐÍÒ»Ñù£¬xmlCharÒ²Óж¯Ì¬ÄÚ´æ·ÖÅä¡¢×Ö·û´®²Ù×÷µÈ
Ïà¹Øº¯Êý¡£ÀýÈçxmlMallocÊǶ¯Ì¬·ÖÅäÄÚ´æµÄº¯Êý£»xmlFreeÊÇÅäÌ×µÄÊÍ·ÅÄڴ溯Êý£»xmlStrcmpÊÇ×Ö·û´®±È½Ïº¯ÊýµÈµÈ¡£»ù±¾ÉÏ
xmlChar×Ö·û´®Ïà¹Øº¯Êý¶¼ÔÚxmlstring.hÖж¨Ò壻¶ø¶¯Ì¬ÄÚ´æ·ÖÅ亯ÊýÔÚxmlmemory.hÖж¨Òå¡£
ÁíÍâҪעÒ⣬ÒòΪ×ÜÊÇÒªÔÚxmlChar*ºÍchar*Ö®¼ä½øÐÐÀàÐÍת»»£¬ËùÒÔ¶¨ÒåÁËÒ»¸öºêBAD_CAST£¬Æ䶨ÒåÈçÏ£ºxmlstring.h
#define BAD_CAST (xmlChar *)
ÔÔòÉÏÀ´Ëµ£¬unsigned charºÍcharÖ®¼ä½øÐÐÇ¿ÖÆÀàÐÍת»»ÊÇûÓÐÎÊÌâµÄ¡£
3.2
ÖØÒªÊý¾Ý½á¹¹
XmlDoc£º ´ú±íDOM½á¹¹ÖеÄÎĵµÀàÐÍ¡£°üº¬ÓɽâÎöÎĵµ½¨Á¢µÄÊ÷½á¹¹£¬xmlDocPtrÊÇÖ
Ïà¹ØÎĵµ£º
Service Discovery Protocol(SDP)ÌṩһÖÖÄÜÁ¦£¬ÈÃÓ¦ÓóÌÐòÓз½·¨·¢ÏÖÄÄÖÖ·þÎñ¿ÉÓÃÒÔ¼°ÕâÖÖ·þÎñµÄÌØÐÔ¡£
·þÎñ·¢ÏÖÐÒé(SDP»òBluetooth SDP)ÔÚÀ¶ÑÀÐÒéÕ»ÖжÔÀ¶ÑÀ»·¾³ÖеÄÓ¦ÓóÌÐòÓÐÌØÊâµÄº¬Ò⣬·¢ÏÖÄĸö·þÎñÊÇ¿ÉÓõĺÍÈ·¶¨ÕâЩ¿ÉÓ÷þÎñµÄÌØÕ÷¡£SDP¶¨ÒåÁËbluetooth client·¢ÏÖ¿ÉÓÃbluetooth server·þÎñºÍËüÃǵÄÌØÕ÷µÄ·½·¨¡£ ......
½ñÌìÔÚÍøÉÏ¿´¼ûÕâƪÎÄÕ£¬¸Ð¾õºÜºÃ£¬×Ô¼ºÕýÔÚ¿´£¬´ó¼ÒÓÐʱ¼ä¿ÉÒÔ¿´¿´£¬¹À¼ÆÓаïÖú¡£
Ò»£®Ìî¿ÕÌ⣺
1. ÔÚLinuxϵͳÖУ¬ÒÔ ___
·½Ê½·ÃÎÊÉ豸 ¡£
2. LinuxÄÚºËÒýµ¼Ê±£¬´ÓÎļþ____ÖжÁÈ¡Òª¼ÓÔصÄÎļþϵͳ¡£
3. LinuxÎļþϵͳÖÐÿ¸öÎļþÓà ___
À´±êʶ¡£
4. È«²¿´ÅÅÌ¿éÓÉËĸö²¿·Ö×é³É£¬·Ö±ðΪ____________________ ......
ϵͳÐÅÏ¢
arch ÏÔʾ»úÆ÷µÄ´¦ÀíÆ÷¼Ü¹¹(1)
uname -m ÏÔʾ»úÆ÷µÄ´¦ÀíÆ÷¼Ü¹¹(2)
uname -r ÏÔʾÕýÔÚʹÓõÄÄں˰汾
dmidecode -q ÏÔʾӲ¼þϵͳ²¿¼þ - (SMBIOS / DMI)
hdparm -i /dev/hda ÂÞÁÐÒ»¸ö´ÅÅ̵ļܹ¹ÌØÐÔ
hdparm -tT /dev/sda ÔÚ´ÅÅÌÉÏÖ´ÐвâÊÔÐÔ¶ÁÈ¡²Ù×÷
cat /proc/cpuinfo ÏÔʾCPU infoµÄ ......
ÕªÒª
¡¡¡¡±¾ÎÄÖ÷Òª´ÓÄÚºËʵÏֵĽǶȷÖÎöLinux 2.4.0ÄÚºËIO×ÓϵͳÖжÔIO¶Ë¿Ú×ÊÔ´µÄ¹ÜÀíµÄʵÏÖÔÀí¡£±¾ÎÄÊÇΪÄÇЩÏëÒªÉîÈë·ÖÎöLinuxµÄIO×ÓϵͳµÄ¶ÁÕߺÍÉ豸Çý¶¯³ÌÐò¿ª·¢ÈËÔ±¶øдµÄ¡£(2002-10-08 14:14:05)
--------------------------------------------------------------------------------
By °¢¿ª
¡¡¡¡Copyrigh ......
Blender¿ÉÊÇÒ»Ì×רҵ¼¶µÄÃâ·Ñ3DÔìÐͻͼÈí¼þ£¡
ÓÐÁËBlenderºó£¬Ï²»¶3D»æͼµÄÍæ¼ÒÃDz»Óû¨´óÇ®£¬Ò²¿ÉÒÔÖÆ×÷³ö×Ô¼ºÏ²°®µÄÄ£ÐÍ¡£Ëü²»½öÖ§³Ö¸÷ÖÖ¶à±ßÐλͼ£¬Ò²ÄÜ×ö³ö¶¯»ÄØ£¡ÌÈÈôÄã¾õµÃfree°æµÄ²»¹»Ê¹Ó㬻¹ÄÜ×¢²áC-key£¬¹ºÂò¸üÇ¿´óµÄ°æ±¾¡£
BlenderËäÈ»ÊÇÃâ·Ñ°æ±¾£¬²»¹ýËüµÄ¹¦ÄÜ¿ÉÊÇÓÖÇ¿ÓÖ¸´ÔÓµÄร¡¶Ô3DÄ£ÐÍ»æͼÀí
ÂÛ² ......