[Gambas-devel] XML patch

Daniel Campos daniel.campos at ...103...
Thu Nov 25 00:16:08 CET 2004


Hi:

A patch for XmlReader:

1) Corrects a bug: once a XmlReader was opened, the EOF flag was set to
TRUE at the end of the document, even if Open() method was used again.

2) Adds a static method: Decode (Data As String,Encoding As String) AS
String

This method allows to decode both base64 and BinHex encoded strings.
That way, Gambas can manage binary data stored in a XML file, for
example, a picture. XmlWriter has also methods to write encoded base64
and BinHex strings.

MyData=XmlReader.Decode(Data,"base64")


MyData=XmlReader.Decode(Data,"binhex")

Regards,

Daniel Campos


-------------- next part --------------
A non-text attachment was scrubbed...
Name: CXMLReader.c
Type: text/x-csrc
Size: 10915 bytes
Desc: not available
URL: <http://lists.gambas-basic.org/pipermail/devel/attachments/20041125/9ae14edd/attachment.c>


More information about the Devel mailing list