End of line chars being treated as content by SAX 2003-05-04 - By Andy Taylor
<html><div style='background-color:'><DIV>Hi, I'm having a problem when deploying my Java/SAX application from an OSX test environment to my Linux server.</DIV> <DIV> </DIV> <DIV>I am using the following:</DIV> <DIV>Test environment: OSX running Netbeans (with Tomcat4) Java 1.4.1, latest Xerces</DIV> <DIV>Server: Linux running JRun Java 1.4.1, latest Xerces</DIV> <DIV> </DIV> <DIV>I put some debugging into my SAX content handler, which displayed the current element name and characters. If I parse something like:</DIV> <DIV> </DIV> <DIV><element1></DIV> <DIV> <element2>Testing1</element2></DIV> <DIV> <element3></DIV> <DIV> <element4>Testing2</element4></DIV> <DIV> </element3></DIV> <DIV></element1></DIV> <DIV> </DIV> <DIV>My test version would report:</DIV> <DIV>element2 = Testing1</DIV> <DIV>element4 = Testing2</DIV> <DIV> </DIV> <DIV>..as expected. However, the version on my Linux server reports:</DIV> <DIV>element1=</DIV> <DIV> </DIV> <DIV>element2=Testing1</DIV> <DIV>element1=</DIV> <DIV> </DIV> <DIV>element3=</DIV> <DIV> </DIV> <DIV>element4=Testing2</DIV> <DIV>element3=</DIV> <DIV> </DIV> <DIV>element1=</DIV> <DIV> </DIV> <DIV>...which implies that Xerces is treating the end of line characters as actual content.</DIV> <DIV> </DIV> <DIV>Can anyone explain what is going on? Is there a property/feature I should set which I haven't set? I have had problems in the past with NetBeans apparently "setting" certain properties for me which have caused problems when deploying on the server.</DIV> <DIV> </DIV> <DIV>Best regards,<BR>Andy</DIV> <DIV> </DIV></div><br clear=all><hr>Send music and picture to your friends with MSN Messenger. <a href="http://g.msn.com/8HMWENUK/2743">Download it FREE here.</a> </html>
--------------------------------------------------------------------- To unsubscribe, e-mail: xerces-j-user-unsubscribe@(protected) For additional commands, e-mail: xerces-j-user-help@(protected)
|
|