XML file - removing node value RRS feed

  • Question

  • Hi there,

    I have an XML file and I would like to remove all values. I have tried to set them to empty string but in result I got new line

    Orignal file

       <entry objectType="GlobalRole" name="AR30983" />
    What I got
       <entry objectType="GlobalRole" name="AR30983" />

    and what I need

       <entry objectType="GlobalRole" name="AR30983" />

    Friday, July 29, 2016 9:07 AM


  • There is no technical difference between what you have and what you want. It is just output format that is different.  Format is not important to an XML file.

    Perhaps if you explain why we could point you in the right direction.

    By the way.  A correct empty element would look like this.

       <entry objectType="GlobalRole" name="AR30983"/>

    Empty elements use self closing tags  although an empty tag on one or more lines works the same way.

    XML files are not really text files. They are structured data files.


    • Marked as answer by Marek Lotocki Thursday, August 4, 2016 6:47 AM
    Friday, July 29, 2016 10:32 AM