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

Çë°ïæÓÃvc++½âÎöxmlÎļþ - VC/MFC / HTML/XML

ÏÖÔÚÐèÒª×ö¸öÈí¼þÀ´½âÎöxml¸ñʽµÄÎļþ£¬Çë´óÏÀßø¸öÏà¹ØµÄÀý×Ó£¬ÖªµÀһϣ¬¸Ð¼¤²»¾¡£¡£¡£¡ÓÐÀý×Ӿ͸ø·ÖŶ£¡£¡£¡
ÓÃ MSXML

¸øÄãÒ»¶ÎÎÒÔ­À´Ð´µÄÒ»¶Î´úÂ룬ÓÐʲô²»Ã÷°×µÄ×Ô¼ºÈ¥²é×ÊÁϰɣ¬²»ËãÌ«ÄÑ
C/C++ code:

MSXML2::IXMLDOMDocumentPtr pXMLDom;
HRESULT hr;
hr= pXMLDom.CreateInstance(__uuidof(DOMDocument30));
if (FAILED(hr))
{
return FALSE;
}
pXMLDom->async = VARIANT_FALSE; // default - true,
if(pXMLDom->load(_T("Device.xml"))!=VARIANT_TRUE)
{
MessageBox(_T("¼ÓÔØÅäÖÃÎļþʧ°Ü"));
return FALSE;
}
else
{
MSXML2::IXMLDOMNodePtr node;
MSXML2::IXMLDOMNodeListPtr list;
list = pXMLDom->selectNodes(_T("//Road/*"));
if(list == NULL)
{
MessageBox(_T("Î޼Ǽ"));
}
else
{
int j = list->length;
for(int i = 0;i<j;i++)
{
node = list->item[i];
//½ÚµãÃû³Æ
CString Nodename = node->nodeName;
if(Nodename.Compare(_T("RoadName")) == 0)
{
//½«Â·¿ÚÃûдÈëÊ÷¿Ø¼þ
CString RoadName = node->text;
road = m_DeviceTree.InsertItem(RoadName,root);


Ïà¹ØÎÊ´ð£º

Êý¾ÝÒÔxml¸ñʽ·µ»Ø - MS-SQL Server / Ó¦ÓÃʵÀý

´ÓÊý¾Ý¿âÖвéѯһÕűíµÄÊý¾Ý
select ²¿ÃÅ,ÐÕÃû from tb
ÈçºÎ²ÅÄÜÉú³ÉÏÂÃæµÄxml¸ñʽ
XML code:
<folder state="unchecked" label="È«²¿">
¡¡¡¡ <folder state="unchecked&qu ......

netbeans Á¬mysql - Web ¿ª·¢ / HTML(CSS)

ÎÒÓõÄÊÇÁ¬½Ó³Ø×öµÄ£¬ÅäÁ¬½Ó³ØµÄ·½·¨Ó¦¸ÃûÓÐ´í£¬ÎªÊ²¾ÍÊdzöÏÖÕâÖÖÎÊÌâ
javax.servlet.ServletException: javax.naming.NameNotFoundException: No object bound to name java:comp/env/test
ÇëÎÊ´óÏÀÃÇÕâÊÇÔ ......

C/C++ÖÐÓÐûÓиñʽ»¯UÅ̵ĺ¯Êý - C/C++ / C++ ÓïÑÔ

´ó¼ÒºÃ£º
ÎÒÏëʵÏÖ¼ì²âµ½²åÈëSD¿¨ºó×Ô¶¯½«SD¿¨¸ñʽ»¯µÄ¹¦ÄÜ£¬²»ÖªC/C++ÖÐÓÐûÓиñʽ»¯UÅ̵ĺ¯Êý£¿
ÁíÍ⣬ÎÒ²»ÏëʹÓÃSHFormatDrive£¬ÒòΪÕâ¸öº¯Êý»áµ¯³öÊÇ·ñÒª¸ñʽ»¯µÄÌáʾ¿ò£¬ÎÒÐèÒªµÄÊÇϵͳ×Ô¶¯¸ñʽ»¯£¬¶ø²Ù×÷Õß² ......

[HJ_34] ÔÚHTMLÍøÒ³Ï£¬ÓÃJS ´ò¿ªLINUXϵļÇʱ¾

ÈçÌ⣬ÔÚWINDOWSµ×ϵÄCODE»á£¬µ«ÔÚLINUXϲ»ÖªµÀÈçºÎʵÏÖ£¬JSµÄ´úÂëÓ¦¸ÃÊDz»Ò»ÑùµÄ¡£ Çó½Ì¡£

·Ö²»¹»ÔÙ¼Ó¡£

http://topic.csdn.net/u/20100113/08/17ba1e71-4c33-43f6-91a5-0e031c86e5ed.html
linux ......

·¢±íÆÀÂÛʱ¹ýÂËHTML±ê¼Ç - Web ¿ª·¢ / JavaScript

ÔÚ·¢±íÆÀÂÛʱ ¹ýÂË ÈçºÎ£º<br/> <hr/> Ë«ÒýºÅ µ¥ÒýºÅ »¹ÓÐÆäËû µÈ Óкõķ½·¨¸æËßһϠлл
.replace(/<\w+[^>]*>/g,"").replace(/'/g,"''")
½«µ¥ÒýºÅ»»³É2¸ö ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØÍ¼ | ¸ÓICP±¸09004571ºÅ