web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics CRM (Archived)

DELETING TAGS ON XML DOCUMENT

(0) ShareShare
ReportReport
Posted on by

Hi All,

I have this XML document that is too large. There are certain tags that I would like to remove, the problem is I tried going through the document line by line, but it takes up mot of my time. If not, I might miss some of the tags I want to delete.
Please can someone assist me with this step by step

Thank you in advance

Musa 

*This post is locked for comments

I have the same question (0)
  • David Jennaway Profile Picture
    14,065 on at

    There are various tools that you can use to edit xml documents. If you have a SQL Server, then you can use the SQLXML functions to delete tags.

    See http://www.sqlmusings.com/2009/04/12/sqlxml-how-to-work-with-xml-elements-or-nodes-in-sql-server/  for some examples (note that what you refer to as 'tags' are 'elements')

  • Harshil Shah Profile Picture
    294 on at

    Hello Musa Ntuli,

    1. One way of doing this will be create a C# utility and read XML tag by tag and whatever tags which you required write them in new XML file.
    2. Other way will be Format your XML code & paste it in Notepad++ or any good Text editor. Using "Find all" identify all occurrence of XML tag and remove/Replace them.

    Regards,

    Harshil Shah

  • Community Member Profile Picture
    on at

    Thank you David for the advice.

    Noted on the element issue, thank you

  • Community Member Profile Picture
    on at

    I have been trying the second option and have watched some videos, they show pasting a Regular Expression, but they don't show how they go about getting the regular expression.

    I am new into this Dynamics 365 Customer Engagement, I am still trying to find my feet.

    Thanks.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics CRM (Archived)

#1
SA-08121319-0 Profile Picture

SA-08121319-0 4

#1
Calum MacFarlane Profile Picture

Calum MacFarlane 4

#3
Alex Fun Wei Jie Profile Picture

Alex Fun Wei Jie 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans