Please refer here for background information on the program.
Hello,
I have written a program that updates an XML file with specific values. These values are updated through editable textboxes on 2 forms.
The only thing I'm having trouble with is the root element of the XML. I've tried to figure out how to either keep it the same or get to it so that I can edit it and change it back. Below is an example of the change:
<dl:XMLDataDelivery xsi:schemaLocation=http://www.somesite.org/filename.xsd xmlns:dl=http://www.somesite.org/filename
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<PartInformation>
<PartName>Hex Bolt</PartName>
<DetailedInfo>
<PartNumber>88-901</PartNumber>
<SerialNumber>SN1234</SerialNumber>
</DetailedInfo>
</PartInformation>
</dl:XMLDataDelivery>
--the root changes to:
<dl:XMLDataDelivery xmlns:dl=http://www.somesite.org/filename>
<PartInformation>
<PartName>Hex Bolt</PartName>
<DetailedInfo>
<PartNumber>88-901</PartNumber>
<SerialNumber>SN1234</SerialNumber>
</DetailedInfo>
</PartInformation>
</dl:XMLDataDelivery>
Any ideas on how I can stop this from changing or get to the root element so that I can correct it would be appreciated.
Thanks to all who respond!!
Join the darskide. We have cookies!