From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Thread: a07f3367d7,20a8fd50a2664794 X-Google-Attributes: gida07f3367d7,public,usenet X-Google-NewGroupId: yes X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news3.google.com!feeder.news-service.com!feeder.erje.net!nuzba.szn.dk!news.jacob-sparre.dk!pnx.dk!jacob-sparre.dk!ada-dk.org!.POSTED!not-for-mail From: Jacob Sparre Andersen Newsgroups: comp.lang.ada Subject: Re: Using Quotes in Quotes (if you see what I mean) Date: Fri, 05 Aug 2011 11:14:00 +0200 Organization: Jacob Sparre Andersen Research & Innovation Message-ID: <8762mc9q5j.fsf@hugsarin.sparre-andersen.dk> References: NNTP-Posting-Host: 94.191.228.128.bredband.3.dk Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: munin.nbi.dk 1312535640 8659 94.191.228.128 (5 Aug 2011 09:14:00 GMT) X-Complaints-To: news@jacob-sparre.dk NNTP-Posting-Date: Fri, 5 Aug 2011 09:14:00 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.2 (gnu/linux) Cancel-Lock: sha1:chl0NUOfErsNuBQT8h8DXL0ltVk= Xref: g2news1.google.com comp.lang.ada:20477 Date: 2011-08-05T11:14:00+02:00 List-Id: tonyg writes: > I'm trying to search for a string containing the string "day = "2"" > within some xml using gnat ada. Unfortunately the "2" is causing a > problem in that ada thinks it is the end of the string before it gets > to the end. Can someone tell me how I need to represent this to search > successfully ? You look up how to write string literals in the LRM. (It might be in section 2.6.) Greetings, Jacob -- The secret is to bang the rocks together.