search for: xmltext2

Displaying 1 result from an estimated 1 matches for "xmltext2".

Did you mean: xmltext
2012 Sep 04
0
get only little part of html with htmlParse
...ycomputer options(encoding="gbk") library(XML) xmltext1 <- htmlParse("/home/tiger/Desktop/27174.htm" ) #/home/tiger/Desktop/27174.htm is the file of http://www.jb51.net/article/27174.htm downloaded on my computer. 2.url options(encoding="gbk") library(XML) xmltext2 <- htmlParse("http://www.jb51.net/article/27174.htm" ) 3.readLines options(encoding="gbk") library(XML) txt=readLines("http://www.jb51.net/article/27174.htm") xmltext3 <- htmlParse(txt,asText=TRUE) method1,and method2 are ok,they can get right content to...