Browse thread
[Caml-list] How to declare a string with quotation marks inside
- amata@t...
[
Home
]
[ Index:
by date
|
by threads
]
[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
| Date: | -- (:) |
| From: | amata@t... |
| Subject: | [Caml-list] How to declare a string with quotation marks inside |
Hi list
I need to declare a string and this string has quotation marks
inside. Ocaml don´t let me do that, because believes that the first
quotation mark of the string is the last quotation mark of the string
declaration.
The string is:
<?xml version="1.0" encoding="ISO-8859-1"?>
and I do:
let mystring = "<?xml version="1.0" encoding="ISO-8859-1"?> "
How can I escape the quotation marks? I've tried it with
String.escaped, but it don't works.
Thank you very much.
-------------------
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