KBMMW 4.81.00 Released

Source: Internet
Author: User
Tags xml parser

This update is very fast.

4.81.00 May 9 Important notes (changes, may break existing code) ================================================   ====== * Changed tkbmmwonfileaccess event to allow rewriting Path.       Tkbmmwonfileaccess = procedure (sender:tobject; var path:string; var accesspermissions:tkbmmwfileaccesspermissions) of object;   * Made many more things case sensitive in the XML parser and handlers to adhere correctly to XML standards. Thus the attribute ID is different from the attribute ID now! New Stuff =========-Added Jqueryescaping:boolean Property (default false) to Tkbmmwjsonstreamer. It'll double escape all backslashes (\) to adhere to jQuery non standards. Notice that double escaping are not JSON standards, but a defacto requirement when using jQuery as the recieving end. -Added optional Ajqueryescaping:boolean argument to kbmmwjsonquotestring global function. -Added support for NaN and INF in Kbmmwfloattostring, Kbmmwstringtofloat and Kbmmwtrystringtofloat. -ADDEd New optional additional kbmmw_element_flags argument to kbmmw_element attribute.   Eg.     Tmyobject = class ...     [Kbmmw_element (' somename ', [Mwefdata])]     Myfield:integer;     {kbmmw_element (' someothername ')]   Myotherfield:integer;   End   This would marshal/unmarshal MyField as data of the tmyobject instead of a sub element called Somename. Eg. <tmyobject>20 <someothername>30</someothername> </TMyObject> See the new sample:d Ynamicxmlmarshalling. -Added New optional additional typestorename and Typevalue arguments to Kbmmw_root attribute which is to being used in co   Mbination with the new Kbmmw_conditionaltype attribute. Typestorename refers to a local string field in the object which would hold/be set to the type of the object while Mars   Halling/unmarshalling.   Typevalue is the value of that would be set on that field. The new Kbmmw_conditionaltype attribute takes a condition and a string value indicating the name of the type The of the object if the condition is evaluated to true.   A condition can is a simple equal statement or is a complex condition with and and OR and multiple statements. See the new sample:dynamicxmlmarshalling.   Changes/minor Additions =======================-Changed tkbmmwonfileaccess event to allow rewriting Path.         Tkbmmwonfileaccess = procedure (sender:tobject; var path:string;   var accesspermissions:tkbmmwfileaccesspermissions) of object; Notice that if you do has the code using this event, you should cut out the event code, save, then doubleclick the event ha   Ndler again and paste in your old code.   Also Notice that the path was always relative to the defined rootpath of the service. The rootpath is defined in the tkbmmwfileservicedefinition returned when registering the file service.   -Changed Tkbmmwcustomsaxxmlparser to inherit from Tinterfacedobject and removed custom referencecounting. This also affects Tkbmmwdomxml which descends from tkbmmwcustomsAxxmlparser. -made a number of properties available via the Ikbmmwdomxmlparser interface:root, Top,,ignoreduplicateids, Autoinden T, PreserveWhitespace, Autolinefeed, Streambom, autodetectencoding.   -Changed Tkbmmwdomxmlnode to allow access to ID and ref properties as attributes (ID, ref). Changing the attribute ID or ref would thus also affect the properties ID and ref.-Removed handling href attributes as Ref attribute in Tkbmmwdomxmlnode. HREF is now an ordinary attribute, without special handling.   -made many more things case sensitive in the XML parser and handlers to adhere correctly to XML standards. Thus the attribute ID is different from the attribute ID now! -Changed so XML getasint, GetAsInt64, Getasfloat, Getasduration, Getasboolean and getasdatatime automatically filter OU T all whitespace characters (including CR/LF) before attempting to interpret value. -Changed XML parsing so if preservewhitespace are false, then only leading and TRAiling whitespace is filtered. Fixes =====-Fixed leak of Tkbmmwhttpurlrewrites object instance in Tkbmmwhttpservicedefinition. -Fixed JSON marshalling of collection objects. -Fixed IOS macapi.foundation compilation issue in Kbmmwglobal.pas. -Fixed bug in Attribbynameisnil property in Kbmmwxml.pas.

KBMMW 4.81.00 Publish

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.