I need a class written with the following capabilities:
1) read xml file
2) search for specified element,
3) update specified element
? ? ? 3a.? add additional elements as required
4) write changes to XML file
For example:
? ? ? <ContainedComponent>
? ? ? ? ? <Name>CustomersTitle</Name>
? ? ? ? ? <Type>Html</Type>
? ? ? ? ? <PassthroughAttributes>
? ? ? ? ? ? ? <Attribute>
? ? ? ? ? ? ? ? ? <Name>HtmlEncodeWhiteSpace</Name>
? ? ? ? ? ? ? ? ? <Value>True</Value>
? ? ? ? ? ? ? </Attribute>
? ? ? ? ? ? ? <Attribute>
? ? ? ? ? ? ? ? ? <Name>Text</Name>
? ? ? ? ? ? ? ? ? <Value><%#GetResourceValue("Translate:AddCustomers") %></Value>
? ? ? ? ? ? ? </Attribute>
? ? ? ? ? </PassthroughAttributes>
? ? ? ? ? <InsideControl>CustomersRecordControl</InsideControl>
? ? ? </ContainedComponent>
Example:
for the element "ContainedComponent", this has a subelement called "PassthroughAttributes".? The subelement has an <attribute> with a <name> and <value> element.? I want to be able to search for this, and then update the <Value> entry.
## Deliverables
see attached examples of two XML files that need updating.? I also need a menu sitemap updated in a similiar fashion.? See attached.