I can write xmlGetAttr(x,"title") and xmlGetAttr(x,"href")to get the atttributions “title” and “href”,
can i compound two statement into one?
xmlGetAttr(x,c("title","href")) can not work.
Error in a[[name]] : attempt to select more than one element
I can write xmlGetAttr(x,title) and xmlGetAttr(x,href) to get the atttributions title and href, can
Share
You can use
xmlAttrsas an example: