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 :















 





 





    
     
    
    
     











 

(0) ShareShare
ReportReport
Posted on by
Categories:
  • Suggested answer
     Profile Picture
    on at
    RE: Remove namespaces from child XML element in business central

    You have to define the namespace in a text variable and add that to every node you add to the xml document.

    var

    Uri: Text;

    begin

    Uri := 'your namespance';

    node:= xmlelement.create('nodname',uri,nodevalue);

    end;

    Your node value being what you want the value of your node to be.

    I hope this helps.

  •  Profile Picture
    on at
    RE: Remove namespaces from child XML element in business central

    Hi Abdullah,

    If the parent nodes namespace is the same as the child namespace, then child node's namespace wont be displayed!

  •  Profile Picture
    on at
    RE: Remove namespaces from child XML element in business central

    Thank you Bilal Haider for your reply, I have tried NamespaceManager, but I haven't found a solution, maybe due to no prefix or URI value

  • Suggested answer
     Profile Picture
    on at
    RE: Remove namespaces from child XML element in business central

    Hi Abdullah,

    I am not sure but try to use RemoveNamespace function available with NamespaceManager .

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

Leaderboard > test 12 sep

Featured topics

Product updates

Dynamics 365 release plans