Version française
Home     About     Download     Resources     Contact us    
Browse thread
[Caml-list] (PXP) bug?: stdin input
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: -- (:)
From: SooHyoung Oh <shoh@d...>
Subject: [Caml-list] (PXP) bug?: stdin input
While testing PXP (XML parser for OCaml),
I met some STRANGE thing for stdin input of xml file.

I fixed "readme" example a little in order to use it for stdin as well as
file,
it works for file input, but it produces the following error when I use
stdin.

    % readme -html test.xml
    ... (OK)
    % readme -html < test.xml
    In entity [toplevel] = PRIVATE, at line 2, position 36:
    ERROR: (1) No input method available for this external entity: [dtd] =
SYSTEM "r
    eadme.dtd"

Is it difficult to use stdin instead of file input in PXP?

You can find main.ml.diff in http://www.duonix.com/~shoh/ocaml/main.ml.diff
and test.xml in http://www.duonix.com/~shoh/ocaml/test.xml

Thanks in advance.

---
SooHyoung Oh

-------------------
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