java


Checking on hidden class with jsoup


I am trying to extract a line from a html file for checking purposes...
The problematic line is this:
<div class="cli_product_message x-hidden hidden" style="display: none;"> </div>
It shows in 2 different ways in different html pages, the way shown above or like this
<div class="cli_product_message" </div>
I want to do a simple thing, when there is the "hidden" class or the "style" attribute a method should return false, otherwise true.
I've tried using jsoup to parse this html using
select("div.cli_product_message").attr("class")
Then I want to verify if the string obtained contains hidden or style, the problem is that, in both cases, the result string is
cli_product_message x-hidden
So I don't have nothing to differentiate the 2...
I've tried using other jsoup methods, for example toString() but the result is the same... What can I do?
Thanks

Related Links

SpringMVC Storing Base64
In-use connections equal max-pool-size and expired max-wait-time. Cannot allocate more connections
How to use LDAP authentication for the Exchange Web Services connection in Java?
How to set JAVA_HOME in Mac permanently?
LIMIT 1 with CrudRepository
Difference between import java.util.* and java.util.XXXX [duplicate]
Error in function split.default
Extracting source code metadata from compiler
Hamcrest.Matchers: JSON Nested Array
Selectively allocate dimensions for multi-dimensional array at construction
Consume localhost webservice from remote application
Java conventions about primitive types [closed]
Problems with current thread
Disable a KeyTyped event based on its type
PropertyChange Listener for icons
Using JMS, how can I get the maximum message size for a particular destination?

Categories

HOME
java
ibm-bluemix
openlayers
cloud
reserved
path-finding
cplex
android-4.4-kitkat
youtube-dl
jsrender
ojdbc
bs4
portia
add
kentor-authservices
dax
timeout
commonmark
task
hex-editors
hapi
seaborn
propel
samoa
introduction
java-7
centos6.5
brunch
filezilla
neo4j-spatial
facebook-apps
r-raster
google-qpx-express-api
webtest
framemaker
windows-dev-center
asset-pipeline
wixsharp
bitbucket-pipelines
space-complexity
neuroscience
unspecified
cookiecutter-django
tasker
gulp-sourcemaps
grid.mvc
reportingservices-2005
no-www
modelmapper
atomicity
logparser
dandelion
sage-one
togetherjs
gabor-filter
typed-lambda-calculus
font-size
capacity
sqlbulkcopy
linode
lync-client-sdk
topbeat
android-fonts
merge-conflict-resolution
nsviewcontroller
blackberry-10
apachebench
oauth2client
xpath-1.0
phpcas
r-tree
browser-bugs
ibaction
dundas
notify
umbraco6
xc16
cdt
android-nested-fragment
cctv
codeigniter-routing
device-manager
phpthumb
hyprlinkr
openlaszlo
imdbpy
html5-notifications
oam
jsctypes
padarn
jquery-mobile-dialog
broken-links
venn-diagram
manchester-syntax
propertyeditor
hosts-file
onsubmit
objective-c-2.0
asyncfileupload
hgsubversion
celltable
xfbml
w3wp.exe
asp.net-mvc-areas
getresponsestream
sef
ctp4
zend-decorators
gacutil
port-number
w3wp
post-build
.net-1.0

Resources

Mobile Apps Dev
Database Users
javascript
java
csharp
php
android
MS Developer
developer works
python
ios
c
html
jquery
RDBMS discuss
Cloud Virtualization
Database Dev&Adm
javascript
java
csharp
php
python
android
jquery
ruby
ios
html
Mobile App
Mobile App
Mobile App