Thanks for clarification. I had an xml definition as first line of the document I've tried to import. Vladimir
-----Original Message----- From: Murray Altheim [mailto:[EMAIL PROTECTED] Sent: 12 February 2004 10:34 To: [email protected] Subject: Re: Content is not allowed in prolog [EMAIL PROTECTED] wrote: > In a message dated 2/12/2004 10:18:30 AM GMT Standard Time, > [EMAIL PROTECTED] writes: > > >>Hi All, >>I'm getting the following error message when I try to import a well-formed >>and valid xml document in xindice1.1b3 db: >> >>[DEBUG] DatabaseImpl - -Using SAX Driver: 'xerces' >>[DEBUG] DatabaseImpl - -Using Service Location: '/xindice/' >>[DEBUG] CollectionImpl - -Using URL: 'http://localhost:8080/xindice/' >>[Fatal Error] :2:1: Content is not allowed in prolog. >>ERROR : Content is not allowed in prolog. >> >>Xindice Command Tools v1.1b3 >> >>What does it mean? >> >>Vladimir > > > Vladimir, > > It would be useful to see the prolog of the document. > > Andrew Watt In SGML and XML, a document is composed of two sequential parts, the prolog and the instance. You can see this in an HTML example: 1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" 2 "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> 3 <html xmlns="http://www.w3.org/1999/xhtml"> 4 <head> 5 <title>The Symbol Grounding Problem</title> 6 </head> 7 <body> 8 </body> 9 </html> In this example, the prolog is lines 1-2, the instance begins on line 3. The prolog includes the DOCTYPE declaration, the external subset (called the DTD), and the internal subset (which you seldom see but it's legal). The document instance includes the document element (in this case <html> and all of its descendent content). You generally don't want to see the prolog, and you generally don't want to store it. The DOCTYPE declaration provides references to DTD, which is instantiated as part of the process of validating the document. You may want to store the reference(s), but you wouldn't want to store the DTD each time you store the document, as that would be a real waste (the DTD is often bigger than the document). It sounds like your well-formed and valid document isn't being considered as such by the XML processor. The error message indicates that there is content (i.e., either elements or character data) in the part of the document considered as the prolog. You may be missing the last ">" on line 2 above, as that would normally be the beginning of the internal subset. If it found "<html" (or something similar), you might get that error. Murray ...................................................................... Murray Altheim http://kmi.open.ac.uk/people/murray/ Knowledge Media Institute The Open University, Milton Keynes, Bucks, MK7 6AA, UK . "I'm a war president. I make decisions here in the Oval Office in foreign policy matters with war on my mind." -- George W. Bush http://news.bbc.co.uk/1/hi/world/americas/3470139.stm "This is the new Mein Kampf. Only Hitler did not have nuclear weapons. It's the scariest document I've ever read in my life." -- Dr. Helen Caldicott, referring to the Project for the New American Century report entitled "Rebuilding America's Defenses: Strategy, Forces and Resources For a New Century" http://home.earthlink.net/~platter/neo-conservatism/pnac.html "This report proceeds from the belief that America should seek to preserve and extend its position of global leadership by maintaining the preeminence of U.S. military forces." [op. cit.] "[...] and advanced forms of biological warfare that can target specific genotypes may transform biological warfare from the realm of terror to a politically useful tool." [op. cit.] "This is a blueprint for US world domination." http://www.guardian.co.uk/comment/story/0,3604,1036571,00.html This communication is confidential and intended solely for the addressee(s). Any unauthorized review, use, disclosure or distribution is prohibited. If you believe this message has been sent to you in error, please notify the sender by replying to this transmission and delete the message without disclosing it. Thank you. E-mail including attachments is susceptible to data corruption, interruption, unauthorized amendment, tampering and viruses, and we only send and receive e-mails on the basis that we are not liable for any such corruption, interception, amendment, tampering or viruses or any consequences thereof.
