@gokul1904
Kindly note that XML Namespaces are to handle:
Let us show some building blocks at some sample data
Variables:
And an initial flow:
retrieve the element where later to add the new XElements:
xeLineReplacement = xDoc.Root.Descendants(xnsWD + "Invoice_Line_Replacement_Data").First()
Prepare the XElement which is to add:
newXElement = New XElement(xnsWD + "Quantity",1)
Add it:
Visuals:
the element knows its Namespace, but currently is not linked with the wd prefix
After Adding to the existing XML:
The wd prefix is in use
Afterwards save / process the XML as needed
Find starter Help here:
ppr_XMLWorkdayBox.xaml (8.1 KB)
Data.xml (240 Bytes)