[jdom-interest] element creation with < issues

Narahari Lakshminarayana nlakshminarayana at asg.bellsouth.net
Thu Jul 28 08:51:05 PDT 2005


Hello folks:
 
May be this question has been asked before.  So please dont flame me.  I
have done due diliegence by searching but could not find answers.
 
I have the following data that a method returns which is written by
another group.
 
I am trying to load this into a org.jdom.Document but  until and unless
I add a parent node like <a>.... </a> it is impossible
to add this to a document.  I understand the limitations here since an
XML has to have a root element and since I dont have one
the Document is not able to be created.
 
What is my alternative though to return this as List of Elements so I
can add this to another Document /
 
-Narahari
 
<hourdata hour="140000" curtemp="88" dewpointtemp="72" windspeed="4"
winddir="290" weather_conditions="" relative_humidity="60"
apparent_temp="94"
icon_link="http://www.nws.noaa.gov/weather/images/fcicons/tsra.jpg
<http://www.nws.noaa.gov/weather/images/fcicons/tsra.jpg> " />

<hourdata hour="150000" curtemp="88" dewpointtemp="72" windspeed="4"
winddir="290" weather_conditions="" relative_humidity="60"
apparent_temp="94"
icon_link="http://www.nws.noaa.gov/weather/images/fcicons/tsra.jpg
<http://www.nws.noaa.gov/weather/images/fcicons/tsra.jpg> " />

<hourdata hour="160000" curtemp="88" dewpointtemp="72" windspeed="4"
winddir="290" weather_conditions="" relative_humidity="60"
apparent_temp="94"
icon_link="http://www.nws.noaa.gov/weather/images/fcicons/tsra.jpg
<http://www.nws.noaa.gov/weather/images/fcicons/tsra.jpg> " />

<hourdata hour="170000" curtemp="88" dewpointtemp="71" windspeed="6"
winddir="290" weather_conditions="" relative_humidity="58"
apparent_temp="94"
icon_link="http://www.nws.noaa.gov/weather/images/fcicons/tsra.jpg
<http://www.nws.noaa.gov/weather/images/fcicons/tsra.jpg> " />

<hourdata hour="180000" curtemp="88" dewpointtemp="71" windspeed="6"
winddir="290" weather_conditions="" relative_humidity="58"
apparent_temp="94"
icon_link="http://www.nws.noaa.gov/weather/images/fcicons/tsra.jpg
<http://www.nws.noaa.gov/weather/images/fcicons/tsra.jpg> " />

<hourdata hour="190000" curtemp="88" dewpointtemp="71" windspeed="6"
winddir="290" weather_conditions="" relative_humidity="58"
apparent_temp="94"
icon_link="http://www.nws.noaa.gov/weather/images/fcicons/tsra.jpg
<http://www.nws.noaa.gov/weather/images/fcicons/tsra.jpg> " />

<hourdata hour="200000" curtemp="82" dewpointtemp="72" windspeed="4"
winddir="290" weather_conditions="" relative_humidity="71"
apparent_temp="87"
icon_link="http://www.nws.noaa.gov/weather/images/fcicons/tsra.jpg
<http://www.nws.noaa.gov/weather/images/fcicons/tsra.jpg> " />

<CITY>Marietta</CITY>
<COUNTY>Cobb</COUNTY>
<LATITUDE>33.930563</LATITUDE>
<LONGITUDE>-84.462218</LONGITUDE>
<NEXRAD_LONG_RANGE>KFFC</NEXRAD_LONG_RANGE>
<NEXRAD_SHORT_RANGE>KFFC</NEXRAD_SHORT_RANGE>
<STATE>GA</STATE>
<STATE_NAME>Georgia</STATE_NAME>
<WEATHER_STATION_ID>KMGE</WEATHER_STATION_ID>
<WEATHER_STATION_NAME>Marietta / Dobbins Air Force
Base</WEATHER_STATION_NAME>
<ZIP>30067</ZIP>


 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.jdom.org/pipermail/jdom-interest/attachments/20050728/1feb5138/attachment.htm


More information about the jdom-interest mailing list