Farbflash projects: Imaging lingo table | 3-D scene list | Find all | Handler menu | Lingo message window

Ignore:
Timestamp:
02/18/08 06:02:53 (4 years ago)
Author:
alex
Message:

update library scripts

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/lingosource/castlib2/PseudoXMLPS.ls

    r74 r150  
    251251  end if 
    252252   
    253   if pXmlxtraversion < 10 then return mGetListFromXMLString(me, str, convertValues) 
     253  if pXmlxtraversion < 10 then return mGetListFromXMLString(me, str, convertValues, withParams) 
    254254  ------------------ end XML Parser xtra version 10 check 
    255255   
     
    275275  if not(voidP(xt.getError())) then 
    276276    put "Script: PseudoXMLPS; Handler: mGetListFromXMLStringX; error:" && xt.getError() 
    277     return [:] 
     277    return mGetListFromXMLString(me, str, convertValues, withParams) 
    278278  end if 
    279279   
    280280  xx = xt.makePropList() 
    281   li = mConvertXMLPropList(me, [xx], convertValues) 
    282    
    283   --  put the milliseconds - ms 
     281  dontEscapeSpecialChars = 1 -- we do not need to do this, as the xmlparser xtra already did it for us 
     282  li = mConvertXMLPropList(me, [xx], convertValues, dontEscapeSpecialChars) 
     283   
     284 -- put "x" && the milliseconds - ms 
    284285   
    285286  if not(listP(li)) then return [:] 
     
    843844-- xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx 
    844845 
    845 on mConvertXMLPropList me, inputlist, convertValues 
     846on mConvertXMLPropList me, inputlist, convertValues, dontEscapeSpecialChars 
    846847  retlist = [:] 
    847848  anz = count(inputlist) 
     
    860861      if count(val) then 
    861862        if ilk(retlist) = #proplist then 
    862           retlist.addProp(symbol(inputlist[n].getaprop(#name)), mConvertXMLPropList(me, val, convertValues)) 
    863         else 
    864           retlist.add(mConvertXMLPropList(me, val, convertValues)) 
     863        retlist.addProp(symbol(inputlist[n].getaprop(#name)), mConvertXMLPropList(me, val, convertValues, dontEscapeSpecialChars)) 
     864      else 
     865          retlist.add(mConvertXMLPropList(me, val, convertValues, dontEscapeSpecialChars)) 
    865866        end if 
    866867      else 
     
    882883               
    883884              -- unescape <>&'" 
    884               val = mUnEscapeSpecialChars(me, val) 
     885               if dontEscapeSpecialChars <> 1 then val = mUnEscapeSpecialChars(me, val) 
    885886               
    886887            #integer: 
     
    903904               
    904905              -- unescape <>&'" 
    905               val = mUnEscapeSpecialChars(me, val) 
     906              if dontEscapeSpecialChars <> 1 then val = mUnEscapeSpecialChars(me, val) 
    906907               
    907908            else 
     
    917918               
    918919              -- unescape <>&'" 
    919               val = mUnEscapeSpecialChars(me, val) 
     920              if dontEscapeSpecialChars <> 1 then val = mUnEscapeSpecialChars(me, val) 
    920921               
    921922            else 
     
    927928             
    928929            -- unescape <>&'" 
    929             val = mUnEscapeSpecialChars(me, val) 
     930           if dontEscapeSpecialChars <> 1 then val = mUnEscapeSpecialChars(me, val) 
    930931             
    931932             
Note: See TracChangeset for help on using the changeset viewer.