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-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,4186ab0bee49bce9 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2003-03-26 11:43:11 PST Date: Wed, 26 Mar 2003 20:43:06 +0100 From: =?UTF-8?B?Um9kcmlnbyBHYXJjw61h?= User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:0.9.9) Gecko/20020513 X-Accept-Language: en-us, en MIME-Version: 1.0 Newsgroups: comp.lang.ada Subject: Re: XML ada References: <3e81cd83$1_1@mk-nntp-1.news.uk.worldonline.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit NNTP-Posting-Host: lglpc31.epfl.ch Message-ID: <3e8202cb$1@epflnews.epfl.ch> X-Trace: epflnews.epfl.ch 1048707787 128.178.76.8 (26 Mar 2003 20:43:07 +0200) Organization: EPFL Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!newsfeed.icl.net!newsfeed.fjserv.net!colt.net!peernews3.colt.net!news0.de.colt.net!newsfeed.r-kom.de!news-nue1.dfn.de!uni-erlangen.de!news.imp.ch!news.imp.ch!news-zh.switch.ch!epflnews.epfl.ch!not-for-mail Xref: archiver1.google.com comp.lang.ada:35740 Date: 2003-03-26T20:43:06+01:00 List-Id: Andy Ingram wrote: > I have just started using XML/Ada. > I have been playing around and have managed to get to grips with nodes and > node lists to get a 'list' of elements with the same tag. However i am now > trying to get the data within these tags. I am attempting this by using > DOM.Core.Character_Datas.Data and passing it a node (obtained from my > nodelist). This returns a DOM String. How do i then use this DOM String as > a 'normal' string? I.e how do i output this to the display or store it in a > string for later use? The format of a DOM string should be UTF-16 following the standard specification. This is not the same format that Ada uses for String characters. If you want to print a DOM string with XML Ada, use the Print_String function in Dom.Core.Nodes. Rodrigo