Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

problem with SJSXP implementation parsers

 
Amarnath Sarkar
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi, i am parsing an xml file using Stax.

When i am using development jars the parser is extracting the text(CHARACTER) of a tag like this...

"I researched these covers for months trying to find the perfect one. I also like that it has its own belt, so we dont have to use the nasty ones that are attached to the store carts.
We will use this cover for at least a few years, so it was well worth the money."

But using sjsxp i am getting only

"
We will use this cover for at least a few years, so it was well worth the money."

First sentences are ignored and a newline is entered.
Can you suggest anything to resolve this problem?
 
Campbell Ritchie
Sheriff
Pie
Posts: 48972
60
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Welcome to the Ranch

That question is too difficult for "beginning Java", so I shall move the thread.
 
Martin Vanyavchich
Ranch Hand
Posts: 241
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Welcome to Javaranch Amarnath.

Could you please post your code, that does the work. Without it there's little we can do.
 
Amarnath Sarkar
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi, first of all thanks for the reply.


i can not give you the entire code....but i can tell you what i am doing followed by snippets from the entire code..

This is where i am creating the xmlStreamReader-



and in the same class i am using -


The problem is that the comment field is giving wrong output as mentioned in the first post when used with SJSXP.jar.With stax-1.1.2-dev.jar it is working fine.


 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic