Book a Demo

Author Topic: XML Schema Generation with Local Path  (Read 3687 times)

Hyder Husain

  • EA Novice
  • *
  • Posts: 3
  • Karma: +0/-0
    • View Profile
XML Schema Generation with Local Path
« on: November 09, 2012, 09:46:20 am »
I have an XSD Schema package with the "Filename" property set to %XSD_HOME%\sample.xsd. I've also created an entry in the "Local Paths" area with ID=XSD_HOME, Path=C:\XSD. What should the Type value be set to? I've tried a few, e.g. Java, but this doesn't seem to be it. Currently the schema generator is not substituting %XSD_HOME% with the value defined in the local path.

eddlsda

  • EA Novice
  • *
  • Posts: 2
  • Karma: +0/-0
  • I love YaBB 1G - SP1!
    • View Profile
Re: XML Schema Generation with Local Path
« Reply #1 on: December 01, 2012, 09:18:39 am »
You need to be sure that you set the XSDSchema folder to the type XSD (select the UML button to go to the screen to set this). Then when expanding or replacing the token via the local dir/paths in Settings choose XSD.

Hyder Husain

  • EA Novice
  • *
  • Posts: 3
  • Karma: +0/-0
    • View Profile
Re: XML Schema Generation with Local Path
« Reply #2 on: December 04, 2012, 01:15:17 am »
Can you please be more specific? In the package, I have the Stereotype property set to "XSDschema". After double-clicking on the package and clicking the "UML" link, I don't see an option to set the "folder to XSD". I'm not clear on exactly where this settings exists. Thanks.

eddlsda

  • EA Novice
  • *
  • Posts: 2
  • Karma: +0/-0
  • I love YaBB 1G - SP1!
    • View Profile
Re: XML Schema Generation with Local Path
« Reply #3 on: December 05, 2012, 11:13:50 am »
In the UML Properties there is a drop down called Language, select XSD and then OK. Now when you go to the Settings and select local dir and paths and define a relative path replacement the Type will be XSD and then when you expand or apply those changes any folder with language of XSD will have the replacement.
Hope that helps

Hyder Husain

  • EA Novice
  • *
  • Posts: 3
  • Karma: +0/-0
    • View Profile
Re: XML Schema Generation with Local Path
« Reply #4 on: December 06, 2012, 12:57:55 am »
I unfortunately don't have XSD as an option in the Language drop down. My team and I are on version 9.0.907 (Build: 907), and I'm guessing that this feature didn't exist on this version. Could you please confirm? The options that are visible are: ActionScript, C, C#, C++, Delphi, Java, PHP, Python, VBNet, Visual Basic and WorkFlowScript. Is there something that I can do to enable this feature? Thanks again for the help.