This week's giveaway is in the Groovy forum.
We're giving away four copies of Groovy Fundamentals video training course and have Ken Kousen on-line!
See this thread for details.
The moose likes XML and Related Technologies and the fly likes [#text: String] being displayed in output Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Groovy Fundamentals video training course this week in the Groovy forum!
JavaRanch » Java Forums » Engineering » XML and Related Technologies
Reply locked New topic
Author

[#text: String] being displayed in output

Gaurav Pawar
Ranch Hand

Joined: Sep 12, 2006
Posts: 37
Hi,
My Bean parses the data in an XML file, prepares a string and passes it to a JSP Page. When i am to display this string in the browser it shows me
[#text: abcd][#text: efghi]. Please can anyone suggest how do i rectify this?

When i run the bean alone i see the output as "abcd" and "efghi".

Gaurav.
Paul Clapham
Sheriff

Joined: Oct 14, 2005
Posts: 19553
    
  10

"gkpawar Pawar", welcome to the JavaRanch.

We're a friendly group, but we do require members to have valid display names.

Display names must be your first name, a space, then your last name. Fictitious names are not allowed.

Please edit your profile and correct your display name since accounts with invalid display names get deleted.

In answer to your question, probably your bean is using the toString() method of a node to produce the node's text value. This is implemented differently in different DOM implementations and should not be relied upon.
Paul Clapham
Sheriff

Joined: Oct 14, 2005
Posts: 19553
    
  10

Closing this topic.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: [#text: String] being displayed in output