troubleshooting Question

Trying to add XElements to my existing XML

Avatar of Bran-Damage
Bran-DamageFlag for United States of America asked on
XML.NET ProgrammingC#
6 Comments1 Solution335 ViewsLast Modified:
Here is my XML:

<PWCScript Version="2011113">
  <Table Name="QD" Action="Edit">
    <Choose Name="QD_JOB_NUM" Value="10244" />
    <Choose Name="QD_DES_SEQ" Value="1" />
    <Update Name="QD_DELIV_DATE" Value="01010001" />
    <Update Name="QD_DELIV_METH" Value="UPS Blue" />
    <Update Name="QD_CONSIGN" Value="571081ce-2c62-46f1-b21a-68ad7b52a984" />
    <Update Name="QD_FREIGHT_COST" Value="10.18" />
    <Update Name="QD_PACK_NUM" Value="10244:1" />
    <Update Name="QD_DES_QTY" Value="500" />

I am trying to do this:

I get an object reference error.

I do a quick watch to see what is causing it:

That is returning Null.

I can't seem to figure out what I am doing wrong.  Any help would be appreciated.



Our community of experts have been thoroughly vetted for their expertise and industry experience.

Join our community to see this answer!
Unlock 1 Answer and 6 Comments.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 6 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros