aspose file tools*
The moose likes XML and Related Technologies and the fly likes parsing a description tag of an xml in java Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » XML and Related Technologies
Bookmark "parsing a description tag of an xml in java" Watch "parsing a description tag of an xml in java" New topic
Author

parsing a description tag of an xml in java

ufuk garip
Greenhorn

Joined: Aug 03, 2014
Posts: 1
I want to parse this tag while ı debugging ı can get all of it but when ı run, ı cant get this part "Beyoğlu'nda şiddetli yağış sokakları göle çevirdi. Vatandaşlar ve araçlar aniden bastıran yağmur nedeniyle ilerlemekte zorlandı. "
of it.
Can anyone help me please!!!

<description><a href="http://www.hurriyet.com.tr/gundem/26930931.asp"><img src="http://img.hurriyet.com.tr/_np/8767/25428767.jpg" alt="Bakan Yazıcı: Yağmuru zevkle izledim" align="left" style="padding-right:5px;" border="0" width="80" height="80" /></a>Beyoğlu'nda şiddetli yağış sokakları göle çevirdi. Vatandaşlar ve araçlar aniden bastıran yağmur nedeniyle ilerlemekte zorlandı.</description>
William Brogden
Author and all-around good cowpoke
Rancher

Joined: Mar 22, 2000
Posts: 12823
    
    5
I am going to take a SWAG *scientific wild ass guess" that you are parsing with SAX.

In SAX parsing, the characters() method can get called once or many times with content from a Text node. It is up to you the programmer to accumulate characters until the end of the node is reached.

The symptom of not doing this correctly is exactly what you see.

Bill
 
 
subject: parsing a description tag of an xml in java