#1
|
|||
|
|||
Import the *.bld into SQL XSD XML
I am trying to figure out an easy way to import the visual pro build files into a sql table so that I can run reports on which sites are being built etc.
I was looking at the sql xml but it requires an XSD in order to describe the columns. Do you guys have one available, or know of any easier methods Thanks in advance. Chudson121@hotmail.com |
#2
|
|||
|
|||
We have not defined a schema for .bld files. The basic structure is pretty simple:
<?xml version='1.0'?> <project version='5'> <!-- optional comment--> <comment>comment</comment> <!-- 0 to n steps --> <step action='Group' type='0'> <name>Project steps</name> <!-- more optional properties specific to action --> </step> <!-- 0 or more macros... --> <macro> <name>MacroName</name> <value>the value</value> </macro> </project> However, there can be any number of additional elements (one for each property) within a step element, and each action type has different properties/elements specific to that action type (macros can have a few additional optional elements as well). I'm not sure if SQLXML would accept a matching open-ended schema or not. You may want to run your project file through an XSL transformation first to filter on the specific step actions + properties you're interested in, then define a schema for the output document and use those for importing into SQL Server. |
|
|