File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes XML and Related Technologies and the fly likes problem with SJSXP implementation parsers 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 "problem with SJSXP implementation parsers" Watch "problem with SJSXP implementation parsers" New topic
Author

problem with SJSXP implementation parsers

Amarnath Sarkar
Greenhorn

Joined: Aug 29, 2010
Posts: 2
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

Joined: Oct 13, 2005
Posts: 36514
    
  16
Welcome to the Ranch

That question is too difficult for "beginning Java", so I shall move the thread.
Martin Vanyavchich
Ranch Hand

Joined: Sep 16, 2008
Posts: 241
Welcome to Javaranch Amarnath.

Could you please post your code, that does the work. Without it there's little we can do.


SCJP 6, OCMJD 6, OCPJWSD 6
I no good English.
Amarnath Sarkar
Greenhorn

Joined: Aug 29, 2010
Posts: 2
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.


 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: problem with SJSXP implementation parsers
 
Similar Threads
Experience vs. Education - a new twist
My review on JQPlus
OOo splash screen
The reality of the job market (from the other side)
Recent interview question - Find a pair in array whose sum is x.