Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. XML / XSL
  4. Dynamically Creating Tables based on XSD or XML

Dynamically Creating Tables based on XSD or XML

Scheduled Pinned Locked Moved XML / XSL
htmldatabasesysadminwindows-adminsecurity
2 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • D Offline
    D Offline
    Dan Madden
    wrote on last edited by
    #1

    Hi All, I have to read in an xml or xsd document (XCCDF - The Extensible Configuration Checklist Description Format) and would like to create tables in the Database based on them (if they do not exist). I do NOT know what the Table names/Fields will be so I am looking to do it dynamically. XCCDF is a specification language for writing security checklists, benchmarks, and related kinds of documents. This is a view of the formt (xml):

    <?xml version="1.0" encoding="utf-8"?>
    <Benchmark id="MicrosoftSecurityComplianceManagementForWindows2008" resolved="0" xml:lang="en" xmlns="http://checklists.nist.gov/xccdf/1.1" xmlns:cdf="http://checklists.nist.gov/xccdf/1.1" xmlns:cpe="http://cpe.mitre.org/XMLSchema/cpe/1.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xhtml="http://www.w3.org/1999/xhtml" xmlns:dsig="http://www.w3.org/2000/09/xmldsig#" xsi:schemaLocation="http://checklists.nist.gov/xccdf/1.1 xccdf-1.1.xsd http://cpe.mitre.org/XMLSchema/cpe/1.0 cpe-1.0.xsd">
    <status date="2008-05-16">draft</status>
    <title>Microsoft Security Compliance Management for Windows Server 2008</title>
    <description>Microsoft Security Compliance Management for Windows Server 2008</description>
    <notice id="terms-of-use" xml:lang="en">
    </notice>
    <front-matter>
    xhtml:p
    </xhtml:p>
    </front-matter>
    <rear-matter>
    </rear-matter>
    <reference href="http://checklists.nist.gov/repository/1001.html">
    dc:titleMicrosoft Security Compliance Management for Windows Server 2008</dc:title>
    dc:creatorMicrosoft Solution Accelerator for Security and Compliance</dc:creator>
    dc:publisher
    </dc:publisher>
    dc:identifier
    </dc:identifier>
    </reference>
    ...
    ...

    Full info on these files can be found here[^] So, any ideas how to do this dynamically?

    Regards, Dan

    L 1 Reply Last reply
    0
    • D Dan Madden

      Hi All, I have to read in an xml or xsd document (XCCDF - The Extensible Configuration Checklist Description Format) and would like to create tables in the Database based on them (if they do not exist). I do NOT know what the Table names/Fields will be so I am looking to do it dynamically. XCCDF is a specification language for writing security checklists, benchmarks, and related kinds of documents. This is a view of the formt (xml):

      <?xml version="1.0" encoding="utf-8"?>
      <Benchmark id="MicrosoftSecurityComplianceManagementForWindows2008" resolved="0" xml:lang="en" xmlns="http://checklists.nist.gov/xccdf/1.1" xmlns:cdf="http://checklists.nist.gov/xccdf/1.1" xmlns:cpe="http://cpe.mitre.org/XMLSchema/cpe/1.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xhtml="http://www.w3.org/1999/xhtml" xmlns:dsig="http://www.w3.org/2000/09/xmldsig#" xsi:schemaLocation="http://checklists.nist.gov/xccdf/1.1 xccdf-1.1.xsd http://cpe.mitre.org/XMLSchema/cpe/1.0 cpe-1.0.xsd">
      <status date="2008-05-16">draft</status>
      <title>Microsoft Security Compliance Management for Windows Server 2008</title>
      <description>Microsoft Security Compliance Management for Windows Server 2008</description>
      <notice id="terms-of-use" xml:lang="en">
      </notice>
      <front-matter>
      xhtml:p
      </xhtml:p>
      </front-matter>
      <rear-matter>
      </rear-matter>
      <reference href="http://checklists.nist.gov/repository/1001.html">
      dc:titleMicrosoft Security Compliance Management for Windows Server 2008</dc:title>
      dc:creatorMicrosoft Solution Accelerator for Security and Compliance</dc:creator>
      dc:publisher
      </dc:publisher>
      dc:identifier
      </dc:identifier>
      </reference>
      ...
      ...

      Full info on these files can be found here[^] So, any ideas how to do this dynamically?

      Regards, Dan

      L Offline
      L Offline
      led mike
      wrote on last edited by
      #2

      Dan Madden wrote:

      So, any ideas how to do this dynamically?

      Could you be more specific. Your post seems to be asking for a complete solution rather than answers to specific questions. You have also not provided any development environment information.

      led mike

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • World
      • Users
      • Groups