How are you creating the XML object and converting it back to a string,
exactly?
I just tested doing this:
var x:XML = new XML("<foo baz=\"\"><bar /></foo>");
l.text = "XML = " + x.toString();
And it works fine. (But note that <foo baz=""/> makes x.toString() ==
"", because root tag <foo> doesn't have a child.)
Doing "<myxml><foo baz=\"\"/></myxml>" also works fine.
On 11/11/2021 10:31 AM, Harbs wrote:
> I have XML which had <foo baz=“”/> and after reading it into an XML object
> and writing it back I get <foo baz=“null”/>
>
> I have not yet investigated at which point it becomes “null”.
>
>> On Nov 11, 2021, at 5:11 PM, Edward Stangler <[email protected]> wrote:
>>
>>
>> In what context? Like an example.
>>
>>
>> On 11/11/2021 3:40 AM, Harbs wrote:
>>> At some point (not sure when), it seems like when writing xml, empty string
>>> attributes became “null” instead of “”.
>>>
>>> Any ideas when/how that happened?
>>
>