Friday, 15 July 2011

java - XPath expression, two Strings in one node -


I downloaded the html form, clean it with htmlCleaner. Basically it looks like this (now it's made well, but I do not know the easy way to show it, I hope it's enough):

  .. & lt; Form action = "complete" method = "post" encrypt = "multipart / form-data" & gt; Please enter your username: & lt; Input type = "text" name = "employee" /> & Lt; / BR & gt; Reason: & lt; BR / & gt; & Lt; Textarea cols = "50" rows = "5" name = "causation" & gt; & Lt; / Textarea & gt; & Lt; / BR & gt; & Lt; Input type = "submit" value = "full" & gt; & Lt; / Form & gt; ....   

Please fill in "Username" and "Reason" to remove Expand expression, but in two different strings? In addition, htmlCleaner does not support all expressions, here - & gt;

Thank you

What you just need:

  // input [@ name = "employee"] / @ value // input [@ name = "reason"] / @ value   

or (if you have

  // form / text (1) // form / text () [2]    

No comments:

Post a Comment