AArhin / simdesign

Automatically exported from code.google.com/p/simdesign

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

NativeXml: Failed to parse attribute if there are more than one whitespace beyond

GoogleCodeExporter opened this issue · comments

Failed to open an xml file, if it contains such a node `<language  
ui="english"/>`

At NativeXml.pas line 4601

          WhiteSpaceNode := TsdWhiteSpace.Create(TNativeXml(FOwner));
          NodeAdd(WhiteSpaceNode);
          inc(FDirectNodeCount);
          WhiteSpaceNode.SetCoreValue(Blanks);

I changed it to:

          WhiteSpaceNode := TsdWhiteSpace.Create(TNativeXml(FOwner));
          FDirectNodeCount := NodeAdd(WhiteSpaceNode);
          //inc(FDirectNodeCount);
          WhiteSpaceNode.SetCoreValue(Blanks);

Please confirm.

Original issue reported on code.google.com by sx.a...@googlemail.com on 17 May 2014 at 1:46