XMLEncode Replaced by DotNetNuke.Common.Utilites.XMLUtils.XMLEncode v3.2

Last post 12-07-2005 7:52 AM by tearls. 2 replies.

Sort Posts:

  • XMLEncode Replaced by DotNetNuke.Common.Utilites.XMLUtils.XMLEncode v3.2

    12-06-2005, 5:09 PM
    • Member
      40 point Member
    • tearls
    • Member since 08-18-2004, 10:24 AM
    • Atlanta
    • Posts 8

    Hello I recently upgraded from v3.1 to v3.2 and when coding I noticed this message

    XMLEncode Replaced by DotNetNuke.Common.Utilites.XMLUtils.XMLEncode

    Can anyone explain this? The app was built successful, but I still get this message. I have refreshed references, but this message still persists.

    The message can be seen when hovering over a XMLEncode line in code behind.

    I must be missing something.

    Thank

    Travis

  • Re: XMLEncode Replaced by DotNetNuke.Common.Utilites.XMLUtils.XMLEncode v3.2

    12-06-2005, 8:12 PM
    • Star
      9,820 point Star
    • jbrinkman
    • Member since 06-18-2002, 6:28 PM
    • Posts 1,962
    • TrustedFriends-MVPs

    This just means that the function has been deprecated in 3.2 and a similar function is now available using DotNetNuke.Common.Utilities.XMLUtils.XMLencode.  While you can continue to use the function for now, you should try to convert all your code to use the new function.  At some unspecified point in the future we may remove the deprecated method. 

    The warning you get is just a warning that reminds you to update your code.  This allows us to keep refactoring and improving the core, and also notify developers of future breaking changes, so that hopefully developers will switch to the new function and thus prevent future compatability issues.

    We are constantly looking at the DNN API and will continue to consolidate and improve the API.  Since the API is written in an AD HOC fasion, we often find that some method is placed in a class where it really doesn't belong, or it is in a namespace that doesn't make sense.  Sometimes, we expand whole areas of the API and want to consolidate methods in one place that provide a common set of services.  In any case it is a good sign that we are working to constantly improve the developer experience.

    Joe Brinkman
  • Re: XMLEncode Replaced by DotNetNuke.Common.Utilites.XMLUtils.XMLEncode v3.2

    12-07-2005, 7:52 AM
    • Member
      40 point Member
    • tearls
    • Member since 08-18-2004, 10:24 AM
    • Atlanta
    • Posts 8

    Joe,

     

    Thanks for the great explanation!

    Just one more question. Does this mean we have to convert the code for the core modules ourselves or will this eventuall be completed in a later release?

    Thanks again!

    Travis

Page 1 of 1 (3 items)