Browse Source

fixed bug: xsdTryNextString returned allways true

git-svn-id: trunk@12937 -
ivost 16 years ago
parent
commit
819e7d0913
1 changed files with 1 additions and 1 deletions
  1. 1 1
      packages/libxml/src/xmlxsd.pas

+ 1 - 1
packages/libxml/src/xmlxsd.pas

@@ -495,7 +495,7 @@ end;
 function xsdTryParseString(Chars: xmlCharPtr; out Value: String): Boolean;
 begin
   Value := PChar(Chars);
-  Result := True;
+  Result := Assigned(Chars);
 end;
 
 function xsdTryParseBoolean(Chars: xmlCharPtr; out Value: Boolean): Boolean;