On closer inspection, the problem seems to be that the server is not ignoring any ignorable white space, including tabs spaces and end-of-line chars.

I see there is an include-ignorable-whitespace feature for DOM but can't seem to find anything similar for SAX.

Can anyone help me out?

Many thanks,
Andy

>From: "Andy Taylor" <[EMAIL PROTECTED]>
>Reply-To: [EMAIL PROTECTED]
>To: [EMAIL PROTECTED]
>Subject: End of line chars being treated as content by SAX
>Date: Sun, 04 May 2003 15:42:58 +0100
>
Hi, I'm having a problem when deploying my Java/SAX application from an OSX test environment to my Linux server.
 
I am using the following:
Test environment: OSX running Netbeans (with Tomcat4) Java 1.4.1, latest Xerces
Server: Linux running JRun Java 1.4.1, latest Xerces
 
I put some debugging into my SAX content handler, which displayed the current element name and characters. If I parse something like:
 
<element1>
  <element2>Testing1</element2>
  <element3>
    <element4>Testing2</element4>
  </element3>
</element1>
 
My test version would report:
element2 = Testing1
element4 = Testing2
 
..as expected. However, the version on my Linux server reports:
element1=
 
element2=Testing1
element1=
 
element3=
 
element4=Testing2
element3=
 
element1=
 
...which implies that Xerces is treating the end of line characters as actual content.
 
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.
 
Best regards,
Andy
 



Chat with friends online - download MSN Messenger today.
--- Begin Message ---
Hi, I'm having a problem when deploying my Java/SAX application from an OSX test environment to my Linux server.
 
I am using the following:
Test environment: OSX running Netbeans (with Tomcat4) Java 1.4.1, latest Xerces
Server: Linux running JRun Java 1.4.1, latest Xerces
 
I put some debugging into my SAX content handler, which displayed the current element name and characters. If I parse something like:
 
<element1>
  <element2>Testing1</element2>
  <element3>
    <element4>Testing2</element4>
  </element3>
</element1>
 
My test version would report:
element2 = Testing1
element4 = Testing2
 
..as expected. However, the version on my Linux server reports:
element1=
 
element2=Testing1
element1=
 
element3=
 
element4=Testing2
element3=
 
element1=
 
...which implies that Xerces is treating the end of line characters as actual content.
 
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.
 
Best regards,
Andy
 


Send music and picture to your friends with MSN Messenger. Download it FREE here. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
--- End Message ---
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to