From: TMG <tm...@nc...> - 2004-12-06 16:31:13
|
There may be other problems, but the <input> html is not well formed which may be throwing the SAX exception. Try <input type="submit" value="Send"/><input type="reset"/>. Tom Gordon eel...@ph... wrote: >When I try to post the following query tot the database I get an error: > ><?xml version="1.0" encoding="UTF-8"?> ><query xmlns="http://exist.sourceforge.net/NS/exist" > start="1" max="20"> > <text> > for \$speech in //SPEECH[LINE &= 'corrupt*'] > order by \$speech/SPEAKER[1] > return > <hit>{\$speech}</hit> > </text> > <properties> > <property name="indent" value="yes"/> > </properties> ></query> > >With the form: > ><!DOCTYPE html PUBLIC "-//W3C//DTD HTML 3.2//EN"> ><html> ><head> > <title>Test</title> ></head> ><body> > <form method="POST" action="http://localhost:8080/exist/servlet/db/"> > <p> > <textarea name="query" rows="20" cols="80"> > xupdate query here > </textarea> <input type="submit" value="Send"><input type="reset"> > </p> > </form> ></body> ></html> > >I get the following error: > >HTTP ERROR: 400 SAX exception while parsing request: Content is not >allowed in prolog. >RequestURI=/exist/servlet/db/ > >How do I post an xupdate query to the eXist database? > >Sorry if this is a trivial question, I was not able to search the >mailinglist archive as it was down for maintenance at this moment. > > >------------------------------------------------------- >SF email is sponsored by - The IT Product Guide >Read honest & candid reviews on hundreds of IT Products from real users. >Discover which products truly live up to the hype. Start reading now. >http://productguide.itmanagersjournal.com/ >_______________________________________________ >Exist-open mailing list >Exi...@li... >https://lists.sourceforge.net/lists/listinfo/exist-open > > > |