Re: [dom4j-user] problem on parsing backspace character

2007-01-11 Thread Edwin Dankert
> Thanks you, anyone know if there are any workaround to encode backspace #x8 > > Or any version of xml parser can parse the backspace #x8? XML 1.1 allows an 'escaped' version of the backspace character, so you could try and change the version number: Note: this will only work for XML 1.1 parse

Re: [dom4j-user] problem on parsing backspace character

2007-01-10 Thread Chris Lai /EEL/IT
PM To: Chris Lai /EEL/IT Cc: dom4j-user@lists.sourceforge.net Subject: Re: [dom4j-user] problem on parsing backspace character The #x8 (backspace) character is illegal in XML 1.0, all characters from #x1 to #x1F are illegal in XML 1.0 (even escaped) except for #x9 (tab), #xA (line feed) #xD

Re: [dom4j-user] problem on parsing backspace character

2007-01-10 Thread Edwin Dankert
The #x8 (backspace) character is illegal in XML 1.0, all characters from #x1 to #x1F are illegal in XML 1.0 (even escaped) except for #x9 (tab), #xA (line feed) #xD (carriage return). Regards, Edwin -- http://www.edankert.com/ -

Re: [dom4j-user] problem on parsing backspace character

2007-01-10 Thread Richard Eckart
e xml with > > Regards, > > Chris Lai > > 29597369 > GET 6303 > > > -----Original Message- > From: Richard Eckart [mailto:[EMAIL PROTECTED] > Sent: Wednesday, January 10, 2007 4:29 PM > To: Chris Lai /EEL/IT > Cc: dom4j-user@lists.sourceforge.net > S

Re: [dom4j-user] problem on parsing backspace character

2007-01-10 Thread Chris Lai /EEL/IT
- From: Richard Eckart [mailto:[EMAIL PROTECTED] Sent: Wednesday, January 10, 2007 4:29 PM To: Chris Lai /EEL/IT Cc: dom4j-user@lists.sourceforge.net Subject: Re: [dom4j-user] problem on parsing backspace character Hi Chris, It's due to the XML specifications. The backspace character

Re: [dom4j-user] problem on parsing backspace character

2007-01-10 Thread Richard Eckart
Hi Chris, It's due to the XML specifications. The backspace character is not a valid XML character. If you want to have it in your documents, you need to escape it. It seems there is a bug that causes it to fail to escape the backspace char when a XML document is serialized to String. What

[dom4j-user] problem on parsing backspace character

2007-01-09 Thread Chris Lai /EEL/IT
hi, I am having a problem on parsing xml with backspace (0x0008) char. (The tab char (0x0009) is fine) It turns out that dom4j cannot parse a xml with backspace char even the xml is generated by the dom4j itself. To demo the problem, here is the code section: import org.dom4j.Document; import