Tried to display the attribute after “Deserialize” activity as “dt_xml.Element(“Request”).Element(“OrderRequest”).Element(“OrderRequestHeader”).Attribute(“orderID”).ToString” but getting Message Box: Object reference not set to an instance of an object.
Here is the output.
dt_xml.Root.Name.toString
“cXML”
dt_xml.Root.Descendants(24).Name.toString
Cannot evaluate ‘dt_xml.Root.Descendants(24).Name.toString’ at current context.
dt_xml.Root.Descendants(“OrderRequestHeader”)(0)
[
FedEx Ground
00
0
0
0
0
EDI Generated Order
0
0
0
0
0
Deliver to remote address
0
0
0
0
0
Are you replacing an existing machine or requesting addition
0
0
0
0
0
hardware?:Replacement, What asset are you replacing?:1204653
0
0
0
0
0
you requesting this?:My machine is broken., Please provide
Here is the result.
GetAttributes
{
[orderDate=“2020-10-23T08:47:11-08:00”],
[orderID=“2599030094”],
[orderType=“regular”],
[orderVersion=“1”],
[type=“new”],
[requisitionID=“”],
[mailDate=“20200908”]
}