Create nfo file with details

Hi, I’m try to write a script which create or updates details in nfo (XML format)

File will have similar information.

<movie>
<lockdata>true</lockdata>

<imdbid>121545464</imdbid>

<title>Happy Feet</title>

<genre>Action</genre>
<genre>Family</genre>
<genre>Drema</genre>
<genre>Adventure</genre>

<Actor>
<Name>Actor 1</Name>
<Role>Role 1</Role>
</Actor>

<Actor>
<Name>Actor 2</Name>
<Role>Role 2</Role>
</Actor>

</movie>

  1. I would like script to create file if it donest existed
  2. if file exist then update any information which is missing or incorrect.
 

 

That’s a nice task. What do you have so far? What kind of help do you need? Have you tried to search if there’s already something fitting in the PowershellGallery or somewhere else in the internet?