Version française
Home     About     Download     Resources     Contact us    

This site is updated infrequently. For up-to-date information, please visit the new OCaml website at

Browse thread
RE: [Caml-list] How to declare a string with quotation marks inside
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: -- (:)
From: artboreb@n...
Subject: RE: [Caml-list] How to declare a string with quotation marks inside
<> wrote:

>  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
>  The string is:
>              <?xml version="1.0" encoding="ISO-8859-1"?>
>  and I do:
>        let mystring = "<?xml version="1.0" encoding="ISO-8859-1"?> "

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 Archives:
>Bug reports: FAQ:
>Beginner's list:

hope this helps
Arturo Borquez

Try AOL and get 1045 hours FREE for 45 days!

Get AOL Instant Messenger 5.1 for FREE! Download Now!

To unsubscribe, mail Archives:
Bug reports: FAQ:
Beginner's list: