UML to XML? How??

Hi,
I need to build an XML representation of an UML model (a couple of classes and relationships between them). I know that I must use an XMI standard representation, but my problem is another one:
I know yet rules to generate an XMI-Schema (the specialized version of XSD schemas). I don't want to generate any schema, but a static rapresentation of classes and relationships through the XML elements like:
<uml:model>,
<uml:ownedElement>
<uml:associationEnd>
....and so on
I know that my xml doc should be something like:
<?xml version='1.0' encoding='UTF-8'?>
<!-- <!DOCTYPE XMI SYSTEM "uml14xmi12.dtd"> -->
<XMI xmi.version='1.2' timestamp=<> xmlns:UML='omg.org/UML/1.4'>
  <XMI.header>
  </XMI.header>
  <XMI.content>
    <UML:Model ...>
    ... (the body of the document)
    </UML:Model>
  </XMI.content>
</XMI>but... where I can find a complete list (and their usage) of all XML elements in the UML namespace?
I have spent many hours on the OMG site, but without results. I know that the UML metamodel is described in terms of MOF, and I know that XMI defines how serialize MOF objects to XML... my problem is that I cannot find any document describing how to do this clearly...
Somebody can help me?

HOW can we make an activity diagram executable? how can we make a complete activity diagram such that it can be directly converted to source code? can anyone help me??

Similar Messages

  • XSLT for ABAP to XML: how can I get a variable in a literal field

    Hi,
    I have the requirement to provide an xml format (for Intrastat reporting) which contains some dynamic data within "".
    Example (I'll put the variables between && for clarity):
    <?xml version='1.0' encoding='UTF-8'?>
         <DeclarationReport xmlns="http://www.onegate.eu/2010-01-01">
              <Administration>
                   <From declarerType="KBO">0000000097</From>
                   <To>NBB</To>
                   <Domain>SXX</Domain>
              </Administration>
              <Report action="&ACTION&" date="&DATE&" code="&CODE&">
                   <Data close="&CLOSE&" form="&FORM&">
                        <Item>
                             <Dim prop="EXTRF">19</Dim>
                             <Dim prop="EXCNT">NL</Dim>
                             <Dim prop="EXTTA">3</Dim>
                             <Dim prop="EXREG">1</Dim>
                             <Dim prop="EXTGO">73202089</Dim>
                             <Dim prop="EXWEIGHT">101</Dim>
                             <Dim prop="EXUNITS">0</Dim>
                             <Dim prop="EXTXVAL">1098</Dim>
                             <Dim prop="EXTPC">3</Dim>
                             <Dim prop="EXDELTRM">CPT</Dim>
                        </Item>
                        <Item>
                             <Dim prop="EXTRF">19</Dim>
                             <Dim prop="EXCNT">DK</Dim>
                             <Dim prop="EXTTA">3</Dim>
                             <Dim prop="EXREG">1</Dim>
                             <Dim prop="EXTGO">83012000</Dim>
                             <Dim prop="EXWEIGHT">88</Dim>
                             <Dim prop="EXUNITS">0</Dim>
                             <Dim prop="EXTXVAL">73456</Dim>
                             <Dim prop="EXTPC">3</Dim>
                             <Dim prop="EXDELTRM">CPT</Dim>
                        </Item>
                   </Data>
              </Report>
            </DeclarationReport>
    All the other variables I've solved by using this technique: <xsl:value-of select="EXTRF"/> but apparently it's not allowed to do this within "".
    I have an idea that params or variables could be used to fill in those fields but I don't find the right syntax.
    For your info, here's my current transformation program; it works except for those fields
    <xsl:transform xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:sap="http://www.sap.com/sapxsl" version="1.0">
      <xsl:output encoding="UTF-8" indent="yes" method="xml" version="1.0"/>
      <xsl:strip-space elements="*"/>
      <xsl:template match="/">
        <DeclarationReport xmlns="http://www.onegate.eu/2010-01-01">
          <Administration>
            <From declarerType="KBO">&KBO&</From>
            <To>NBB</To>
            <Domain>SXX</Domain>
          </Administration>
          <Report Code="&CODE&" Date="&DATE&" action="&ACTION&">
            <Data close="&CLOSE&" form="&FORM&">
              <xsl:apply-templates select="//INTRASTAT/item"/>
            </Data>
          </Report>
        </DeclarationReport>
      </xsl:template>
      <xsl:template match="INTRASTAT/item">
        <Item>
          <Dim prop="EXTRF">
            <xsl:value-of select="EXTRF"/>
          </Dim>
          <Dim prop="EXCNT">
            <xsl:value-of select="EXCNT"/>
          </Dim>
          <Dim prop="EXTTA">
            <xsl:value-of select="EXTTA"/>
          </Dim>
          <Dim prop="EXREG">
            <xsl:value-of select="EXREG"/>
          </Dim>
          <Dim prop="EXTGO">
            <xsl:value-of select="EXTGO"/>
          </Dim>
          <Dim prop="EXWEIGHT">
            <xsl:value-of select="EXWEIGHT"/>
          </Dim>
          <Dim prop="EXUNITS">
            <xsl:value-of select="EXUNITS"/>
          </Dim>
          <Dim prop="EXTXVAL">
            <xsl:value-of select="EXTXVAL"/>
          </Dim>
          <Dim prop="EXTPC">
            <xsl:value-of select="EXTPC"/>
          </Dim>
          <Dim prop="EXDELTRM">
            <xsl:value-of select="EXDELTRM"/>
          </Dim>
        </Item>
      </xsl:template>
    </xsl:transform>
    Can anyone help me out here? How can I fill up these variables?
    Thanks

    If you are searching via the Search Bar on the Navigation Toolbar, this preference can be changed to have searches there open in a Tab.
    Type '''about:config''' in the Address Bar and hit Enter. Then answer "I'll be careful". Type this pref in the Search at the top.
    '''browser.search.openintab''' = double-click to toggle to '''true'''

  • Xml: how to get node value when pasing node name as a parameter

    Hi,
    I've got some xml:
    var xmlData:XML =
    <1stNode>
        <buttonID>first child node value</buttonID>
        <imageID>second child node value</imageID>
        <labelID>third child node value</labelID>
    </1stNode>
    Then I want to read specific node value based on a value passed to a function. .
    var buttonID = new Button;
    var imageID = new Image;
    var labelID = new Label;
    getNodeValue(buttonID); //the value here is set dynamically
    private function getNodeValue (nodeName:String):void {
    trace (xmlData.nodeName)                      //doesn't work
    var str:String = "xmlData." + nodeName;
    var xml:XMLList = str as XMLList             //doesn't work
    I'm don't know how to get the value when node name is dynamically changed.

    use:
    getNodeValue(buttonID); //the value here is set dynamically
    private function getNodeValue (nodeName:String):void {
    trace (xmlData[nodeName])                    

  • For loop and xml - how to point the right content in a XML file with a dynamically created button?

    Hi Everybody,
    as my first experience in AS3 I'm bulding a photo multigallery. In that gallery I have some buttons, each one pointing to its respective set of images.
    Each button is created with the for loop, that picks the information from a XML file. From this XML I get the text of the button, the position etc. What I did with some sucess. But there is a scary problem: I don't know how to make each button load the respective and unique set of images.
    I've tryied several different methods, with no effect, to make each loop to give to each button an unique identity to load the respective set of images.
    I imagine that the solution pass by the use of arrays. I wrote some code, and I guess that I'm almost there (but not sure). Here is my AS3 code until now:
    // CREATE MENU CONTAINER //
    var menuContainer:MovieClip = new MovieClip();
    menuContainer.x=10;
    menuContainer.y=300;
    addChild(menuContainer);
    // CREATE IMAGES CONTAINER //
    var imagesContainer:MovieClip = new MovieClip();
    imagesContainer.x=10;
    imagesContainer.y=10;
    addChild(imagesContainer);
    //// LOAD XML ////
    var xmlLoader:URLLoader = new URLLoader();
    xmlLoader.addEventListener(Event.COMPLETE, whenLoaded);
    xmlLoader.load(new URLRequest("XML/roiaXML.xml"));
    var xml:XML;
    function whenLoaded(evt:Event):void {
         xml=new XML(evt.target.data);
         var mySetsList:XMLList=xml.children();
         //// MENU BUTTONS ////
         // CREATE ARRAYS //
         var totalArray:Array = new Array();
         var setNodesArray:Array = new Array();
         var setNamesArray:Array = new Array();
         // POSITIONING BUTTONS INSIDE MENU CONTAINER//
         var rowsQuantity:Number=3;
         var columnsQuantity:Number=Math.ceil(mySetsList.length()/rowsQuantity);
         var cellWidth:Number=160;
         // CREATE BUTTONS //
         for (var i:int=0; i< mySetsList.length(); i++) {
              var newSetButtonMC:setButtonMC=new setButtonMC();
              //what do I do here to make it works? To give each button created a unique id.
              setNodesArray.push(i);
              //trace(setNodesArray);
              var imageNodesArray:Array = new Array();
              for (var j:int=0; j<mySetsList[i].IMAGE.length(); j++) {
                   imageNodesArray.push(mySetsList[i].IMAGE[j].attribute("imageTitle"));
              totalArray.push(imageNodesArray);
              newSetButtonMC.setButtonText.text=mySetsList.attribute("galeriaTitle")[i];
              newSetButtonMC.setButtonText.autoSize=TextFieldAutoSize.LEFT;
              var cellX:Number=Math.floor(i/rowsQuantity);
              var cellY:Number=i%rowsQuantity;
              newSetButtonMC.x=cellX*cellWidth;
              newSetButtonMC.y=cellY*(newSetButtonMC.height+10);
              newSetButtonMC.addEventListener(MouseEvent.CLICK, onClick);
              menuContainer.addChild(newSetButtonMC);
         totalArray.push(setNodesArray);
         //// MENU BUTTONS ACTIONS ////
         function onClick(mevt:MouseEvent):void {
              trace(totalArray [0][0]);
              trace(totalArray [0][0]);
              // in the line above I achieved some success loading a specific info from XML.
              // but I don't know what to do with it.
              //what do I do here? To make each button to load its own node from XML.
    Here is my XML:
    <GALERIA galeriaTitle="galeria 01">
      <IMAGE imageTitle="imageTitle01">feio.jpg</IMAGE>
      <IMAGE imageTitle="imageTitle02">muitofeio.jpg</IMAGE>
      <IMAGE imageTitle="imageTitle03">aindamaisfeio.jpg</IMAGE>
    </GALERIA>
    <GALERIA galeriaTitle="galeria 02">
      <IMAGE imageTitle="imageTitle01">estranho.jpg</IMAGE>
      <IMAGE imageTitle="imageTitle02">maisestranho.jpg</IMAGE>
      <IMAGE imageTitle="imageTitle03">aindamaisestranho.jpg</IMAGE>
    </GALERIA>
    Thanks everyone . ABSTRATO

    you can assign each newSetButtonMC and ivar property that points to its i value or, even easier:
    // CREATE MENU CONTAINER //
    var menuContainer:MovieClip = new MovieClip();
    menuContainer.x=10;
    menuContainer.y=300;
    addChild(menuContainer);
    // CREATE IMAGES CONTAINER //
    var imagesContainer:MovieClip = new MovieClip();
    imagesContainer.x=10;
    imagesContainer.y=10;
    addChild(imagesContainer);
    //// LOAD XML ////
    var xmlLoader:URLLoader = new URLLoader();
    xmlLoader.addEventListener(Event.COMPLETE, whenLoaded);
    xmlLoader.load(new URLRequest("XML/roiaXML.xml"));
    var xml:XML;
    function whenLoaded(evt:Event):void {
         xml=new XML(evt.target.data);
         var mySetsList:XMLList=xml.children();
         //// MENU BUTTONS ////
         // CREATE ARRAYS //
         var totalArray:Array = new Array();
         var setNodesArray:Array = new Array();
         var setNamesArray:Array = new Array();
         // POSITIONING BUTTONS INSIDE MENU CONTAINER//
         var rowsQuantity:Number=3;
         var columnsQuantity:Number=Math.ceil(mySetsList.length()/rowsQuantity);
         var cellWidth:Number=160;
         // CREATE BUTTONS //
         for (var i:int=0; i< mySetsList.length(); i++) {
              var newSetButtonMC:setButtonMC=new setButtonMC();
              //what do I do here to make it works? To give each button created a unique id.
              setNodesArray.push(i);
              //trace(setNodesArray);
              var imageNodesArray:Array = new Array();
              for (var j:int=0; j<mySetsList[i].IMAGE.length(); j++) {
                   imageNodesArray.push(mySetsList[i].IMAGE[j].attribute("imageTitle"));
             nextSetButtonMC.imageArray = imageNodesArray;
              //totalArray.push(imageNodesArray);
              newSetButtonMC.setButtonText.text=mySetsList.attribute("galeriaTitle")[i];
              newSetButtonMC.setButtonText.autoSize=TextFieldAutoSize.LEFT;
              var cellX:Number=Math.floor(i/rowsQuantity);
              var cellY:Number=i%rowsQuantity;
              newSetButtonMC.x=cellX*cellWidth;
              newSetButtonMC.y=cellY*(newSetButtonMC.height+10);
              newSetButtonMC.addEventListener(MouseEvent.CLICK, onClick);
              menuContainer.addChild(newSetButtonMC);
         totalArray.push(setNodesArray);
         //// MENU BUTTONS ACTIONS ////
         function onClick(mevt:MouseEvent):void {
              var mc:setButtonMC=setButtonMC(mevt.currentTarget);
    for(i=0;i<mc.imageArray.length;i++){
    trace(mc.imageArray[i]);
    Here is my XML:
    <GALERIA galeriaTitle="galeria 01">
      <IMAGE imageTitle="imageTitle01">feio.jpg</IMAGE>
      <IMAGE imageTitle="imageTitle02">muitofeio.jpg</IMAGE>
      <IMAGE imageTitle="imageTitle03">aindamaisfeio.jpg</IMAGE>
    </GALERIA>
    <GALERIA galeriaTitle="galeria 02">
      <IMAGE imageTitle="imageTitle01">estranho.jpg</IMAGE>
      <IMAGE imageTitle="imageTitle02">maisestranho.jpg</IMAGE>
      <IMAGE imageTitle="imageTitle03">aindamaisestranho.jpg</IMAGE>
    </GALERIA>
    Thanks everyone . ABSTRATO

  • XML: How to convert xml string into Node/Document

    I have a string in xml form.
    <name>
    <first/>
    <second/>
    </name>
    I want to convert this string into DOM Node or Document.
    How can I do this?
    Any help or pointer?
    TIA
    Sachin

    Try this :
    DocumentBuilderFactory dbf = DocumentBuilderFactory.newInstance();
    DocumentBuilder db = dbf.newDocumentBuilder();
    Document doc = db.parse(new org.xml.sax.InputSource(new StringReader(strXml)));Hope this helps.

  • XML , how to parse ?

    Hello Dear Sirs !
    I am a newbie in XML world and I need to parse and also write to file yhe next XML Format :
    <FORMAT NAME="InputQG30Format">
    <TransactionCode>QG30</TransactionCode>
    <FunctionKey>00</FunctionKey>
    <ProcessType>O</ProcessType>
    <PreformattingIndicator>no</PreformattingIndicator>
    <InputFormat>
    <F VALUE="USER">USERCtx</F>
    <F VALUE="PSWD">PSWDCtx</F>
    <F VALUE="NEWPSWD">NEWPSWDCtx</F>
    <F VALUE="VNPSWD">VNPSWDCtx</F>
    </InputFormat>
    </FORMAT>
    But I have no idea how i can do that ? I will very appretiate your attempt to help me .
    How i can parse it ? What is the better parser for this case ? Each clue and code snippet will be properly appretiated .
    Thank you ,
    Marat

    you could use any parser for this one, I tell you how to do that use JDom.
    first of all, download some packages from www.jdom.org
    import these package should be enough for you:
    import java.io.*;
    import java.util.*;
    import org.jdom.Element;
    import org.jdom.Attribute;
    import org.jdom.input.*;
    import org.jdom.Document;
    Then:
    SAXBuilder saxBuilder = new SAXBuilder();
    Document doc = saxBuilder.build("C:\\myxml.xml");
    Element root = doc.getRootElement();
    List eList = root.getChildren();
    Iterator i = eList.iterator();
    while (i.hasNext()) {
    Element elem = (Element) i.next();
    System.out.println("Name: "+elem.getName());
    // the api would be very helpful for what you exactly want to do...

  • Convert binary data (TIFF image) into XML - how ?

    Hi,
    I have the following requirement:
    1. A document is scanned and a TIFF image is saved in a directory
    2. The File adapter picks up the image file and sends into XI
    3. The binary data is converted into XML so a Web Service can be called (this web service will store the image in a database application)
    <b>The part I am struggling with is the convert of the incoming binary data into a XML format document which will allow the Web Service to be called.</b>
    Graphical mapping cannot be used therefore I am left with 3 options:
    1. XSLT mapping
    2. Java mapping
    3. ABAP mapping
    Can anyone suggest the best option to use in these circumstances and provide some sample snippet of code on how to do it.
    I am alright at XSLT mapping but this is beyond me and Java mapping is completely new to me as I have very limited Java knowledge.
    Thanks for your help
    Colin.

    Hi Colin
    Look for the below link
    https://www.sdn.sap.comhttp://www.sdn.sap.comhttp://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/10dd67dd-a42b-2a10-2785-91c40ee56c0b
    <b>***Reward point if helpfull</b>
    <a href="https://www.sdn.sap.comhttp://www.sdn.sap.comhttp://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/10dd67dd-a42b-2a10-2785-91c40ee56c0b">https://www.sdn.sap.comhttp://www.sdn.sap.comhttp://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/10dd67dd-a42b-2a10-2785-91c40ee56c0b</a>

  • [JS] XML : How to placeXML the content of a specific tag

    Hi, I'm new to scripting and I can't figure out how to do this :
    I need to find the first element with the tag "body" and make a placeXML on it.
    I make a function do find it, but I really don't know what to do after that.
    Here is my code :
    var tab= new Array();
    var body = findFirstElement(myDocument,"body", tab);
    function findFirstElement(elm, tag, tab)
        for (var i = 0; i < elm.xmlElements.length; i++)
            XMLelementName=elm.xmlElements[i].markupTag.name.toString();
            if(XMLelementName==tag)
                elm.xmlElements[i].select();
              tab.push(elm.xmlElements[i]);
            else {
            findFirstElement(elm.xmlElements[i], tag, tab);
       return tab;
    At this point, body is [object XMLElement]
    So now, I would like to modify the following code to place body. I think I don't understand very well the structure of the document, but once again, I'm totally new at it.
    myDocument.xmlElements.item(0).xmlElements.item(0).placeXML(myDocument.pages.item(0).textF rames.item(0));
    If someone can help me...

    Hi,
    I finally found out how to do it : it's easy with XML Rules.
    Here is my code if someone is interested :
    var myRuleSet = new Array (new ShowBody);
    with(myDocument){
    var elements = xmlElements;
    __processRuleSet(elements.item(0), myRuleSet);
    function ShowBody(){
    this.name = "ShowBody";
    //XPath will match on every XML element in the XML structure.
    this.xpath = "//body";
    // Define the apply function.
    this.apply = function(myElement, myRuleProcessor){
    with(myElement){
    myElement.placeXML(myDocument.pages.item(0).textFrames.item(0));
    return true;
    // Succeeded
    } //End of apply function

  • Sender sending data through XML, How to process it in ECC (No PI involve)?

    Hi,
    The sender system sending data through XML tag and that need to be processed in SAP side.
    How it can be done without involving XI or IDoc?
    Is it possible through HTTP post?
    Sample XML Transactions
    1. SAP Availability Transaction (Request)
    <?xml version="1.0" standalone="yes"?>
    <ECCAVAILREQUEST>
    <AVAILTEXT>CHK STATUS</AVAILTEXT>
    </ECCAVAILREQUEST>
    2. SAP Availability Transaction (Response)
    <?xml version="1.0" standalone="yes"?>
    <ECCAVAILRESPONSE>
    <AVAILTEXT>OK</AVAILTEXT>
    </ECCAVAILRESPONSE>
    3. DUMMY_SYSTEM PO Transaction (Request)
    <?xml version="1.0" standalone="yes"?>
    <DUMMY_SYSTEM REQUEST>
    <CREATEPB>1</CREATEPB>
    <POORDERDATA>
    05607015156070151TORDAEHTWW05727500002D0979054+
    </POORDERDATA>
    4. DUMMY_SYSTEM Order/Inquiry Transaction (Response)
    <DUMMY_SYSTEM RESPONSE>
    <C_PO>99999</C_PO>
    <RETURNDATA>
    DAT&#13;&#10;
    </RETURNDATA>
    </DUMMY_SYSTEM RESPONSE>

    Hi,
    check this link
    http://help.sap.com/saphelp_nw04/helpdata/en/21/e9c97ceb1911d6b2ea00508b6b8a93/content.htm
    this is for processing inbound IDOc through XML-HTTP(Inbound) port
    like this there should be an option for reading files placed by HTTP_POST.
    in SICF transaction there should be a service to do that.
    defaulthost -> sap-> xi-> adapter_plain. i know you don't have XI in your landscape but this is the component which be responsble for receving messages over HTTP_POST.
    look for a program which can access messages from there.
    please check with your basis team
    Suresh

  • SXMB_MONI  detailed error message in XML how can be it retrive .

    Hi Guys/SAP,
                           Iam creating a Zee report for my client to capture all my detail error message which is Display in SXMB_MONI
    Error Tab in XML formt .How can i capture this and how it is stroed in SAP.Please kindly let me know.Iam also alalyais this issue for the past 4 days but iam not able to find out where it is stored.If any one come accross this issue or know kindly let me know .Iam expecting few tips from SAP also .Iam also exploring more on this .
    The below detilas of error message in SXMB_MONI is required,
    <?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
    - <!--  Request Message Mapping
      -->
    - <SAP:Error xmlns:SAP="http://sap.com/xi/XI/Message/30" xmlns:SOAP="http://schemas.xmlsoap.org/soap/envelope/" SOAP:mustUnderstand="">
      <SAP:Category>Application</SAP:Category>
      <SAP:Code area="MAPPING">EXCEPTION_DURING_EXECUTE</SAP:Code>
      <SAP:P1>com/sap/xi/tf/_Test_SenderJDBC_ReceiverFILE_MM_</SAP:P1>
      <SAP:P2>com.sap.aii.utilxi.misc.api.BaseRuntimeException</SAP:P2>
      <SAP:P3>RuntimeException in Message-Mapping transformatio~</SAP:P3>
      <SAP:P4 />
      <SAP:AdditionalText />
      <SAP:ApplicationFaultMessage namespace="" />
      <SAP:Stack>com.sap.aii.utilxi.misc.api.BaseRuntimeException thrown during application mapping com/sap/xi/tf/_Test_SenderJDBC_ReceiverFILE_MM_: RuntimeException in Message-Mapping transformatio~</SAP:Stack>
      <SAP:Retry>M</SAP:Retry>
      </SAP:Error>
    Regards,
    Sri

    Hello Sri
    See the link below:
    Creating Alert Categories 
    http://help.sap.com/saphelp_nw70/helpdata/en/d0/d4b54020c6792ae10000000a155106/content.htm
    You can use the container variables to output the error information from the message in sxmb_moni.
    Regards
    Mark

  • Parse XML: how to get all the sub nodes of an element

    Hello, I am using org.w3c.dom to parse an XML file. I want to get all the information under an elements, including all the sub nodes and sub sub nodes, maybe output as a String or String[ ]. How should I do it with org.w3c.dom?
    e.g. I want to get all the text within<datafile></datafile>:
    <datafile>
    blablabla
    <id> bla <description>bla</description></id>
    </datafile>
    I write:
    Node element = InterfaceDOM.getElementsByTagName("datafile");
    how can I return all the sub content within this element?
    Thanks a lot!

    http://www.developerfusion.co.uk/show/2064/

  • ConfigPlan.xml | How to change datasource values in .bpel and .xsl files

    Hi',
    We have used sql queries inside Transform (XSL) files and also using them in Assign activity,
    Now when moving from Development environment to Test Environment, how can we change the
    JDBC values by using the ant script, in the configplan.xml file I dont see any place where I can change these
    values, is it at all possible, if Yes then how.
    Please advice,
    Thanks
    Yatan

    Hi,
    You can go thru below link to make changes in .bpel file.
    http://eelzinga.wordpress.com/2009/10/28/oracle-soa-suite-11g-setting-and-getting-preferences/
    thanks

  • Dbassist generates XML how can I use

    The dbassist tool in 9i generates XML files for the template definitions.
    Are there any DTD for this XML?
    How can I use this templates in silent mode (without GUI) to generate the creation scripts.

    The GeoRaster metadata is schema-based, so you have to give the scheme name when call the XML SQL functions. For example,
    select t.tmimage.metadata.extract(
    '/gr:georasterMetadata/gr:layerInfo/gr:objectLayer',
    'xmlns:gr=http://xmlns.oracle.com/spatial/georaster')
    from landsat t
    where t.id=0;
    or
    select t.tmimage.metadata.extract(
    '/georasterMetadata/layerInfo/objectLayer',
    'xmlns=http://xmlns.oracle.com/spatial/georaster')
    from landsat t
    where t.id=0;

  • When importing XML, how do I remove lines with labels but no content?

    I am working on a directory whose content is supplied as an XML file. I've created an automatic layout with static text/labels for contact details (e.g. Phone, Fax).
    When I import the file, superfluous lines with the static text and no content are created. I have 'Delete elements, frames and content that do not match imported XML' checked.
    Is there a way of avoid creating these? I've tried doing a search and replace to remove these but this causes quite a few other problems.
    Any help - much appreciated!

    Hi Alison,
    Did you create the posted XML file by extracting it from a larger file you've been using successfully? I ask because there seem to be a couple of problems with it which make me wonder how you got it to work at all, at least with the provided InDesign file's XML structure:
    The immediate child element of the "root" element in the XML document is one called "step2 ". All of the values with which you are concerned are children of that "step2" element, and yet the structure in the InDesign document contains no "step2" element. As a result, when I import, I get nothing at all in my InDesign document's content (though the data are in the XML structure, buried in a newly-created "step2" element.
    In both the XML and the InDesign document's XML structure, you have two different elements which are both named the exactly the same - "description" - (actually, in the XML document, there are three of them). When InDesign imports XML, it stops after the first "match" that it finds, so this will not work in any way that I imagine you intend it to. Based on the content of your InDesign document, I would think there ought to be two separate elements in your XML - named something like "step_description" and "category_description".
    If, after getting this all straightened out, your question is how to somehow make the text of an empty element (e.g., <description></description>) disappear in the imported result, there are a few possibilities:
    Get rid of the text inside the tag markers in your template/base document - for example, instead of having "[step_description]" (where the "[]" represent the tag markers), just make it be "[]". That way, if there is no text value for "step_description", there will be no text left after the import. However, if you put a end-of-paragraph in your template/base file, that will still be there. In most cases, that's not desired, so you might want to put the empty tag ("[]") in the text flow without a carriage return/line break. If you do that, you will need to include the carriage return in the XML data (which admittedly slightly violates the notion of separating presentation from content). Rather than the xml looking like this:
    <step_description>This is the text of my step description.</step_description> you would need to make it be this:
    <step_description>This is the text of my step description.&#13;</step_description>
    (having added "&#13;" to represent the carriage return (ASCII character 13).
    As above, make the tag an empty one, include the carriage return in your InDesign template/base document, and then write (or have written) a script to run after the XML import to deal with such empty tag cases.
    Upgrade to InDesign CS3, CS4, or soon, CS5, so you can take advantage of the "XML Rules" feature which was introduced in CS3. XML Rules will essentially allow you to automate the second option - running a script - as the XML import is taking place.
    Excuse the long (and probably unclear) post. If I've misunderstood your question, then please excuse it doubly...

  • JDev TP3 / UML Class Diagram / How can I specify a derivative attribute?

    Hello,
    I'm trying to put derivatives (or calculated) attributes such as "age" or "price" in a class of UML diagram. In all of UML books that I've seen, a derivative attribute is represented with a "/" and the attribute's name. For example, "/age" or "/price". But in the class diagram of JDeveloper I can't put "/" in the name of attribute. So, how can I specify a derivative attribute?
    Thanks in advance,
    JVN

    Unfortunately, it is not possible to denote derived attributes in TP3. Bug 6915067 has been logged to address this in a future version.
    Thanks, Guus (JDev PM)

Maybe you are looking for

  • HT1766 How do I back up onto an external Hard drive?

    I am trying to back up my iphone 4 but my computer does not have enough space. I need to back up onto an external hard drive. How do I do that?

  • Purchase Order creation with reference to Purchase requistion

    Hi, The scenario is like this I am creating Purchase order with reference to a Purchase requisition which is not relased.The created Purchase order is in hold status.I am releasing the Purchase requisition and opening the Purchase order and saving at

  • How to link Employee-Trip with "Services for Object" Attachment.

    Hello SAPients. This is the scenario: I enter the TCode TRIP, enter a personnel number and hit enter, then click on the 'Subsequent Activities' link, then click on the button 'Services for Object', then click on the 'Attachment List' button, I see a

  • Mail Server for windows...

    Is there any free mail server for windows that i could use to send emails from my application.. Its just that I have been trying the JavaMail Api and having no luck, despite help from some of you. And my deadline is closing in and I am no closer to t

  • Multiclip goes viarable speed on me

    I have used multiclip successfully for the ceremony (2 cameras). Now, I've selected the same raw clips, set in points, clicked 'create multiclip' and bring it into the timeline and the speed is playing at like 90% (says variable) after the clip name.