windows 㧠C++ ãã xpathã使ããã!!
windowsã§C++ããxpathãå©ç¨ããããã§ããã
ã©ãããã¹ããã
1.ãã«ã®OSã®æ©è½ãå©ç¨ãã
ãã«ã®OSã ã£ããã ActiveXã ããã£ã¦æãã ãã©ã
msxml㧠xpathãå©ç¨ã§ãããã©ãããã¤ã¯xmlå°ç¨ã§htmlãèªã¿è¾¼ããã¨ã¯ã§ããªãã
ã¡ãã£ã¨åã«ãã£ã¦æ«æããããã
âéæãããæ¹ãããã£ãããã¾ãããããã!!ã
WSH で HTML を XPath したいんじゃあああぁぁ
å¥éãJavaScript-XPathãå¿
è¦ã«ãªãã¾ãã
2.libxml2 ãå©ç¨ãã
phpãå
é¨ã§libxmlãå©ç¨ãã¦ããã®ã§ããã®åã® phpã®ã«ã¼ãã³ããã®ã¾ã¾ç§»æ¤ããã°ããããã§ãã
ãã ããlibxml 㯠utf8ããæ±ããªãã®ã§ã sjisââutf8å¤æããã¾ããå¿
è¦ãããããã§ãã
http://xmlsoft.org/
âmacosã§ã®ä¾ã ãã©ã©ã¤ãã©ãªã使ãä¸ã§ã¯åèã«ãªãã¾ããã
CocoaでHTMLを扱う
âãã®åã®ã«ã¼ãã³
phpでxpath
3.TinyXPathãå©ç¨ãã
ã¾ã 試ãã¦ããªããã§ãããããã§ãããããã§ããlibxml2 ãããã£ã¡ã®ã»ããç°¡åï¼
TinyXPath
4.xpcomçµç±ã§ firefoxãå¼ã³åºãã
å¤åãããä¸çªçæ³ãªãã ãããã©ãæç®ããªãã®ã§ããããããã
âãã¼ãã¼ã®ãã§ããããããã°ãã°å¯è½ã ã¨ã¯æããããã
FirefoxのhtmlparserをXPCOM経由で呼び出して壊れたHTMLを修復する
ã¾ããã©ããã£ã¦xpathãä½æãããã«ããã¨æãã
xpathã¯ã¾ã ã¾ã æ¹è¨ããã£ã¦ãå®è£
ã«ãã£ã¦æ©è½ã使ããã使ããªãã£ããããã®ã§ãxpathãä½ãç°å¢ã¨å®éã«ä½¿ãç°å¢ã¨ã§å·®ç°ãããã¨ããã©ãã
ç§ã¯ãfirefoxã® xpatherã§ä½æãããã®ã§ 4ã®xpcomã®æ¹æ³ãåããã°ä¸çªãããã ãã©ãã©ãããã°ãããããããããªãã
libxml2 㯠utf8å¤æãèããªããªããã¨ããããåããã
utf8ã¨ããã®ãwindowsã«ã¨ã£ã¦é¬¼éã ããªã
ãã«ã®OSã¯ãæ©ãã«unicodeåããã®ãç½ããã¦ããããã
ããããã«ã®OSãä»unicodeåããããªãutf8ãæ¡ç¨ãã¦ããæ°ãããããã
ããã§ä¸ç㯠utf8ã®çµ±åããã¦éçºè
ã¯ã¿ããªãããã¼ãããã¼ã ã£ãã¨æãã
ããããªã¨ããã§ä½¿ããã¦ããã©ã¤ãã©ãªã ããã移æ¤æ§ããããã
TinyXPath ã¯ãµã³ãã«ãè¦ãéãç°¡åããã
ãã ãlibxml2 ã«æ¯ã¹ãã¨å®ç¸¾ãä¸å®ãã©ããªã®ï¼
ãã ãã ãããã³ã¼ããæ¸ãã¹ããããã
ç¬æã¨åè¦ã«ããã¾ã¨ã
ã©ã¤ãã©ãªå | å®è£ é£æ度 | ã¦ã¼ã¶ã®å°å ¥ãæã | ã¯ãã¹ãã©ãããã©ã¼ã | firefoxã¨ã®è¦ªåæ§ | ã©ã¤ã»ã³ã¹ |
---|---|---|---|---|---|
msxml | â | â OSãã£ãã©ã¯æé«ãªãã ãã© IEã¯ã¢ã¬ãªã®ã§JavaScript-XPathãå¿ è¦ã«ãªã |
à windowséå® |
IEã¯ãããããã¡ãªã®ã§ JavaScript-XPath次第ã ãã©çµæ§ãããï¼ |
IEã¯OSãã£ãã©ã ãã©ã JavaScript-XPath ãMIT ã©ã¤ã»ã³ã¹ |
libxml2 | â (windowsç³»ã ã¨utf8ã¯é¬¼é) |
â³ libiconvã¨ãä¾åããwindowsã ã¨é¢å |
â | â³ çµæ§çãããã |
MITã©ã¤ã»ã³ã¹ |
TinyXPath | ï¼ ã¾ã 試ãã¦ããªã |
â çµã¿è¾¼ã¿ã ãã |
â çµã¿è¾¼ã¿ã ã |
ï¼ | zlib/libpngã©ã¤ã»ã³ã¹ |
xpcom | à ãããããã¾ãã |
â³ mozilla firefoxãå¿ è¦ |
ï¼ | â firefoxãã®ãã® |
Mozilla Public License |