Re: invalid XML character

2008-03-02 Thread Walter Underwood
Section 2.2 of the XML spec. Three characters from the 0x00-0x19 block are allowed: 0x09, 0x0A, 0x0D. Annotated version: http://www.xml.com/axml/testaxml.htm Section 2.2 in current official spec: http://www.w3.org/TR/REC-xml/#charsets wunder On 3/2/08 6:44 AM, "Brian Whitman" <[EMAIL PROTECTED]

Re: invalid XML character

2008-03-02 Thread Brian Whitman
I'm pretty sure it's a bad idea :-) I was just explaining why it wasn't really feasible to do on the server side. This particular case came from this solr.py: https://issues.apache.org/jira/browse/SOLR-216 By the way, is that going to become the official 1.3 solr python client? It would

Re: invalid XML character

2008-03-01 Thread Yonik Seeley
On Sat, Mar 1, 2008 at 11:26 PM, Christian Wittern <[EMAIL PROTECTED]> wrote: > Yonik Seeley wrote: > > On Sat, Mar 1, 2008 at 6:47 PM, Leonardo Santagada <[EMAIL PROTECTED]> > wrote: > >> Can't he put this code on the server before the xml parsing somehow? I > >> would do like you said and do

Re: invalid XML character

2008-03-01 Thread Christian Wittern
Yonik Seeley wrote: On Sat, Mar 1, 2008 at 6:47 PM, Leonardo Santagada <[EMAIL PROTECTED]> wrote: Can't he put this code on the server before the xml parsing somehow? I would do like you said and do it on the client, but just out of curiosity is this really impossible? We'd have to

Re: invalid XML character

2008-03-01 Thread Yonik Seeley
On Sat, Mar 1, 2008 at 6:47 PM, Leonardo Santagada <[EMAIL PROTECTED]> wrote: > On 01/03/2008, at 18:35, Yonik Seeley wrote: > > You could also scan for such chars on the client side before the XML > > is produced. > > Can't he put this code on the server before the xml parsing somehow? I > wo

Re: invalid XML character

2008-03-01 Thread Leonardo Santagada
On 01/03/2008, at 18:35, Yonik Seeley wrote: You could also scan for such chars on the client side before the XML is produced. Can't he put this code on the server before the xml parsing somehow? I would do like you said and do it on the client, but just out of curiosity is this really i

Re: invalid XML character

2008-03-01 Thread Yonik Seeley
On Sat, Mar 1, 2008 at 4:22 PM, Brian Whitman <[EMAIL PROTECTED]> wrote: > Once in a while we get this > > javax.xml.stream.XMLStreamException: ParseError at [row,col]:[4,790470] > [14:32:21.877] Message: An invalid XML character (Unicode: 0x6) was [...] > Our data comes from all sorts of places