miteruel / simdesign

Automatically exported from code.google.com/p/simdesign
2 stars 1 forks source link

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

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
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