File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
Win a copy of Clojure in Action this week in the Clojure forum!
    Bookmark Topic Watch Topic
  • New Topic

[#text: String] being displayed in output

 
Gaurav Pawar
Ranch Hand
Posts: 37
  • 0
  • Mark post as helpful
  • send pies
  • Report post to moderator
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
Pie
Posts: 20196
26
MySQL Database
  • 0
  • Mark post as helpful
  • send pies
  • Report post to moderator
"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
Pie
Posts: 20196
26
MySQL Database
  • 0
  • Mark post as helpful
  • send pies
  • Report post to moderator
Closing this topic.
 
I agree. Here's the link: http://aspose.com/file-tools
    Bookmark Topic Watch Topic
  • New Topic