Java Mailing List Archive

http://www.junlu.com/

Home » Home (12/2007) » JDOM User »

[jdom-interest] element creation with < issues

Narahari Lakshminarayana

2005-07-28


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" />

<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" />

<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" />

<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" />

<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" />

<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" />

<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" />

<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>

 

_______________________________________________
To control your jdom-interest membership:
http://www.jdom.org/mailman/options/jdom-interest/youraddr@(protected)
©2008 junlu.com - Jax Systems, LLC, U.S.A.