2 Replies Latest reply on Oct 25, 2016 2:20 PM by rrajappa RSS
    Siddharth Patel Apprentice

    Issue in converting rss feed to infotable

    Dear experts,

     

    I've created a service to get rss feed.

    I'm facing following error while converting an rss feed xml to infotable

     

    Wrapped org.xml.sax.SAXParseException; lineNumber: 2; columnNumber: 10; DOCTYPE is disallowed when the feature "http://apache.org/xml/features/disallow-doctype-decl" set to true. Cause: DOCTYPE is disallowed when the feature "http://apache.org/xml/features/disallow-doctype-decl" set to true.

     

     

    var params = {

        proxyScheme: undefined /* STRING */,

        headers: undefined /* JSON */,

        ignoreSSLErrors: undefined /* BOOLEAN */,

        useNTLM: undefined /* BOOLEAN */,

        workstation: undefined /* STRING */,

        useProxy: undefined /* BOOLEAN */,

        withCookies: undefined /* BOOLEAN */,

        proxyHost: undefined /* STRING */,

        url: "http://www.ptc.com/feed/press",  // http://www.usnews.com/rss/education

        timeout: undefined /* NUMBER */,

        proxyPort: undefined /* INTEGER */,

        password: undefined /* STRING */,

        domain: undefined /* STRING */,

        username: undefined /* STRING */

    };

     

    // result: XML

    var result = Resources["ContentLoaderFunctions"].GetXML(params);

     

    logger.warn(result.channel.title);

     

    for each (var item in result.channel.item) {

        logger.warn(item.title);

    }

     

     



    Code is mentioned in above.

    Please note different urls that I was trying