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
|