Skip to content

RSS feed is not valid according to Power Automate #2094

Closed

Description

@DanielRuf

Affected Page URL

https://www.php.net/feed.atom

Describe the bug

Hi,

Unfortunately, PowerAutomate was unable to read the RSS feed, which meant the security notification was not delivered automatically.

Attached, you will find a description of the error, along with Copilot’s analysis regarding the cause and the proposed solution.

Feed URL used: https://www.php.net/feed.atom

Could you please verify this and make the necessary corrections to the feed?
Alternatively, should we modify our PowerAutomate flow?

All other feeds from the various software solutions we use are working without any issues; this problem is specific to the PHP feed.

Error:

Error reading the requested feed information. Details: Unexpected node type Element. The ReadElementString method can only be called on elements with simple or empty content. Line 3696, position 5.

Copilot answer:

The error occurs because the Power Automate RSS trigger encounters an improperly formatted <content type="xhtml"> element when reading the Atom XML file from php.net.
In line 3696 of the feed (within the entry "International PHP Conference 2017 Fall - Call for Papers"), the <div> container—which is strictly required by the Atom standard—is missing immediately beneath the <content type="xhtml"> element:

<content type="xhtml">
  <p>While we are eagerly waiting for IPC Spring...</p>

(In all other entries, this is correctly formatted as <content type="xhtml"><div xmlns="http://w3.org"><p>....)
The .NET XML parser used by Power Automate expects either plain text or a valid XHTML wrapper at this point; instead, it encounters the HTML <p> element directly, causing it to fail with an "Unexpected node type Element" error. Since the error originates within the source feed from php.net itself, it cannot be bypassed using the standard RSS trigger.

Steps to reproduce

  1. create a PowerAutomate flow
  2. use the RSS trigger for the mentioned Atom feed
  3. alternatively validate the feed content

Expected behavior

No error, RSS feed successfully parsed.

Screenshots

No response

Additional context

No response

Activity

  1. DanielRuf commented on Nov 23, 2026

    @DanielRuf
    ContributorAuthor

    I have fixed the issue description.

  2. DanielRuf commented on Nov 23, 2026

    @DanielRuf
    ContributorAuthor

    Now the next entries have problems too:

    Unexpected node type Element. ReadElementString method can only be called on elements with simple or empty content. Line 3730, position 5.

    The error is caused by a syntax error within the PHP.net XML feed itself (line 3730), which trips up the strict XML parser used by Microsoft Power Automate.

    What exactly happened?

    In one of the older entries in the feed (entries/2021-12-21-1.xml – "Dutch PHP Conference 2022 - Call for Papers"—or similarly in other older entries such as entries/2024-12-09-1.xml or entries/2019-04-02-6.xml), an error has crept into the markup of the <content> tag:

    <content type="html">
    <div xmlns="http://www.w3.org/1999/xhtml">
    <p>

    We are back for the 16th edition...
    • The problem: When the attribute is set to type="html", the Atom standard (RFC 4287) expects the content to be provided as plain, escaped text (e.g., &lt;p&gt;). Instead, however, it contains actual, unescaped XML/HTML child elements (<div>, <p>). (For this to be valid, the attribute should actually be type="xhtml", as is the case with almost all other entries in the feed.)
    • How Power Automate reacts: The RSS connector in Power Automate uses a very strict .NET XML parser (SyndicationFeed / XmlReader) in the background. When it encounters type="html", it internally calls ReadElementString() to retrieve plain text. Because it immediately encounters a <div> or <p> element instead of text, it fails with an "Unexpected node type Element" error.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions