troubleshooting Question

How to parse the node names of an xml document and insert them into database?

Avatar of ipjyo
ipjyoFlag for United States of America asked on
.NET ProgrammingC#
6 Comments2 Solutions307 ViewsLast Modified:
I have an xml document as shown below and I need to parse this xml and load the names of nodes into access database.
In my database I have a table with two columns say "FieldType" and "Number".
Once the xml is loaded into database, the "FieldType" and "Number" need to have the values as follows. can somebody please give me some idea how to do this? Thanks for any help.

FieldType     Number
-----------     ----------
Borrower     D1
Borrower     D2
Borrower     D3
Cosigner      D1
Cosigner      D2
Cosigner      D3
Guarantor    D1
Guarantor    D2
Guarantor    D3
<XmlPoint Function="CreateAccount">

  <D1 FieldName="Name">John</D1>
  <D2 FieldName="Phone">742-33-4372</D2>
  <D3 FieldName="DOB">01/01/1973</D3>

  <D1 FieldName="Name">Paul</D1>
  <D2 FieldName="Phone">742-33-4372</D2>
  <D3 FieldName="DOB">01/01/1973</D3>

  <D1 FieldName="Name">Kim</D1>
  <D2 FieldName="Phone">742-33-4372</D2>
  <D3 FieldName="DOB">01/01/1973</D3>

Join the community to see this answer!
Join our exclusive community to see this answer & millions of others.
Unlock 2 Answers and 6 Comments.
Join the Community
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 2 Answers 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