Ò׽ؽØͼÈí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö160KB

wxwidgets ÓÃxmlÀ´ÃèÊö½çÃ棬ÔÚ³ÌÐòÀï»ñÈ¡ ±äÁ¿ºÍʼþ

Èç¹û¶Ô½çÃæÃÀ¹Û³ÌÐò±È½Ï¸ß£¬ÊÖд´úÂëÊDz»¿É±ÜÃâµÄ¡£
µ«Èç¹û×öµÄÊÇһЩÏñÖ»ÊÇΪÁËÏÔʾ¡¢¿ØÖÆÖ®ÀàµÄ³ÌÐò£¬¿ÉÄܸü¿ìµÄ°Ñ³ÌÐòµ·¹Ä³öÀ´¾ÍºÃÁË¡£
wxwidgets
ÓÐÕâÑùµÄÒ»¸ö¹¦ÄÜ£¬¾ÍÊÇÄÜÓÃxmlд³É½çÃæ¾ÍÄÜÏÔʾ
±à¼­xrcµÄ¹¤¾ßÊÇwxformbuilder,¿ªÔ´Ãâ·ÑµÄ£¬Ò²×ã¹»ÓÃÁË£¬ÎÒÒ»¿ªÊ¼Ã»ÕÒµ½Ôõô
Éú³Éxrc,ºóÀ´Ä³´ÎżȻ¿´µ½ÁËÏÂÃæ....Ô­À´ÓÐc++,py,xrcµÄÉú³É¡£
wxwidgetsÀïÓиöÀý×Ó£¬½Ðxrcdemo
´ó
ÌåÊÇÊÇÕâÑù¡£
ƽʱ´´½¨wxwidgets³ÌÐò£¬ÎÒÃÇÒ»°ãÓÃwxframe,wxdialog
ÄÃwxframeÀ´¾ÙÀý£¬ÎÒÃÇÒ»°ã´Ó
wxfrrameÅÉÉú£¬È»ºóÔÚ³õʼ»¯º¯ÊýÀï´´½¨¿Ø¼þ¡£
MyFrame::MyFrame(wxWindow* parent)
{
wxXmlResource::Get()->LoadFrame(this, parent, wxT("main_frame"));
}
¶ø
ÏÖÔÚÖ»Òªµ÷ÓÃÕâÒ»¾ä¾Í¹»ÁË¡£
ʼþ´¦Àí·½ÃæÒ²ÓÐËù±ä¶¯¡£
BEGIN_EVENT_TABLE(MyFrame, wxFrame)
EVT_MENU(XRCID("unload_resource_menuitem"),
MyFrame::OnUnloadResourceMenuCommand)
EVT_MENU(wxID_ABOUT,
MyFrame::OnAboutToolOrMenuCommand)
END_EVENT_TABLE()
»ñµÃÏà¹ØµÄ¿Ø¼þ£º
wxAnimationCtrl
*ctrl = XRCCTRL(*win, "controls_animation_ctrl", wxAnimationCtrl);
¼Ó
ÔØxmlµÄµØ·½Ò»°ãÔÚapp::initÀïÃ棬ÏñÕâÑù×Ó
wxXmlResource::Get()->InitAllHandlers();
// Load all of the XRC files that will be used. You can put
everything
// into one giant XRC file if you wanted, but then
they become more
// diffcult to manage, and harder to reuse in
later projects.
// The menubar
if
(!wxXmlResource::Get()->Load(wxT("rc/menu.xrc")))
return
false;
ÏÖÔÚ»¹ÓиöÎÊÌ⣬¾ÍÊÇȱʡ¶ÔÖÐÎÄÖ§³Ö²»ºÃ£¬Õâ¸öÎÒÃ÷ÌìÀ´Ïë¸ö°ì·¨¡£

¸ã¶¨ÖÐÎÄÁË£¬Æäʵ²»ÏñÏëÏóÖÐÄÇÑù¸´ÔÓ¡£
ÎÒÓÃÁË
wxXmlResource::Get()->SetFlags(0);
È»ºó±£´æµÄxrcÊÇÓõÄutf8¸ñʽ¡£
ÕâÑù¾ÍÕý³£ÏÔʾÖÐÎÄÁË¡£ÎҲ²âÊÇÎÒµÄxrcÀïµÄcodingÉÏдÁËutf8£¬wxxmlresourceȱʡ»áÔÙתһ´ÎÂ룬¿ÉÄܾÍת³öÎÊÌâÁË


Ïà¹ØÎĵµ£º

Android·¬Íâƪ——XML layoutÓëCSS תÔØ

   ¿ª·¢¹ýAndroidÓ¦ÓõÄͬѧÃǶ¼ÖªµÀ£¬Android¹¤³Ì-res-layout×ÊÔ´Îļþ¼ÐÏ´æ·Å×Å¿ØÖÆview²¼¾ÖµÄxmlÎļþ£¬ÎÒÃÇ¿ÉÒÔͬ¹ýgetViewById(int i)·½·¨£¬´ÓXMLÖй¹Ôìview¼°Æä×ÓÀ࣬ÔÚÕâ¸ö¹ý³Ìµ±ÖУ¬XMLÎļþÖеÄÒ»ÇÐlayoutÊôÐÔÒ²½«±»¸³ÓèÕâ¸öview¡£µ±È»£¬ÎÒÃÇÒ²Äܹ»Í¨¹ý´úÂëÀ´ÎªÄ³Ò»¸öviewÀ´ÉèÖÃlayout£¬ÄÇÊǺ󻰡£Í¨¹ý¶Ô¼ ......

xml´¦Àí

JAXBContext jc = JAXBContext.newInstance(ICPBuildSummaryXO.class);
   Unmarshaller u = jc.createUnmarshaller();
   ICPBuildSummaryXO xo = (ICPBuildSummaryXO) u.unmarshal(node);
   ICPBuildSummary summary = new ICPBuildSummary();
   Bean ......

Xerces C++ÕýÈ·´¦ÀíXMLÎĵµ


1¡¢Xerces-C++ÊÇʲô£¿
      Xerces-C++ µÄÇ°ÉíÊÇ IBM µÄ XML4C ÏîÄ¿¡£XML4C ºÍ XML4J ÊÇÁ½¸ö²¢ÁеÄÏîÄ¿£¬¶ø XML4J ÊÇ Xerces-J——Java ʵÏÖ——µÄÇ°Éí¡£IBM ½«ÕâÁ½¸öÏîÄ¿µÄÔ´´úÂëÈÃÓë Apache Èí¼þ»ù½ð»á(Apache Software Foundation)£¬ËûÃǽ«Æä·Ö±ð¸ÄÃûΪ Xerces-C++ º ......

C++ ²Ù×÷XMLµÄÍêÕûÀý×Ó——MSXMLƪ

д±¾ÎĵÄÄ¿µÄÊÇΪÁË·½±ã´ó¼ÒÁ˽âC++ MSXML²Ù×÷·½·¨¡£
µ±È»£¬C++ÖжÔMSXMLµÄµ÷ÓÃÓжàÖÖ£¬±¾ÎIJÉÓõķ½·¨ÊÇÍêÈ«²ÎÕÕMSXML SDKÌṩµÄÎĵµ½øÐвÙ×÷¡£
Èç¹ûÓÐʲô´íÎ󣬻¶Ó­Ö¸Õý¡£
´úÂë¿ò¼ÜÊÇ»ùÓÚvs2008 MFC ¶Ô»°¿ò³ÌÐò£¨UNICODE£©¡£¶Ô»°¿ò³ÌÐòÐèÒª¶ÁÕß×Ô¼º´´½¨¡£
#include <msxml6.h>
#include <comutil.h>
# ......

DataSetÓëxmlÎļþµÄ»¥Ïàת»»


http://www.cnblogs.com/long2006sky/articles/1258731.html
DataSetת»»ÎªxmlÎļþ
//½«DataSetת»»ÎªxmlÎļþ
        private static void ConvertDataSetToXMLFile(DataSet xmlDS, string xmlFile)
        {
    &n ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ