logo       
Google Custom Search
    AddThis Social Bookmark Button

Xerces Unmarshaller bug removing single whitespace: msg#00060

Subject: Xerces Unmarshaller bug removing single whitespace
Hello ,

When using Xerces (2.9.0 as well as 2.9.1) for unmarshalling it removes
(from line 101:)

<subjectmark><![CDATA[No specific subject]]></subjectmark>

the single whitespace between "specific" and "subject". In the loaded object
the String value " No specificsubject" can be found.

The strange behavior is, that if I enter some linebreaks obove the last
object tag (question) from 

   </question>
   <question>

To 

   </question>






   <question>

the bug does not occur. Also strange is that the same tag (subjectmark) with
the same value occurs many times in the file, but only this one is parsed
wrongly.

My questions are:
1) Does anybody can tell me if I did something wrong?  
2) Ist his a bug? Can anybody tell me how to report this bug / in which
component? The bug reporting page is awfully complicated to do so. I only
can read old bug reports but no data entry page can be found.

Many thanks in advance, 
Thimo 


P.S.: My java code is:

FileInputStream fis = new FileInputStream(aFileToImport); // is attached
file AnonymizedImport.xml
InputStreamReader isr = new InputStreamReader(fis,
Exporter.DEFAULT_ENCODING); // means UTF8

Unmarshaller tempUnmarshaller = new Unmarshaller();
Mapping tempMapping = new Mapping();
 
tempMapping.loadMapping(Exporter.class.getClassLoader().getResource(Exporter
.XML_MAPPING_FILE)); // see attached file import.xml
tempUnmarshaller.setMapping(tempMapping);
tempUnmarshaller.setDebug(stdlog.isDebugEnabled());
ImportExportBean tempImportBean = (ImportExportBean)
tempUnmarshaller.unmarshal(isr);

Attachment: AnonymizedImport.xml
Description: Text Data

Attachment: import.xml
Description: Text Data

---------------------------------------------------------------------
To unsubscribe, e-mail: j-users-unsubscribe@xxxxxxxxxxxxxxxxx
For additional commands, e-mail: j-users-help@xxxxxxxxxxxxxxxxx

Try Searching:
servers, voip, java, networking, microsoft ...
<Prev in Thread] Current Thread [Next in Thread>