Newtonsoft XMLToStream Serialize RRS feed

  • Question

  • Hi All,

    How to convert XML to stream in JSON.net/Newtonsoft.

    In one our old component, they seem to have used a method called "JsonConvert.SerializeXmlNodeToStream". Is it still present? I can't find it in the version of Newtonsoft we have used. I just got to know it from de-assembling the old assembly.

    I am getting an error "Newtonsoft.Json.JsonConvert" doesnot contain a definistion for SerializeXmlNodeToStream error.

    Is there a equivalent method for this exist in current version (or available version) of Newtonsoft?

    This methods convert any empty elements/nodes in XML as null when it searzie to JSON. I am trying to find a alternate solution to not to convert them as null. Any ideas using Newtonsoft where I want to convert XML to stream.

    • Moved by CoolDadTx Friday, September 15, 2017 2:06 PM Third party product
    Friday, September 15, 2017 6:59 AM

All replies

  • Newtonsoft is a third party library. These forums are for MS products only. Please post questions related to Newtonsoft in their forums.
    Friday, September 15, 2017 2:06 PM