none
XML Missing Element Values RRS feed

  • Question

  • Not sure if this is the correct forum, if not I apologize. But I have xml files that come in from vendors that I validate against a schema. Sometimes elements are missing in the xml and if so is there a way to find those missing elements and create them (using the schema) with the default value specified in the schema (in C# code, hence the post in this forum)? I am sure there is probably a way, I'm just praying someone has done that before so they can point me in the right direction, because I am on a short time table.

    Thanks

    Friday, January 23, 2009 6:12 PM

Answers

  • Yes, lots of stuff for this is already there:

     

    http://www.codeproject.com/KB/cpp/Simple_XML_Validator.aspx

    http://support.microsoft.com/kb/307379

    • Marked as answer by Figo Fei Wednesday, January 28, 2009 7:13 AM
    Friday, January 23, 2009 6:23 PM