I am not aware of the existence of a parser program for the mdl\cat files
for Rose.  Your options are spelled out in the following technical note:

TechnoteID: 7937  

Subject: Rose: Is petal file grammar available?

PRODUCT:Rose 
OS: All
DEFECT #: N/A
PATCH #: N/A
REFERENCES: N/A
CREATED: 18/05/1999
REVISED: 12/05/2000

QUESTION:

Has anybody developed a petal file parser (in Java), or is petal file
grammar available for viewing and editing?

ANSWER: 

No. the petal file format is proprietary.   

###################################################################

Some previous discussions on the subject:

-------------------------------------------------------------------
directly parsing petal is a very dicey endeavor - the grammar is 
a moving target and any changes will break your parser.

The REI provides a very stable and consistent means of interacting 
with the model, and is guaranteed to be consistent release to 
release. I highly encourage you to take the REI path and save 
yourself the headache of constantly reworking a parser.
-------------------------------------------------------------------
Is there something that they're trying but can't accomplish with 
the REI? There are some extreme cases but overall the REI covers 
most everything.

Do they know that the ptl file potentially changes from release to 
release?
-------------------------------------------------------------------
However, I think a good question would be why do they want the 
petal format? What are they trying to achieve? 

Have you ever tried to read or edit a petal file yourself? If you 
have then you'll realise what a nightmare it is and how its much 
easier and more reliable just to use the REI. 
------------------------------------------------------------------
Creating a petal file from scratch without Rose is not practical 
for two reasons:
1. The format is proprietary, so we cannot fully describe the 
syntax.
2. The format changes from version to version of Rose, so any 
exporter designed for today's syntax will fail in six months to a 
year.

XMI import using the Unisys add-in is a good choice, because the 
structure is based on a public standard and the DTD is shipped with
the add-in. The DTD can be loaded and examined in Rose using the 
XML DTD add-in.

The other good alternative is to write an add-in which uses Rose 
REI via COM to create the model. Doing this guarantees that 
complete elements are created in their appropriate context within 
the model. The three-day Rational University course "Extending 
Rational Rose" is the best place to start for this approach.
-------------------------------------------------------------------

###################################################################


Patrick Kennedy
 Rational Support



-----Original Message-----
From: Alexiev, Nikolay [mailto:[EMAIL PROTECTED]]
Sent: Sunday, April 07, 2002 3:05 AM
To: Rational
Subject: (ROSE) Parser 



I need to parse MDL and PTY files. Is there any existing parser that I can
use?
Please help me, it's very urgent.
10x in advance

------------------------------------
 Company: Information Services, Corp., Ministry of Finance Bulgaria
 Address:
     str. Paniot Volov #2
     Sofia 1000
     Bulgaria
 Telephone: +359-2-96562041


************************************************************************
* Rose Forum is a public venue for ideas and discussions.
* For technical support, visit http://www.rational.com/support
*
* Post or Reply to: [EMAIL PROTECTED]
* Subscription Requests: [EMAIL PROTECTED]
* Archive of messages:
*    http://www.rational.com/support/usergroups/rose/rose_forum.jsp
* Other Requests: [EMAIL PROTECTED]
*
* To unsubscribe from the list, please send email
*    To: [EMAIL PROTECTED]
*    Subject: <BLANK>
*    Body: unsubscribe rose_forum
*************************************************************************
************************************************************************
* Rose Forum is a public venue for ideas and discussions.
* For technical support, visit http://www.rational.com/support
*
* Post or Reply to: [EMAIL PROTECTED]
* Subscription Requests: [EMAIL PROTECTED]
* Archive of messages:
*    http://www.rational.com/support/usergroups/rose/rose_forum.jsp
* Other Requests: [EMAIL PROTECTED]
*
* To unsubscribe from the list, please send email
*    To: [EMAIL PROTECTED]
*    Subject: <BLANK>
*    Body: unsubscribe rose_forum
*************************************************************************

Reply via email to