Hi ,

This is prashanth

<!DOCTYPE html PUBLIC '-//W3C//DTD XHTML 1.0 Transitional//EN' '
http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd' [
<!ENTITY nbsp ' '>
]><see> <span class="mw-headline">Red Fort</span><li> <b>Chatta Chowk</b>
(Covered Bazaar) – True to the name, this is a covered bazaar between the
gate and the fort itself, now filled with souvenir hawkers.
</li><li> <b>Diwan-i-Am</b> (Hall of Public Audience) – This building
separates the outer court from the inner court, and has a marble platform
for the emperor's throne.
</li><li> <b>Hayat Baksh Bagh</b> (Life-Bestowing Gardens) –  Once a grand
garden of full of fountains and streams, now sadly all dry &mdash; only dry
channels and acres of green grass remain.
</li><li> <b>Diwan-i-Khas</b> (Hall of Private Audience) – Built completely
of marble, this is where the emperor received special visitors.
</li><li> <b>Khas Mahal</b> (Private Palace) – The Emperor's main
residence.  The octagonal <b>Mussaman Burj</b> tower looks out toward the
Yamuna River, and is where the Emperor used to appear before the public for
each morning.
</li><li> <b>Rang Mahal</b> (Colour Palace) – The residence of the Sultan's
main wife.
</li><li> <b>Mumtaz Mahal</b> (Jewel Palace) – Contained six apartments for
the Sultan's harem.  Now used as a museum of court textiles, carpets,
weapons, etc (free).
</li><li> <b>Daawat Khana</b>.  A minor palace at the northmost end of the
Fort, this was originally the residence of a prince, but it was converted
into a tea house by the British, a function it continues today.  Basic meals
go for around 60 rupees, drinks 10-20 rupees, and it also has the cleanest
toilets around.
</li><li> <b>Swatantra Sangrama Sangrahalaya</b> (Museum of the Independence
Movement) – To the left after the Chatta Chowk, this is a reasonably
well-presented museum on the history of independence activism in India,
starting from the Mutiny of 1857 all the way to Gandhi.
</li> </see>


I got an html format by hpricot and its search method

i wanna covert to xml format i mean i able to got inner_text between span
that is in case <span class="mw-headline">Red Fort</span>

Red Fort got and taken in temp variable as t1  and between <b>Chatta
Chowk</b> taken as t2 and between  <li>....</li> as t3

So i pulling text from html so i wanna convert to xml format

the format is
<See>
<LandMarkType>Red Fort<LandMarkname>Chatta Chowk
<Description> Chatta Chowk (Covered Bazaar) – True to the name, this is a
covered bazaar between the gate and the fort itself, now filled with
souvenir hawkers.
</Description>
</LandMarkname>
</LandMarkType>
</See>

like i have to do this kind of structure i ,So can you help me to convert

Regards

Prashant

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to