Hi,
just to make sure that email does not fool around with characters, can
you please create a new Jira issue and attach all relevant files so that
we can replay this problem ?
Thanks in advance
Werner
On 05.01.2011 15:45, Mohit Raj wrote:
Yes am sure the problem relates to unmarshalling. Below is an example and
also attached is the problem example.
=========================================================
Problem causing XML fragment:
<store>REGT# 1 1 1 148 90</store>
Castor Unmarshaller bebug Output:
#startElement: store
#characters: REGT#
#characters: 1 1 1 148 90
#endElement: store
=========================================================
If you observe in the output above content of store element is being shown
in 2 lines (#characters) which is because of the fact that a new line
character is introduced.
Pl. see the attached full XML document. Also, do ignore the 14111 character
position(mentioned in earlier in thread) as that was the position reported
of tab delimited file from which the attached XML has been generated.
Thanks,
Mohit Raj
-----Original Message-----
From: Werner Guttmann [mailto:[email protected]]
Sent: Wednesday, January 05, 2011 7:36 PM
To: [email protected]
Cc: Mohit Raj
Subject: Re: [castor-user] Line breaks during Unmarshall process
Hi,
I am not sure I can follow fully. Can you please provide us with some
sample XML to highlight the problem at hand ? And are you sure the
problem is a problem related to unmarshalling, i.e. producing Java
object instances from XML document(s) ?
Cheers
Werner
On 05.01.2011 12:36, Mohit Raj wrote:
Hi,
I have been looking around the web and specifically on Castor site but in
vain. I am facing the problem of new line character being introduced when
using the org.exolab.castor.xml.Unmarshaller object. This happenes exactly
when the character 14111 in the xml to be imported and converted to java
objects has a white space on it. I have seen some suggestions like
OutputFormat.setLineWidth(16384), but this method doesn't exist in my
version of castor library (1.3 and 1.0.2), though at the same time, not
sure
if this would be of any help, as am unmarshalling against this being a
solution for marshalling.
Any help would be highly appreciated and let me know if you require any
more
details.
Thanks,
Mohit
---------------------------------------------------------------------
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email