Fixed simple xml nodes to be closed properly

git-svn-id: trunk@35869 -
This commit is contained in:
andrew 2012-03-10 14:24:49 +00:00
parent 2af6916164
commit f242a18097

View File

@ -96,7 +96,10 @@ var
w(StrToXMLValue(Element.Attributes[i].NodeValue));
w('"');
end;
w('>');
if Node.FirstChild <> nil then
w('>')
else
w('/>');
LastNodeWasText:=PreserveSpace;
if (Node.FirstChild<>nil) then begin
Traverse(Node,PreserveSpace);