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

Trying to create a Mysql query to find the max in my table but I need advice
Android: How to load multiple pictures and sounds in an activity without a out of memory error
get the process name/id of the port number in netstat
How to add time events in libgdx
How to get #Test methods from the test classes, when running TestNG programmatically
Using Java gcm-server to send message to topic
Code not matching the Applet
How to get all files in a directory with exclusion of subdirectories using regular expression?
Spring sql-error-codes.xml does not show correct exception on timeout
Approaches to Android MediaPlayer state mismatch error on isPlaying()?
Issue with Android SQLite cursor while reading table having blob content
Is there a non-jdk implementation for a concurrent weak hash map?
how to immplement dynamic parameter on Jmeter with java
What to do when catching e(rror) in Java
apache.servicemix.bundles.quickfix - Attempting to create standalone NewOrderSingle object throws exception
Printing a message if a char has more than one symbol(using char, not String)

Categories

HOME
ionic-framework
heroku
nullpointerexception
objectgears
google-docs
elm
cmd
survey
cross-validation
gitpitch
tomcat6
visual-studio-2005
seaborn
fatal-error
solaris-10
grails3
swiftlint
kryo
physics-engine
kvc
google-search-api
language-agnostic
zurb-foundation-6
cultureinfo
tdd
intel-pin
google-cloud-nl
flink-streaming
sql-server-2012-express
gtrendsr
fog
repo
openoffice.org
android-nestedscrollview
geopositioning
amazon-kinesis-kpl
overlap
libraries
lumberjack
ensembles
glew
import-from-excel
checkboxlist
reactive-cocoa-5
convertapi
btrace
outlook-2013
parentheses
termination
pubmed
errordocument
domain-model
integrity
mu
lowpass-filter
mplayer
elgg
nativeapplication
slickedit
sqlbulkcopy
memory-alignment
color-profile
dwscript
django-scheduler
nested-sets
static-ip-address
gridpane
azure-virtual-network
gstreamer-0.10
prettytensor
actionbardrawertoggle
pyke
cloudbees
vhd
qtableview
sdhc
python-3.2
kcachegrind
angular-local-storage
dia
gadt
gui-test-framework
mdt
codeigniter-routing
asp.net-web-api-odata
flask-cors
jquery-layout
phpthumb
rtmfp
bundles
message-driven-bean
xsockets.net
inbox
spring-io
coverflow
gwt-rpc
eventlistener
dsn
newtonscript
jspinclude
qtkit
reddot
hgsubversion
fireworks
coercion
appender
remember-me
web-application-design
xsdobjectgen
uimenucontroller
swing-app-framework
phonon
lzh

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