caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
* RE: [Caml-list] How to declare a string with quotation marks inside
@ 2003-04-23 16:21 Arturo Borquez
  0 siblings, 0 replies; 2+ messages in thread
From: Arturo Borquez @ 2003-04-23 16:21 UTC (permalink / raw)
  To: amata; +Cc: caml-list

<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


^ permalink raw reply	[flat|nested] 2+ messages in thread

* [Caml-list] How to declare a string with quotation marks inside
@ 2003-04-23 15:56 amata
  0 siblings, 0 replies; 2+ messages in thread
From: amata @ 2003-04-23 15:56 UTC (permalink / raw)
  To: caml-list


  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


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2003-04-23 16:21 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-04-23 16:21 [Caml-list] How to declare a string with quotation marks inside Arturo Borquez
  -- strict thread matches above, loose matches on Subject: below --
2003-04-23 15:56 amata

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