Version française
Home     About     Download     Resources     Contact us    
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
<amata@tsc.uc3m.es> 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
>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"?> "

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
>

hope this helps
regards
-- 
Arturo Borquez


__________________________________________________________________
Try AOL and get 1045 hours FREE for 45 days!
http://free.aol.com/tryaolfree/index.adp?375380

Get AOL Instant Messenger 5.1 for FREE! Download Now!
http://aim.aol.com/aimnew/Aim/register.adp?promo=380455

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