It seems that the APIs do not have methods to extract image links in the "background" property of tags such as <body>, <table> ,etc. Is there any way to get this information? Thanks for your help.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
It seems that the APIs do not have methods to extract image links in the "background" property of tags such as <body>, <table> ,etc. Is there any way to get this information? Thanks for your help.
They do. You can get attributes of any tag by :
String attribute = tag.getAttribute("ATTRIBUTE_NAME");
So, for body tags, it'd be :
if (tag.getTagName().equals("BODY")) {
String background = tag.getAttribute("BODY");
}
Regards,
Somik
So it cannot be extracted directly from ImageScanner. Thanks a lot!!