caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
From: Stefano Zacchiroli <zack@cs.unibo.it>
To: Inria Ocaml Mailing List <caml-list@inria.fr>
Subject: Re: [Caml-list] PXP
Date: Tue, 4 Jun 2002 21:55:23 +0200	[thread overview]
Message-ID: <20020604195523.GF13247@cs.unibo.it> (raw)
In-Reply-To: <IICHGOGGMCFCMAAA@mailcity.com>

On Tue, Jun 04, 2002 at 09:19:08AM -0700, Gaurav Chanda wrote:
> <?xml version="1.0"?>
> <methodCall>
>   <methodName>examples.getStateName</methodName>
>   <params>
>     <param>
>       <value><i4>41</i4></value>
>       </param>
>     </params>
>   </methodCall>
> 
> 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


  reply	other threads:[~2002-06-04 19:55 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-06-04 16:19 Gaurav Chanda
2002-06-04 19:55 ` Stefano Zacchiroli [this message]
2002-06-04 22:53 ` Gerd Stolpmann
  -- strict thread matches above, loose matches on Subject: below --
2002-06-24  8:58 Alessandro Baretta
2002-06-24  9:06 ` Stefano Zacchiroli
2002-06-24  9:14 ` Claudio Sacerdoti Coen
2002-06-24  9:23   ` Alessandro Baretta
2002-05-31 15:58 Gaurav Chanda
2002-05-31 16:12 ` Gerd Stolpmann

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20020604195523.GF13247@cs.unibo.it \
    --to=zack@cs.unibo.it \
    --cc=caml-list@inria.fr \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).