Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

DTD for PowerDesigner XML

Status
Not open for further replies.

JWFox

MIS
Oct 26, 2001
12
US
In the newer versions of PowerDesigner (7.5+?) there is an option to save data models in an XML format. Where would I find a DTD for this type of XML document?
 
Hello JWFox.

Can I ask you what you require out of PowerDesigner? Do you need the metamodel? Do you need to automate some functionality or export to Excel?

I might be able to help you if you can answer these questions?

TIA

Justin
 
I am frequently asked to export information out of PowerDesigner in a format that can be imported into another tool, whether that tool is MS Excel, MS Access, etc. Having the DTD for the XML-format PowerDesigner file would be extremely helpful in building some kind of tool to provide that export functionality.
 
Hello.

I don't have the DTD to give you. Saving the models as XML allows PowerDesigner to be very flexibly init's processing of models, not neccesarily to export in this case. If you wish to export to an external tool their are several process.

Your best chance is using PD 9!
I know this isn't quite what you asked for but here goes.

In PD 9 you have much more flexability in exporting the metamodel.

You can export the UML diagram as an XMI format for interchange with other UML tools. (See below for details). And this will automatically generate the DTD for the UML.

If you wish to export to something like Excel then in PowerDesigner 9 a VB API has been introduced so that you can automate certain things. one of the sample scripts will export a CDM to EXcel. You can tailor this for the othermodels as well. Using this you can customize exactly what you need to export to Excell etc. It would be the same for Acceess unles you wished to generate an acccess database and thenb I would reccomend using the built in Access genertation tool to generate the DB.

--------------------
When you export
an XMI file, you save your OOM under the XML format. Simultaneously a DTD UML 1.3 file is created in the same directory as your exported XML file allowing you to validate your file.


HTH

Jay
 
Hello,

Check out


DTD and XML editors
Furthermore PowerDesigner XML files support a DTD (Document Type Definition) for each type of model. The DTD enables you to use an XML editor to browse through the hierarchical structure of the objects in the model. The different DTDs are available in the \DTD folder in the PowerDesigner installation directory.
 
Sorry your right , I was getting confused with a certain metamodel.

BTW if anyone uses the VBA API I would be interested in hearing what for.

TIA

Jay
 
The Vbs script referred to above is rudimentary and doesn't include any of the CDM properties. Unfortunately, I don't know visual basic. Can anyone tell me how to get to the properties of the data items?
 
Take care to not make confusion between data item and entity attribute.
To get dataitem properties with vbs, use the following

========================================
set M=ActiveModel
for each E in M.Entities
for each A in E.Attributes
DescribeDI DI A.DataItem
next
next
sub DescribeDI(x)
output x.Name
' and whatever data item property you want
end sub
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top