From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (from majordomo@localhost) by pauillac.inria.fr (8.7.6/8.7.3) id VAA29379; Tue, 4 Jun 2002 21:55:37 +0200 (MET DST) X-Authentication-Warning: pauillac.inria.fr: majordomo set sender to owner-caml-list@pauillac.inria.fr using -f Received: from nez-perce.inria.fr (nez-perce.inria.fr [192.93.2.78]) by pauillac.inria.fr (8.7.6/8.7.3) with ESMTP id VAA29375 for ; Tue, 4 Jun 2002 21:55:36 +0200 (MET DST) Received: from mailrelay1.inwind.it (mailrelay1.inwind.it [212.141.54.101]) by nez-perce.inria.fr (8.11.1/8.11.1) with ESMTP id g54JtaL26790 for ; Tue, 4 Jun 2002 21:55:36 +0200 (MET DST) Received: from dalamar.takhisis.org (62.98.127.8) by mailrelay1.inwind.it (6.5.015) id 3CAA37A302BFC681 for caml-list@inria.fr; Tue, 4 Jun 2002 21:55:28 +0200 Received: from lordsoth.takhisis.org (lordsoth.takhisis.org [192.168.1.119]) by dalamar.takhisis.org (8.12.3/8.12.3/Debian-10) with ESMTP id g54JtNgE001477 (version=TLSv1/SSLv3 cipher=EDH-RSA-DES-CBC3-SHA bits=168 verify=FAIL) for ; Tue, 4 Jun 2002 21:55:25 +0200 Received: from lordsoth.takhisis.org (lordsoth.takhisis.org [192.168.1.119]) by lordsoth.takhisis.org (8.12.3/8.12.3/Debian-12) with ESMTP id g54JtNtF013338 (version=TLSv1/SSLv3 cipher=EDH-RSA-DES-CBC3-SHA bits=168 verify=NO) for ; Tue, 4 Jun 2002 21:55:23 +0200 Received: (from zack@localhost) by lordsoth.takhisis.org (8.12.3/8.12.3/Debian-12) id g54JtNRm013336 for caml-list@inria.fr; Tue, 4 Jun 2002 21:55:23 +0200 Date: Tue, 4 Jun 2002 21:55:23 +0200 From: Stefano Zacchiroli To: Inria Ocaml Mailing List Subject: Re: [Caml-list] PXP Message-ID: <20020604195523.GF13247@cs.unibo.it> Mail-Followup-To: Inria Ocaml Mailing List References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.3.28i Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk On Tue, Jun 04, 2002 at 09:19:08AM -0700, Gaurav Chanda wrote: > > > examples.getStateName > > > 41 > > > > > gave this error at runtime: > Fatal error: exception Pxp_types.At("In entity [toplevel] = ANONYMOUS, at line 2, position 12:", _) > > Could anybody help me solve this problem ? Which function are you using to parse the above XML document? If you are using functions like "parse_document_entity" you will get the reported error because your XML document is _not_ valid, it doesn't refer to any DTD. Fixes: - use a DTD - use a non validating parsing, using functions like "parse_wfdocument_entity" Cheers. -- Stefano Zacchiroli - undergraduate student of CS @ Univ. Bologna, Italy zack@cs.unibo.it | ICQ# 33538863 | http://www.cs.unibo.it/~zacchiro "I know you believe you understood what you think I said, but I am not sure you realize that what you heard is not what I meant!" -- G.Romney ------------------- To unsubscribe, mail caml-list-request@inria.fr Archives: http://caml.inria.fr Bug reports: http://caml.inria.fr/bin/caml-bugs FAQ: http://caml.inria.fr/FAQ/ Beginner's list: http://groups.yahoo.com/group/ocaml_beginners