hi ...

I am noticing a problem where some valid XUpdate's fail when sent over
XML/RPC to Xindice.  By making a trivial change to the update (deleting 
some lines of non-markup text) I can always make it succeed.

The failing update is attached as update.xml.  When I send this update
over XML/RPC, the client receives "500 Connection reset by peer" and the
Xindice server emits the following message:

Fatal error parsing XML: org.xml.sax.SAXParseException: invalid Character
Entitiy

(With other updates, I have also seen a message saying that an invalid
character 0 appeared in the input.)

If lines 11 through 16 of update.xml are deleted (all but one of the lines
of "a"'s) then the update will succeed.
Either version of update.xml will succeed if I pass it via the Java
interface instead of XML/RPC.
The initial state of my database is defined by adding the attached
document "example.xml".

I am wondering if there might be some sort of buffering problem in the way
updates are read from the XML/RPC interface.
Any help or suggestions would be appreciated.

thanks,

        Jonathan Mark
<X:modifications version="1.0" xmlns:X="http://www.xmldb.org/xupdate";>
  <X:append select="/[EMAIL PROTECTED]'jhmark']/calendar">
    <X:element name="event">
      <X:attribute name="pmid">2</X:attribute>
      <X:attribute name="event">0</X:attribute>
      <X:element name="description"><X:text>Pizza</X:text></X:element>
      <X:element name="alarm">
        <X:element name="advance">
          <X:text>
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
          </X:text>
        </X:element>
      </X:element>
      <X:element name="begin">
        <X:attribute name="sec">0</X:attribute>
        <X:attribute name="min">30</X:attribute>
        <X:attribute name="hour">18</X:attribute>
        <X:attribute name="mday">7</X:attribute>
        <X:attribute name="mon">11</X:attribute>
        <X:attribute name="year">100</X:attribute>
        <X:attribute name="wday">4</X:attribute>
        <X:attribute name="yday">341</X:attribute>
        <X:attribute name="isdst">0</X:attribute>
      </X:element>
      <X:element name="category"><X:text>0</X:text></X:element>
      <X:element name="end">
        <X:attribute name="sec">0</X:attribute>
        <X:attribute name="min">30</X:attribute>
        <X:attribute name="hour">19</X:attribute>
        <X:attribute name="mday">7</X:attribute>
        <X:attribute name="mon">11</X:attribute>
        <X:attribute name="year">100</X:attribute>
        <X:attribute name="wday">4</X:attribute>
        <X:attribute name="yday">341</X:attribute>
        <X:attribute name="isdst">0</X:attribute>
      </X:element>
    </X:element>
  </X:append>
  <X:append select="/[EMAIL PROTECTED]'jhmark']/calendar">
    <X:element name="event">
      <X:attribute name="pmid">3</X:attribute>
      <X:attribute name="event">0</X:attribute>
      <X:element name="description"><X:text>Rg party</X:text></X:element>
      <X:element name="category"><X:text>0</X:text></X:element>
      <X:element name="end">
        <X:attribute name="sec">0</X:attribute>
        <X:attribute name="min">30</X:attribute>
        <X:attribute name="hour">22</X:attribute>
        <X:attribute name="mday">13</X:attribute>
        <X:attribute name="mon">9</X:attribute>
        <X:attribute name="year">100</X:attribute>
        <X:attribute name="wday">5</X:attribute>
        <X:attribute name="yday">286</X:attribute>
        <X:attribute name="isdst">1</X:attribute>
      </X:element>
    </X:element>
  </X:append>
</X:modifications>
<?xml version="1.0" encoding="utf-8" ?>
<user name="jhmark">
  <calendar>
    <status locked="0" />
  </calendar>
</user>

Reply via email to