Version 0.9  What is XML4Ada95?  Installation  How-To  API  Download 

COUNTER
counter


DOMString

DOM Level 1 defines a DOMString as "a sequence of 16-bit quantities [...] Applications must encode DOMString using UTF-16".
To adhere to this, in XML4Ada95 DOMString is defined as

subtype DOMString is Ada.Strings.Unbounded.Unbounded_String;

In order to be able to use DOMStrings within the hosting implementation, you may use the following conversion functions, as given in org_w3c_dom:

function From_Standard_String (S : in Standard.String) return DOMString;

function To_Standard_String (S : in DOMString) return Standard.String;

In the case that this representation does not suite your needs, you can easily change the actual DOMString-type. All you have to change is its definition in org_w3c_dom.ads and the above two functions.


DOMString Exceptions Casting Null Util

e-Mail: denny@nodix.de

design shareright © 2002 Phlash  
inhalt © 2003-04 Zdenko Denny Vrandecic  
last update: 14.01.2004 website created by XML4Ada95 DocGen