java


How to read data from an XML file from a URL


Okay so I need to parse some weather data from a URL and it looks like this:
This XML file does not appear to have any style information associated with it. The document tree is shown below.
//Some stuff saying where the data is from
<meteodata time="2017-05-10 15:03:00" ts="1494417780">
<data id="temp" name="Temperatuur" unit="°C">1.75266666667</data>
<data id="humid" name="Niiskus" unit="%">77.868</data>
<data id="baro" name="Õhurõhk" unit="hPa">1006.958</data>
<data id="wind_dir" name="Tuule suund" unit="°">125.647436610365</data>
<data id="wind_len" name="Tuule kiirus" unit="m/s">3.11000784765891</data>
<data id="lux" name="Valgustatus" unit="lx">-</data>
<data id="sole" name="Kiirgusvoog" unit="W/m<sup>2</sup>">593.985982297</data>
<data id="gamma" name="Radioaktiivsus" unit="µSv/h">-</data>
<data id="precip" name="Sademed" unit="mm/s">0</data>
</meteodata>
But I don't really know how to read this into a project in a way that would let me translate it into a fxml display with an update button. For reference I'm using IntelliJ and the data is just temperature, humidity and so on.

Related Links

Clean/Install Multiple maven projects in order without reactor
how to create a java jar file with source code (.java files)?
How to execute a script through sqlplus command using jsch?
SQL Syntax highligther in Java
Is this a proper use of recursion?
Modbus TCP in Java / Android
Web scraping through web pages using JSoup
my Search method is coming up with all nulls
Source Code Check Please - Macro Nutrient Calculator
FindItems (emails) restricted to date
Display images in a listview based on file type android
Android: HTML attachment not being sent with an email
why in java static final variable in interface can be overridden by a local var?
How to save a very large binary code in java
set the default jdk for maven-compiler-plugin
Why does Maven not report package errors?

Categories

HOME
arduino-uno
proxy
yahoo-oauth
tizen-web-app
amazon-ecs
constraint-programming
podio
portia
append
synchronization
gitpitch
izpack
windows-azure-storage
netflix
graphlab
oxyplot
openedx
physics-engine
abi
tokenize
tapestry
rundeck
buildbot
r-raster
code-contracts
android-kernel
ghost4j
atl
hexo
stacked
qwerty
xcode-extension
retina-display
libvpx
service-discovery
vapor
greenrobot-eventbus
tasker
avro4s
node-gyp
fakeiteasy
galleria
jsch
python-c-api
dandelion
mplayer
magma
nodebb
r-forge
pillow
mcafee
background-service
angular-strap
azure-sdk
log4c
elements
py2app
lttng
blackberry-10
python-stackless
hexdump
bluegiga
oauth2client
tform
tcpserver
spim
cartesian-product
t4mvc
metaclass
python-3.2
simple-framework
wyam
ibaction
sniffer
key-management
sonarqube5.1.2
nsbutton
id3v2
jubula
seaside
undefined-reference
resty-gwt
openlaszlo
terminal-services
ivyde
ruby-datamapper
file-locking
jplaton
lcs
free-variable
libstdc++
multipage
javaspaces
labwindows
tridion-worldserver
viewswitcher
uiviewanimation-curve
deobfuscation
subgurim-maps
mysql-error-1005
jquery-ui-droppable
database-management
sef
putchar
django-notification

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