Click here to Skip to main content
15,893,161 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I am not able retrive the label in a html file when the label is in paraenthesis like (nct)Number. I am using jsoup 1.6 jar

My code is
Java
public Element findElementByLabel(Document htmlDocObj, String label, String elType) throws AbstractScriptException
	{
		if(elType.equalsIgnoreCase("img"))
		{
			return findIMG(htmlDocObj, label, elType);
		}
		
		Elements els = htmlDocObj.getElementsByAttributeValueContaining("value", label);

Can anyone help me to find the label element using jsoup if the label is in getElementsByAttributeValueContaining

Thanks in Advance
Posted
Updated 17-Feb-13 0:59am
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900