Skip to content

Commit

Permalink
create empty datasource when xml contains <data/>
Browse files Browse the repository at this point in the history
  • Loading branch information
ianharrigan committed Mar 26, 2024
1 parent 93ad967 commit 0b57737
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions haxe/ui/parsers/ui/XMLParser.hx
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,8 @@ class XMLParser extends ComponentParser {
component.parent.data = StringTools.trim(xml.toString());
} else if (xml.firstChild() != null && StringTools.startsWith(StringTools.trim(xml.firstChild().nodeValue), "[")) {
component.parent.data = StringTools.trim(xml.firstChild().nodeValue);
} else {
component.parent.data = "<data/>";
}
} else if (nodeName == "validator") {
parseValidatorNode(component.parent, xml);
Expand Down

0 comments on commit 0b57737

Please sign in to comment.