Menu

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

New
nobody
None
Medium
Defect
2014-05-17
2014-05-17
Anonymous
No

Originally created by: sx.a...@googlemail.com

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.

Discussion


Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.