2

I've got xml document and XML's DTD.

Is there any tool that makes possible to:

  1. create full sql schema from DTD.

  2. convert XML doc with data into SQL.

mpromonet
  • 11,326
  • 43
  • 62
  • 91
user1019848
  • 21
  • 1
  • 2

2 Answers2

1

Use the following tools:

1) create full sql schema from DTD.

2) convert XML doc with data into SQL.

References

Community
  • 1
  • 1
Paul Sweatte
  • 24,148
  • 7
  • 127
  • 265
1

DTD is a deprecated technology. You'll need to convert it to XSD to have any real hope of achieving this. W3 has A Conversion Tool from DTD to XML Schema which might help.

I'm thinking that you may be able to use the Codeplex project mentioned in the ADO.Net Entity Framework generate model from XSD file question to generate an Entity Framework model, retarget the model to a database and then generate schema from that.

Bear in mind, that I have not tried this myself. It just seems a likely path. I hope this helps. Good luck.

Community
  • 1
  • 1
JamieSee
  • 12,696
  • 2
  • 31
  • 47