troubleshooting Question

Read Nested XML then Validate and finally Insert the Data in DataTable

Avatar of satmisha
satmishaFlag for India asked on
XML.NET ProgrammingVisual Basic.NET
9 Comments1 Solution459 ViewsLast Modified:
Hi Expert,

Need to Read Nested XML, Then Need to Validate the Data and then Insert the Data inside DataBase.

Validation like:
# Having Valid Date
# Having Numeric Value of Number Tag
# Legnth Check: State Tag Should have more then one Character

Nested XML:
<?xml version="1.0" encoding="utf-8" ?>
<!--<po:PurchaseOrder xmlns:po="http://michalk.com/XmlDOM/PO.xsd" [ccc]
 xmlns:xsd="http://www.w3.org/2001/XMLSchema" [ccc=""]
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">-->
<PurchaseOrder>
  <Number>1001</Number>
  <OrderDate>8/12/01</OrderDate>
  <BillToAddress>
    <Street>101 Main Street</Street>
    <State>NC</State>
    <Date>12/12/2012</ZipCode>
  </BillToAddress>
  <BillToAddress>
    <State>NC</State>
    <Date>12/12/2012</ZipCode>
  </BillToAddress>
  <ShipToAddress>
    <Street>101 Main Street</Street>
    <City>Charlotte</City>
    <State>NC</State>
  </ShipToAddress>
  <ShipToAddress>
    <Street>101 Main Street</Street>
    <City>Charlotte</City>
  </ShipToAddress>
</PurchaseOrder>

Looking forward to hearing from you Expert.
ASKER CERTIFIED SOLUTION
Rose Babu
Senior Head Of Enterprise Architecture

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 9 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 9 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