<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic system-cli gives xml.parsers.expat.ExpatError: not well-formed error in Software Development Kit (SDK) and API Discussions</title>
    <link>https://community.netapp.com/t5/Software-Development-Kit-SDK-and-API-Discussions/system-cli-gives-xml-parsers-expat-ExpatError-not-well-formed-error/m-p/130579#M2345</link>
    <description>&lt;P&gt;Hi Everyone,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am in peculiar situation where after migration of host from (change of IP), I want to flush the nblade access from the node/vserver for specific host and policy via automation:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am trying to do that in using system-cli because there is no API available for this task ( in my knowledge, correct me if I am wrong here).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here is my input NaElement:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P class="p1"&gt;&amp;lt;system-cli&amp;gt;&lt;/P&gt;&lt;P class="p1"&gt;&amp;lt;priv&amp;gt;diagnostic&amp;lt;/priv&amp;gt;&lt;/P&gt;&lt;P class="p1"&gt;&amp;lt;args&amp;gt;&lt;/P&gt;&lt;P class="p1"&gt;&amp;lt;arg&amp;gt;nblade&amp;lt;/arg&amp;gt;&lt;/P&gt;&lt;P class="p1"&gt;&amp;lt;arg&amp;gt;access-cache&amp;lt;/arg&amp;gt;&lt;/P&gt;&lt;P class="p1"&gt;&amp;lt;arg&amp;gt;flush&amp;lt;/arg&amp;gt;&lt;/P&gt;&lt;P class="p1"&gt;&amp;lt;arg&amp;gt;vserver&amp;lt;/arg&amp;gt;&lt;/P&gt;&lt;P class="p1"&gt;&amp;lt;arg&amp;gt;myVserver&amp;lt;/arg&amp;gt;&lt;/P&gt;&lt;P class="p1"&gt;&amp;lt;arg&amp;gt;node&amp;lt;/arg&amp;gt;&lt;/P&gt;&lt;P class="p1"&gt;&amp;lt;arg&amp;gt;myNode&amp;lt;/arg&amp;gt;&lt;/P&gt;&lt;P class="p1"&gt;&amp;lt;arg&amp;gt;address&amp;lt;/arg&amp;gt;&lt;/P&gt;&lt;P class="p1"&gt;&amp;lt;arg&amp;gt;myHostIPAddress&amp;lt;/arg&amp;gt;&lt;/P&gt;&lt;P class="p1"&gt;&amp;lt;arg&amp;gt;policy&amp;lt;/arg&amp;gt;&lt;/P&gt;&lt;P class="p1"&gt;&amp;lt;arg&amp;gt;myPolicy&amp;lt;/arg&amp;gt;&lt;/P&gt;&lt;P class="p1"&gt;&amp;lt;/args&amp;gt;&lt;/P&gt;&lt;P class="p1"&gt;&amp;lt;/system-cli&amp;gt;&lt;/P&gt;&lt;P class="p1"&gt;&amp;nbsp;&lt;/P&gt;&lt;P class="p1"&gt;It errors out like this:&lt;/P&gt;&lt;P class="p1"&gt;&amp;nbsp;&lt;/P&gt;&lt;P class="p1"&gt;&lt;SPAN class="Apple-converted-space"&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;p.Parse(xmlresponse, 1)&lt;/P&gt;&lt;P class="p1"&gt;xml.parsers.expat.ExpatError: not well-formed (invalid token): line 5, column 0&lt;/P&gt;&lt;P class="p1"&gt;&amp;nbsp;&lt;/P&gt;&lt;P class="p1"&gt;It seems that line in xml input "&lt;SPAN&gt;&amp;lt;arg&amp;gt;access-cache&amp;lt;/arg&amp;gt;" is not getting parsed. If I remove this line, API call goes through but obviously, I get command not found type output.&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="p1"&gt;&amp;nbsp;&lt;/P&gt;&lt;P class="p1"&gt;&lt;SPAN&gt;Is there a workaround for this?&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="p1"&gt;&amp;nbsp;&lt;/P&gt;&lt;P class="p1"&gt;&lt;SPAN&gt;Any and all suggestions are welcome.&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="p1"&gt;&amp;nbsp;&lt;/P&gt;&lt;P class="p1"&gt;&lt;SPAN&gt;Thanks&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="p1"&gt;&lt;SPAN&gt;Anand&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 04 Jun 2025 15:08:46 GMT</pubDate>
    <dc:creator>ana_sgr_1985</dc:creator>
    <dc:date>2025-06-04T15:08:46Z</dc:date>
    <item>
      <title>system-cli gives xml.parsers.expat.ExpatError: not well-formed error</title>
      <link>https://community.netapp.com/t5/Software-Development-Kit-SDK-and-API-Discussions/system-cli-gives-xml-parsers-expat-ExpatError-not-well-formed-error/m-p/130579#M2345</link>
      <description>&lt;P&gt;Hi Everyone,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am in peculiar situation where after migration of host from (change of IP), I want to flush the nblade access from the node/vserver for specific host and policy via automation:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am trying to do that in using system-cli because there is no API available for this task ( in my knowledge, correct me if I am wrong here).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here is my input NaElement:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P class="p1"&gt;&amp;lt;system-cli&amp;gt;&lt;/P&gt;&lt;P class="p1"&gt;&amp;lt;priv&amp;gt;diagnostic&amp;lt;/priv&amp;gt;&lt;/P&gt;&lt;P class="p1"&gt;&amp;lt;args&amp;gt;&lt;/P&gt;&lt;P class="p1"&gt;&amp;lt;arg&amp;gt;nblade&amp;lt;/arg&amp;gt;&lt;/P&gt;&lt;P class="p1"&gt;&amp;lt;arg&amp;gt;access-cache&amp;lt;/arg&amp;gt;&lt;/P&gt;&lt;P class="p1"&gt;&amp;lt;arg&amp;gt;flush&amp;lt;/arg&amp;gt;&lt;/P&gt;&lt;P class="p1"&gt;&amp;lt;arg&amp;gt;vserver&amp;lt;/arg&amp;gt;&lt;/P&gt;&lt;P class="p1"&gt;&amp;lt;arg&amp;gt;myVserver&amp;lt;/arg&amp;gt;&lt;/P&gt;&lt;P class="p1"&gt;&amp;lt;arg&amp;gt;node&amp;lt;/arg&amp;gt;&lt;/P&gt;&lt;P class="p1"&gt;&amp;lt;arg&amp;gt;myNode&amp;lt;/arg&amp;gt;&lt;/P&gt;&lt;P class="p1"&gt;&amp;lt;arg&amp;gt;address&amp;lt;/arg&amp;gt;&lt;/P&gt;&lt;P class="p1"&gt;&amp;lt;arg&amp;gt;myHostIPAddress&amp;lt;/arg&amp;gt;&lt;/P&gt;&lt;P class="p1"&gt;&amp;lt;arg&amp;gt;policy&amp;lt;/arg&amp;gt;&lt;/P&gt;&lt;P class="p1"&gt;&amp;lt;arg&amp;gt;myPolicy&amp;lt;/arg&amp;gt;&lt;/P&gt;&lt;P class="p1"&gt;&amp;lt;/args&amp;gt;&lt;/P&gt;&lt;P class="p1"&gt;&amp;lt;/system-cli&amp;gt;&lt;/P&gt;&lt;P class="p1"&gt;&amp;nbsp;&lt;/P&gt;&lt;P class="p1"&gt;It errors out like this:&lt;/P&gt;&lt;P class="p1"&gt;&amp;nbsp;&lt;/P&gt;&lt;P class="p1"&gt;&lt;SPAN class="Apple-converted-space"&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;p.Parse(xmlresponse, 1)&lt;/P&gt;&lt;P class="p1"&gt;xml.parsers.expat.ExpatError: not well-formed (invalid token): line 5, column 0&lt;/P&gt;&lt;P class="p1"&gt;&amp;nbsp;&lt;/P&gt;&lt;P class="p1"&gt;It seems that line in xml input "&lt;SPAN&gt;&amp;lt;arg&amp;gt;access-cache&amp;lt;/arg&amp;gt;" is not getting parsed. If I remove this line, API call goes through but obviously, I get command not found type output.&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="p1"&gt;&amp;nbsp;&lt;/P&gt;&lt;P class="p1"&gt;&lt;SPAN&gt;Is there a workaround for this?&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="p1"&gt;&amp;nbsp;&lt;/P&gt;&lt;P class="p1"&gt;&lt;SPAN&gt;Any and all suggestions are welcome.&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="p1"&gt;&amp;nbsp;&lt;/P&gt;&lt;P class="p1"&gt;&lt;SPAN&gt;Thanks&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="p1"&gt;&lt;SPAN&gt;Anand&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 04 Jun 2025 15:08:46 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Software-Development-Kit-SDK-and-API-Discussions/system-cli-gives-xml-parsers-expat-ExpatError-not-well-formed-error/m-p/130579#M2345</guid>
      <dc:creator>ana_sgr_1985</dc:creator>
      <dc:date>2025-06-04T15:08:46Z</dc:date>
    </item>
  </channel>
</rss>

