cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
bogdanf
Frequent Visitor

change xml node name

Hello!

I have a basic XML file and I want to change the first node name from 'report_202107' to 'report'.

I.ve tried to read XML file and assign XMLDocument.Children[0].Name = 'report' but no success.

It is possible to do so?

 

Thanks

 

<report_202107>
  <Records>
    <Year>2019</Year>
    <Month>Aug 2019</Month>
    <DOT>0</DOT>
  </Records>
  <Records>
    <Year>2019</Year>
    <Month>Aug 2019</Month>
    <DOT>4</DOT>
  </Records>
</report_202107>

 

 

1 ACCEPTED SOLUTION

Accepted Solutions
VJR
Super User
Super User

Hi @bogdanf 

 

If the existing actions of PAD are not working then read the full string of the xml file, replace the text <report_202107> to <report> and write back the replaced string to the file.

View solution in original post

1 REPLY 1
VJR
Super User
Super User

Hi @bogdanf 

 

If the existing actions of PAD are not working then read the full string of the xml file, replace the text <report_202107> to <report> and write back the replaced string to the file.

Helpful resources

Announcements
MPA Virtual Workshop Carousel 768x460.png

Register for a Free Workshop

Learn to digitize and optimize business processes and connect all your applications to share data in real time.

New Process Advisor Capabilities carousel.png

Read the blog for the latest news

Read the latest about new experiences and capabilities in the Power Automate product blog.

PA Survey Carousel Image.png

We want to hear from you!

If you are a small business ISV/Reseller, share your thoughts with our research team.

Users online (3,240)