List Info

Thread: NXLucene XMLRPC: NOT WELL FORMED error




NXLucene XMLRPC: NOT WELL FORMED error
user name
2007-05-19 18:10:27
I have the following xml that sent by xmlrpc to index the
content.  I
am getting a "NOT WELL FORMED." error.

I want to know how the data should be structured and sent to
NXLucene
Server  to index.

thnx.
=============================
MY XML:

xml_to_index = """<?xml
version="1.0" encoding="UTF-8"?>
       <doc>
         <fields>
           <field id="title"
value="%s" type=text>
           </field>
         </fields>
       </doc>""" % (title)

uid = 1

s = xmlrpclib.Server('http://192.168.196.131:91
80')
s.indexDocument(uid, xml_to_index, False, False)


================================================
MY ERRORS:

2007/05/17 01:43 EDT [HTTPChannel,0,192.168.196.131]
192.168.196.131 -
- [17/May/2007:05:43:00 +0000] "POST /RPC2
HTTP/1.0" 200 297 "-"
"xmlrpclib.py/1.0.1 (by www.pythonware.com)"
2007/05/17 01:43 EDT [HTTPChannel,1,192.168.196.131]
Traceback (most
recent call last):
         File
"/usr/lib/python2.4/site-packages/twisted/web/http.py&q
uot;, line
601, in requestReceived
           self.process()
         File
"/usr/lib/python2.4/site-packages/twisted/web/server.py
", line
160, in process
           self.render(resrc)
         File
"/usr/lib/python2.4/site-packages/twisted/web/server.py
", line
167, in render
           body = resrc.render(self)
         File
"/usr/lib/python2.4/site-packages/twisted/web/xmlrpc.py
", line
117, in render
           defer.maybeDeferred(function, *args).addErrback(
       --- <exception caught here> ---
         File
"/usr/lib/python2.4/site-packages/twisted/internet/defe
r.py",
line 107, in maybeDeferred
           result = f(*args, **kw)
         File "src/nxlucene/server/xmlrpc.py",
line 80, in xmlrpc_indexDocument

         File "src/nxlucene/server/xmlrpc.py",
line 169, in _indexDocument

         File "src/nxlucene/server/xmlquery.py",
line 47, in __init__

         File "<string>", line 85, in XML

       exceptions.SyntaxError: not well-formed (invalid
token): line
7, column 47

2007/05/17 01:43 EDT [HTTPChannel,1,192.168.196.131]
192.168.196.131 -
- [17/May/2007:05:43:13 +0000] "POST /RPC2
HTTP/1.0" 200 263 "-"
"xmlrpclib.py/1.0.1 (by www.pythonware.com)"
_______________________________________________
cps-users mailing list
cps-userslists.nuxeo.com
htt
p://lists.nuxeo.com/mailman/listinfo/cps-users

[1]

about | contact  Other archives ( Real Estate discussion Medical topics )