Git Product home page Git Product logo

simdesign's People

Stargazers

 avatar  avatar  avatar

Forkers

bravesoftdz

simdesign's Issues

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

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 [email protected] on 17 May 2014 at 1:46

test issue

What steps will reproduce the problem?
1.
2.
3.

What is the expected output? What do you see instead?


Please use labels and text to provide additional information.


Original issue reported on code.google.com by [email protected] on 26 Aug 2011 at 3:13

TByteArray is being used to access buffers which limits Node values to less than 32KB

What steps will reproduce the problem?
1. When create an XML with a large node value, 32KB or greater, function 
TsdBufferWriter.Write(const Buffer; Count: Integer): Longint;
 is failing as TByteArray has a 32KB limit.

What is the expected output? What do you see instead?


What version of the product are you using? On what operating system?
Trunk r71, Windows 7 Professional, Delphi XE2

Please provide any additional information below.

As a quick work around I have added the following to my local NativeXML.pas
type
  TBigByteArray = array[0..2147483646] of byte; // 2GB - 2, This should never be instantiated, it's used as TByteArray indexing is limited to <32KB

and renamed all instances of TByteArray to TBigByteArray

Original issue reported on code.google.com by [email protected] on 10 Jun 2014 at 3:56

NativeXml.pas Delphi XE compile problem

function TsdXmlParser.ReadStringUntilChar(AChar: AnsiChar): Utf8String;
var
  Count: integer;
  StartIdx: integer;
  CurrentChar: Char;//<<<<--This is problem. I am change to AnsiChar
begin
 Count := MakeDataAvailable;

  StartIdx := FUtf8CurrentIdx;
  while not FEndOfStream do
  begin

    CurrentChar := FUtf8Buffer[FUtf8CurrentIdx];//<<<<-- no [DCC Error] NativeXml.pas(6998): E2010 Incompatible types: 'Char' and 'AnsiChar'

Original issue reported on code.google.com by [email protected] on 13 Jan 2015 at 12:25

Add WriteEscapedString to TXMLNode or...

Hello,

Bit of background. If I have some misbehaving system that do not like some 
characters (in other words badly made). Like Nordic ones äöå.

Now I can't (Or I could not find) write string that I have already handled with 
some escaping routine. because it becomes something like this : ä -> &auml; -> 
&amp;auml;

Or other way would be (But would slow things down) to have check at the 
sdEscapeString part which handles the  '&': would check is that part of escaped 
string. I think this would be so much slower to do.

But having Setter in XML node that would bypass the sdEscapeString and will not 
do any Base64 encoding and so on. then user has to make sure that string is 
correctly escaped. Also it could speed thigs little if you are inserting purely 
numeric values and so, when you can be sure that there is no need for escaping.

-Tee-

Original issue reported on code.google.com by [email protected] on 3 Mar 2014 at 12:24

Native SVG demo files error

What steps will reproduce the problem?
1. If I compile any of the projects (SvgTest or SvgViewer)
2. I try to open any svg file (I downloaded also some that are in the svn as 
"Anarchist_logo.svg")
3. When I try to load the svg file I get "List index out of bound" error.

I'm using Delphi XE and I debugged the source and the error occures in the 
TsdContainerNode.NodeInsert procedure. The index variable passed is 2 while the 
"FNodes" ha no element inside it.


I hope this is enough. I will be glad to make more debug if this can help.

Thanks.
Ibrahim

Original issue reported on code.google.com by [email protected] on 9 Oct 2013 at 1:56

Some way to access TXMLNode FCoreValue

it is no way to directly assign escaped text to XML attribute, so there is no 
way to control escape of special characters like $0D,$0A etc. for compatibility 
with MSXML parser-based applications

Original issue reported on code.google.com by [email protected] on 17 Feb 2014 at 6:20

Add support for Delphi XE6

I'd suggest use CompilerVersion to simplify simdesign.inc

{$if CompilerVersion >= 15}
  {$define D7UP}
{$endif}

{$if CompilerVersion >= 18}
  {$define D10UP} // Delphi 2006
{$endif}

{$if CompilerVersion >= 23}
  {$define D15UP} // Delphi XE2
{$endif}

Original issue reported on code.google.com by [email protected] on 17 May 2014 at 12:51

Possible bug in sdWideToUTF8Buffer

EOL normalization in sdWideToUTF8Buffer does not work as expected

if, for example, attribute value contains escaped CRLF ($0D$0A) after call to 
this function it results in $0A$0A, so escaped multiline text does not appear 
as expected

It is no way to skip or select desired EOL normalization style here

      AddChar := True;
      ByteCh := byte(W);

      if ByteCh = $0D then
      begin
// I have to comment this line to skip EOL normalization
//!!!////        ByteCh := $0A;
        LastChar0D := True;
      end else
      begin
        if (ByteCh = $0A) and LastChar0D then
          AddChar := False;
        LastChar0D := False;
      end;



Original issue reported on code.google.com by [email protected] on 17 Feb 2014 at 6:00

HasAttribute() is case sensitive

If I check existing "ABC" attribute by "abc" string then method HasAttribute() 
return False.
But method GetAttributeByName() return proper value. 

Problem is with compare way, in HasAttribute is:

  if AttributeName[i] = AName then

but in GetAttributeByName() is:

  if Utf8CompareText(A.Name, AName) = 0 then

Please update HasAttribute to use Utf8CompareText function()

Original issue reported on code.google.com by [email protected] on 8 Nov 2014 at 8:44

Incorrect reading of multi line strings

Load attached sample.xml and try to read value of Lorem node.

LDoc.LoadFromFile('sample.xml');
LValue:= LDoc.Root.ReadUnicodeString('Lorem'); 

The LValue should contain lorem text but instead it contains only 3 characters 
(#$D#$A#9).

Original issue reported on code.google.com by [email protected] on 27 Nov 2013 at 6:17

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.