How to add: ?xml version="1.0"?

Hi there,
Just a simple question: How to I add the processing instruction to the top of my xml file
using the xmldom?
Here is my PL/SQL code for the package body so far and it compiles and works fine.
======================================================================================
create or replace package body cardsXml is
procedure generate_xml_order(p_Order_No in NUMBER)
is
begin
DECLARE
doc xmldom.DOMDocument;
main_node xmldom.DOMNode;
root_node xmldom.DOMNode;
user_node xmldom.DOMNode;
item_node xmldom.DOMNode;
root_elmt xmldom.DOMElement;
item_elmt xmldom.DOMElement;
item_text xmldom.DOMText;
CURSOR get_fingers(v_Order_Num NUMBER) IS
SELECT length(RF.Minutia) Sze, RF.Finger_Cde, RF.Quality_Val
FROM sbs.Recipient_Finger RF
, sbs.Recipient R
, sbs.recipient_card RC
WHERE RC.order_no = v_Order_Num
AND RF.pin = R.pin
AND R.pin = RC.pin;
BEGIN
doc := xmldom.newDOMDocument;
main_node := xmldom.makeNode(doc);
root_elmt := xmldom.createElement(
doc
, 'FINGERS'
root_node := xmldom.appendChild(
main_node
, xmldom.makeNode(root_elmt)
FOR get_fingers_rec IN get_fingers(p_Order_No) LOOP
item_elmt := xmldom.createElement(
doc
, 'FINGER'
user_node := xmldom.appendChild(
root_node
, xmldom.makeNode(item_elmt)
-- Create user element: Size
item_elmt := xmldom.createElement(
doc
, 'SIZE'
item_node := xmldom.appendChild(
user_node
, xmldom.makeNode(item_elmt)
item_text := xmldom.createTextNode(
doc
, get_fingers_rec.Sze
item_node := xmldom.appendChild(
item_node
, xmldom.makeNode(item_text)
-- Create user element: FINGER_CDE
item_elmt := xmldom.createElement(
doc
, 'FINGER_CODE'
item_node := xmldom.appendChild(
user_node
, xmldom.makeNode(item_elmt)
item_text := xmldom.createTextNode(
doc
, get_fingers_rec.finger_cde
item_node := xmldom.appendChild(
item_node
, xmldom.makeNode(item_text)
-- Create user element: QUALITY_VALUE
item_elmt := xmldom.createElement(
doc
, 'QUALITY_VALUE'
item_node := xmldom.appendChild(
user_node
, xmldom.makeNode(item_elmt)
item_text := xmldom.createTextNode(
doc
, get_fingers_rec.quality_val
item_node := xmldom.appendChild(
item_node
, xmldom.makeNode(item_text)
END LOOP;
xmldom.writeToFile(
doc
, '/ec_' || p_Order_No || '.xml'
xmldom.freeDocument(doc);
END;
end generate_xml_order;
end cardsXml;
=======================================================================
Thanks,
Francois

Using theDOM seems like a difficult way to create XML from a table.
There are easier ways, e.g.
declare
theXML clob;
query varchar2(100);
id pls_integer := 3;
begin
query :='select run_id, tc_run_id,outcome_id, status from utr_outcome';
theXML := xmlgen.getXML(query);
printclobout(theXML);
end;
will produce
<?xml version = '1.0'?>
<ROWSET>
<ROW num="1">
<RUN_ID>1</RUN_ID>
<TC_RUN_ID>1</TC_RUN_ID>
<OUTCOME_ID>-1</OUTCOME_ID>
<STATUS>FAILURE</STATUS>
</ROW>
<ROW num="2">
<RUN_ID>1</RUN_ID>
<TC_RUN_ID>2</TC_RUN_ID>
<OUTCOME_ID>-2</OUTCOME_ID>
<STATUS>FAILURE</STATUS>
</ROW>
... etc.
If your query is more complicated, you can use inline cursors (performance problems if query run on client).
I recommend Steve Meunchs book, 'Building Oracle XML Applications'. Chapter 10 which covers 'automatic XML generation with DBXML' looks suitable.

Similar Messages

  • How to add different versions of layout in XML Publisher Report?

    How to add two versions of layout(RTF) for different languages in xml publisher report template so that user can see the report in two languages? Is that possible?
    If so then what is the procedure to do that? Can anyone help in this regard?

    Soma,
    Refer to [Oracle XML Publisher User Guide|http://download-uk.oracle.com/docs/cd/B25516_14/current/acrobat/115xdoug.zip] manual, Page 5-8 Adding Localized Templates for Additional Languages.
    Regards,
    Hussein

  • How to add a version by default depending on previous version found in db of a record?

    Hello,
    How to add a version by default depending on previous version found in db of a record?
    E.g                        ID 0001  Version : 1
            when inserting id 0001 version 2.
    I want the version to be added automatically on insert , depending on id input.
    Thanks.

    Hi,
    I think using a trigger is better choice.
    from application, you should manage concurrent processes.
    Regards

  • How to change XML version in outbound XML file generated in XI

    Hi, I am getting following two records in the beginnning of my out bound XML file.
    <?xml version="1.0" encoding="utf-8" ?>
    <ns0:MT_WPUUMS01_Salesdata xmlns:ns0="http://ws-sapretail-pos.com/salesdata">
    Is there any control in XI to modify these two lines, in outbound files.
    Also, for inbound files, is there any way to process messages successfully, even if XML files from other systesm comes in different formats (xml version tag and nso tag lines)

    <?xml version="1.0" encoding="utf-8" ?>
    <ns0:MT_WPUUMS01_Salesdata xmlns:ns0="http://ws-sapretail-pos.com/salesdata">
    these two lines will be added when you create the  Message type name
    MT_WPUUMS01_Salesdata  is the message type name
    http://ws-sapretail-pos.com/salesdata"> is the name of your namespace......
    so if you want to chage these two lines in each XML build your MT and namespace accordingly.......
    even when you are importing the XML from o ther systems, you dnt have to worry about these tages as you import them in external definitation and select them only in message interface........should not be a problem if you import the XML from other systems
    whole conecpt is when you add these two lines it will convert the XSD to XML so when you have the XML form other system you only need to crer ate the WSDL out of it...
    let me know if i am not clear or if i understood your question wrong....

  • How to add XML declaration to document using JDOM?

    Hi, there:
    I am trying to create a document. I want to add the following xml declaration to
    the document:
    <?xml version="1.0"?>
    JDOM Document class can add elements and attributes or doctype, does it have ability to add xml declaration to the very start of a document?
    regards,

    that line should be added automatically to the document when you serilize your DOM.

  • How to add XML Header tag to XML output from XI?

    Hi ,
    My requirement is I need to genarate the XML according to client requirements.
    I am able to genareate the XML with  <?xml version="1.0" encoding="UTF-8" ?>  as Header but client requiremetn is like this
    <?xml version="1.0" encoding="UTF-8" ?>
    <?Label MEXICO|PROFILE|2033169|SUCCESS?>
    and hear MEXICO and 2033169 will change dynamically for every xml genaration. How it make as dynamical and how can I achive this.?
    Plz guid me...
    Thanks
    Krishna

    You can refer to the code provided in this thread XML Tag Issue: Need extra Line with Xml RooTag and Convert the IDOC XML file into single string? . Java mapping would do these steps -
    a) Convert the incoming xml into string.
    b) Modify it with some string function as per requirement.
    c) Convert the string back to xml.
    For more understanding about Java mapping, go through links provided in the thread java mapping .
    Regards,
    Sunil Chandra

  • How to add xml attributes

    I have a new requirement, where I need to write the query dynamically.
    Actually I have a table where there is a column which contains name of the tables which are modified.
    So I need to select from those tables only.
    It will be like
    FOR j IN (SELECT table_name FROM T_SYNC_PNO2_PEGA WHERE case_id=i.case_id)
    LOOP
    loops through tables for a case.
    getting the query dynamically for a specific table for a specific case
    v_sql:='select * from '||j.table_name||' where case_id='||i.case_id;
    Here I need to get the output of the above query in xml format. There will have to be xmlattributes.
    End loop;
    Please tell me how will I do it.
    The output will be like:
    <?xml version="1.0"?>
    <ROWSET>
    <Case repeating index="1">
    <CASE_ID>970200</CASE_ID>
    <STATUS>CLO
    SED</STATUS>
    <RESOLUTION>Charge Off Booked</RESOLUTION>
    </Case>
    <Case repeating index="2">
    <CA
    SE_ID>970670</CASE_ID>
    <STATUS>CLOSED</STATUS>
    <RESOLUTION>Immediate Denial<
    /RESOLUTION>
    </Case>
    <Case repeating index="3">
    <CASE_ID>980030</CASE_ID>
    <STATUS>CLOSED</STAT
    US>
    <RESOLUTION>Total Avoidance</RESOLUTION>
    </Case>
    </ROWSET>

    I have a new requirement, where I need to write the query dynamically.
    Actually I have a table where there is a column which contains name of the tables which are modified.
    So I need to select from those tables only.
    It will be like
    FOR j IN (SELECT table_name FROM T_SYNC_PNO2_PEGA WHERE case_id=i.case_id)
    LOOP
    loops through tables for a case.
    getting the query dynamically for a specific table for a specific case
    v_sql:='select * from '||j.table_name||' where case_id='||i.case_id;
    Here I need to get the output of the above query in xml format. There will have to be xmlattributes.
    End loop;
    Please tell me how will I do it.
    The output will be like:
    <?xml version="1.0"?>
    <ROWSET>
    <Case repeating index="1">
    <CASE_ID>970200</CASE_ID>
    <STATUS>CLO
    SED</STATUS>
    <RESOLUTION>Charge Off Booked</RESOLUTION>
    </Case>
    <Case repeating index="2">
    <CA
    SE_ID>970670</CASE_ID>
    <STATUS>CLOSED</STATUS>
    <RESOLUTION>Immediate Denial<
    /RESOLUTION>
    </Case>
    <Case repeating index="3">
    <CASE_ID>980030</CASE_ID>
    <STATUS>CLOSED</STAT
    US>
    <RESOLUTION>Total Avoidance</RESOLUTION>
    </Case>
    </ROWSET>

  • How to add production Version  field in COOIS to selection options?

    Dear Experts,
    Need your suggestion for below issue raised by client.
    1) As per client, he was running COOIS with the selection option of a production version. But currently he is  not able to see this selection while executing a COOIS t-code.-----> Kindly guide me on its possibilities & necesary checks.
    2) If I want to correct it & want to add Production Version field in COOIS report what steps I should take?
    Need all your valuable guidence to resolve above issue.
    Thanks & Regards,
    Mehul

    Hello Vivek,
    Really thanks for your mail. Please see below comments-
    1) I checked the transaction COOIS & also told user to select Production Version after executing the report by giving Plant code & dates. But user asking for this field before execution.
    As per your suggestion I checked in Header level of first screen but its not showing me also.
    2)  I am using ECC6.0 version
    3) One finding from my side- This is I am checking only selecting Production Orders. But when I am selecting only Planned order then Production version can be seen in first screen under Repetitive Mfg. section.
    so kindly tell me why this not showing when Production order selected?
    Thanks in Advance for your help.
    Regards,
    Mehul

  • How to add xml data to an xml scheme

    Hi all,
    I am having a problem trying to add content to an XML schema file - I have a schema (xsd file) and i want to use it in order to create and validate new/other xml's.
    The issue is that i want to place some data in the original XML schema file that will be inserted into the new xml's i create based on the schema.
    I am using java APIs to create the new xml's based on the original schema. I tried at first using default values in order to create the initial data, but I have a problem doing this for complex types.
    Has anyone encountered a similar problem?
    Thanks
    shahar

    Hello Ashley,
    you are already close to the solution. In BADI QISR1 you simply fill the
    table SPECIAL_DATA e.g.like
      fieldindex = 1
      fieldname = 'FIELD1'
      fieldvalue = 'Value1'
      fieldindex = <n>
      fieldname = 'FIELD1'
      fieldvalue = 'VALUE<n>'
    Then on the Adobe form layout (Adobe Designer), you have to use the table control XFO from the standard library. Here you have to bind then the corresponding column to FIELD1.
    Best regards,
    Simon

  • How to add XML attribute to an Element using BPEL assign

    I have a request xml to a bpel process that does not contain a attribute.
    After some process I need to create this missing attribute and set a value.
    I tried using the XML fragment in the Assign Activity. But how can I create a attribute?
    This XML node to which I am trying to create an attribute is a very huge node with lot of dynamic typing(xsi:type). I can just re-create the complete xml with required nodes.
    Does any one know how I can create a xml attribute using the BPEL assign? I do not want to use the Java code in my process.
    Thanks.

    I'm bit confused about what exact problem you are facing with attributes.
    You can check accessing XML attributes in BPEL Assign @ http://download.oracle.com/docs/cd/E12483_01/integrate.1013/b28981/manipdoc.htm#BABIHDHI from the page http://download.oracle.com/docs/cd/E12483_01/integrate.1013/b28981/manipdoc.htm.
    I suppose your source input has no attributes and destination has to be an xml with attribute of type xsi:type. You can use the assign activity as mentioned in above document to assign your type structure to type attribute.

  • How to add xml cooments

    I have one xml file i created a swing application to modify that xml file.
    Know i want to add comments to that xml by using swing application.
    I don't want to change xml directly.
    And one more thing is iam representing the tags in xml as a jtree i want to set tool tip text for those tree
    nodes .

    that line should be added automatically to the document when you serilize your DOM.

  • How to add .xml, .js and .css files to a xml viewer?

    Hi,
    I have a xml viewer in a web part to display a moving txt message. 
    I created a doc. library called XmlWebParts and in it 3 files with the same name. I am referring the xml file in the doc library with no issues. 
     WarningMessage.xml
    <script type="text/javascript" src="http://icare/sites/IT/tst/XmlWebParts/WarningMessage/WarningMessage.js"></script>
    <div class="marquee">jQuery marquee is the best marquee plugin in the world</div>
    <br/>
    <a class='p' href='#'>Pause</a> | <a class='r' href='#'>Resume</a>
    <link rel="stylesheet" type="text/css" href="http://icare/sites/IT/tst/XmlWebParts/WarningMessage/WarningMessage.css"/>
    WarningMessage.js
    var $mq = $('.marquee').marquee();
    //Pause
    $('.p').click(function(){
      $mq.marquee('pause');
    //Resume
    $('.r').click(function(){
      $mq.marquee('resume');
    and 
    WarningMessage.css
    .marquee {
      width: 300px;
      border: 1px solid #ccc;
      background: #ccc;
    The issue I am having is that the txt display with the formatting but is not moving, is just display the txt.
    I followed this: http://social.technet.microsoft.com/wiki/contents/articles/20764.sharepoint-2013-build-a-webpart-using-html-javascript-and-the-xml-viewer-web-part.aspx
    What I am doing wrong?

    Is not working for me.
    I have the
    WarningMessage.xml
    <script type="text/javascript" src="http://icare/sites/IT/tst/XmlWebParts/WarningMessage/WarningMessage.js"></script>
    WarningMessage.js
    <script type="text/javascript">
    <
    //set the marquee parameters
    function init() { rtl_marquee.start(); }
    var rtl_marquee_Text = 'JavaScript scrolling text';
    var rtl_marquee_Direction = 'left';
    var rtl_marquee_Contents='<span style="font-family:Comic Sans MS;font-size:12pt;white-space:nowrap;">' + rtl_marquee_Text + '</span>';
    rtl_marquee = new xbMarquee('rtl_marquee', '19px', '90%', 6, 100, rtl_marquee_Direction, 'scroll', rtl_marquee_Contents);
    window.setTimeout( init, 200);
    </script>
    xbMarquee.js
    document.writeln('<style type="text/css">');
    document.writeln(' div.marqueecenter1 { text-align: center; }');
    document.writeln(' div.marqueecenter2 { margin- margin-right: auto; }');
    document.writeln(' div.marqueeleft1 { text-align: left; }');
    document.writeln(' div.marqueeleft2 { margin- margin-right: auto; }');
    document.writeln(' div.marqueeright1 { text-align: right; }');
    document.writeln(' div.marqueeright2 { margin- margin-right: 0; }');
    document.writeln('</style>');
    function xbMarquee(id, height, width, scrollAmount, scrollDelay, direction, behavior, html)
      this.id            = id;
      this.scrollAmount  = scrollAmount ? scrollAmount : 6;
      this.scrollDelay   = scrollDelay ? scrollDelay : 85;
      this.direction     = direction ? direction.toLowerCase() : 'left';  
      this.behavior      = behavior ? behavior.toLowerCase() : 'scroll';  
    //  this.name          = 'xbMarquee_' + (++xbMarquee._name);
      this.name          = id;
      this.runId         = null;
      this.html          = html;
      this.isHorizontal = ('up,down'.indexOf(this.direction) == -1);
      if (typeof(height) == 'number')
        this.height = height;
        this.heightUnit = 'px';
      else if (typeof(height) == 'string')
        this.height = parseInt('0' + height, 10);
        this.heightUnit = height.toLowerCase().replace(/^[0-9]+/, '');
      else
        this.height = 100;
        this.heightUnit = 'px';
      if (typeof(width) == 'number')
        this.width = width;
        this.widthUnit = 'px';
      else if (typeof(width) == 'string')
        this.width = parseInt('0' + width, 10);
        this.widthUnit = width.toLowerCase().replace(/^[0-9]+/, '');
      else
        this.width = 100;
        this.widthUnit = 'px';
      // xbMarquee UI events
      this.onmouseover   = null;
      this.onmouseout    = null;
      this.onclick       = null;
      // xbMarquee state events
      this.onstart       = null;
      this.onbounce      = null;
      var markup = '';
      if (document.layers)
        markup = '<ilayer id="' + this.id + 'container" name="' + this.id + 'container" ' +
                 'height="' + height + '" ' +
                 'width="' + width + '"  ' +
                 'clip="' + width + ', ' + height + '" ' +
                 '>' + 
                 '<\/ilayer>';            
      else if (document.body && typeof(document.body.innerHTML) != 'string')
        markup = '<div id="' + this.id + 'container" name="' + this.id + 'container" ' +
                 'style=" ' + 
                 'height: ' + this.height + this.heightUnit + '; ' +
                 'width: ' + this.width + this.widthUnit + '; ' +
                 'clip: rect(0px, ' + this.width + this.widthUnit + ', ' + this.height + this.heightUnit + ', 0px); ' +
                 '">' + 
                 '<div id="' + this.id + '" style="' + 
                 (this.isHorizontal ? 'width:0px;' : '') + // if we scroll horizontally, make the text container as small as possible
                 '">' +
                 (this.isHorizontal ? '<nobr>' : '') +
                 this.html +
                 (this.isHorizontal ? '<\/nobr>' : '') +
                 '<\/div>' +
                 '<\/div>';             
      else 
        markup = '<div id="' + this.id + 'container" name="' + 
                 this.id + 'container" ' +
                 'style=" overflowY: visible; ' + 
                 'height: ' + this.height + this.heightUnit + '; ' +
                 'width: ' + this.width + this.widthUnit + '; ' +
                 'clip: rect(0px, ' + this.width + this.widthUnit + ', ' + this.height + this.heightUnit + ', 0px); ' +
                '">' + 
                 '<\/div>';             
      document.write(markup);  
      window[this.name] = this;
    // Class Properties/Methods
    xbMarquee._name = -1;
    xbMarquee._getInnerSize = function(elm, propName)
      var val = 0;
      if (document.layers)
        // navigator 4
        val = elm.document[propName];    
      else if (elm.style && typeof(elm.style[propName]) == 'number')
        // opera
        // bug in Opera 6 width/offsetWidth. Use clientWidth
        if (propName == 'width' && typeof(elm.clientWidth) == 'number')
          val = elm.clientWidth;
        else
          val =  elm.style[propName];
      else
        //mozilla and IE
        switch (propName)
        case 'height':
           if (typeof(elm.offsetHeight) == 'number')
             val =  elm.offsetHeight;
           break;
        case 'width':
           if (typeof(elm.offsetWidth) == 'number')
             val = elm.offsetWidth;                  
           break;
      return val;
    xbMarquee.getElm = function(id)
      var elm = null;
      if (document.getElementById)
        elm = document.getElementById(id);
      else
        elm = document.all[id];
      return elm;
    xbMarquee.dispatchUIEvent = function (event, marqueeName, eventName)
      var marquee = window[marqueeName];
      var eventAttr = 'on' + eventName;
      if (!marquee)
        return false;
      if (!event && window.event)
        event = window.event;
      switch (eventName)
      case 'mouseover':
      case 'mouseout':
      case 'click':
        if (marquee[eventAttr])
          return marquee['on' + eventName](event);
      return false;
    xbMarquee.createDispatchEventAttr = function (marqueeName, eventName)
      return 'on' + eventName + '="xbMarquee.dispatchUIEvent(event, \'' + marqueeName + '\', \'' + eventName + '\')" ';
    // Instance properties/methods
    xbMarquee.prototype.start = function ()
      var markup = '';
      this.stop();
      if (!this.dirsign)
        if (!document.layers)
          this.containerDiv = xbMarquee.getElm(this.id + 'container')
          if (typeof(this.containerDiv.innerHTML) != 'string')
            return;
          // adjust the container size before inner div is filled in
          // so IE will not hork the size of percentage units 
          var parentNode    = null;
          if (this.containerDiv.parentNode)
            parentNode = this.containerDiv.parentNode;
          else if (this.containerDiv.parentElement)
            parentNode = this.containerDiv.parentElement;
          if (parentNode && 
              typeof(parentNode.offsetHeight) == 'number' && 
              typeof(parentNode.offsetWidth) == 'number')
            if (this.heightUnit == '%')
              this.containerDiv.style.height = 
              parentNode.offsetHeight * (this.height/100) + 'px';
            if (this.widthUnit == '%')
              this.containerDiv.style.width = 
              parentNode.offsetWidth * (this.width/100) + 'px';
          markup += '<div id="' + this.id + '" name="' + this.id + '" ' +
            'style=" ' +
            //(this.isHorizontal ? 'width:0px;' : '') + // if we scroll horizontally, make the text container as small as possible
            '" ' +
            xbMarquee.createDispatchEventAttr(this.name, 'mouseover') +
            xbMarquee.createDispatchEventAttr(this.name, 'mouseout') +
            xbMarquee.createDispatchEventAttr(this.name, 'click') +
            '>' +
            (this.isHorizontal ? '<nobr>' : '') +
            this.html +
            (this.isHorizontal ? '<\/nobr>' : '') +
            '<\/div>';
          this.containerDiv.innerHTML = markup;
          this.div                    = xbMarquee.getElm(this.id);
          this.styleObj     = this.div.style;      
        else /* if (document.layers) */
          this.containerDiv = document.layers[this.id + 'container'];
          markup = 
            '<layer id="' + this.id + '" name="' + this.id + '" top="0" left="0" ' +
            xbMarquee.createDispatchEventAttr(this.name, 'mouseover') +
            xbMarquee.createDispatchEventAttr(this.name, 'mouseout') +
            xbMarquee.createDispatchEventAttr(this.name, 'click') +
            '>' +
            (this.isHorizontal ? '<nobr>' : '') + 
            this.html +
            (this.isHorizontal ? '<\/nobr>' : '') +
            '<\/layer>';
          this.containerDiv.document.write(markup);
          this.containerDiv.document.close();
          this.div          = this.containerDiv.document.layers[this.id];
          this.styleObj     = this.div;
        if (this.isHorizontal && this.height < xbMarquee._getInnerSize(this.div, 'height') )
          this.height = xbMarquee._getInnerSize(this.div, 'height')
          this.containerDiv.style.height = this.height + this.heightUnit;
          this.containerDiv.style.clip = 'rect(0px, ' + this.width + this.widthUnit + ', ' + this.height + this.heightUnit + ', 0px)';
        // Start must not run until the page load event has fired
        // due to Internet Explorer not setting the height and width of 
        // the dynamically written content until then
        switch (this.direction)
        case 'down':
          this.dirsign = 1;
          this.startAt = -xbMarquee._getInnerSize(this.div, 'height');
          this._setTop(this.startAt);
          if (this.heightUnit == '%')
            this.stopAt = this.height * xbMarquee._getInnerSize(this.containerDiv, 'height') / 100;
          else
            this.stopAt  = this.height;
          break;
        case 'up':
          this.dirsign = -1;
          if (this.heightUnit == '%')
            this.startAt = this.height * xbMarquee._getInnerSize(this.containerDiv, 'height') / 100;
          else     
            this.startAt = this.height;
          this._setTop(this.startAt);
          this.stopAt  = -xbMarquee._getInnerSize(this.div, 'height');      
          break;
        case 'right':
          this.dirsign = 1;
          this.startAt = -xbMarquee._getInnerSize(this.div, 'width');
          this._setLeft(this.startAt);
          if (this.widthUnit == '%')
            this.stopAt = this.width * xbMarquee._getInnerSize(this.containerDiv, 'width') / 100;
          else    
            this.stopAt  = this.width;
          break;
        case 'left':
        default:
          this.dirsign = -1;
    if (this.widthUnit == '%')
    this.startAt = this.width * xbMarquee._getInnerSize(this.containerDiv, 'width') / 100;
    else  
    this.startAt = this.width        
    this._setLeft(this.startAt);
    // this.stopAt  = -xbMarquee._getInnerSize(this.div,'width')*2;
    // this method does not work very well with FireFox.  offsetWidth property used in this function returns the absolute width of the div container
    // instead of the new offsetWidth when innerHTML is added or when the div becomes wider. To overcome this a new span element is added to 
    // the document body to measure the new offsetwidth and then it is removed.
    var temp_span = document.createElement('span');     
    temp_span.id = 'span_' + this.div.id;
    temp_span.innerHTML = this.html;
    document.body.appendChild(temp_span);                
    this.stopAt = - temp_span.firstChild.firstChild.offsetWidth;
    document.body.removeChild(temp_span);            
          break;
        this.newPosition          = this.startAt;
        this.styleObj.visibility = 'visible'; 
      this.newPosition += this.dirsign * this.scrollAmount;
      if ( (this.dirsign == 1  && this.newPosition > this.stopAt) ||
           (this.dirsign == -1 && this.newPosition < this.stopAt) )
        if (this.behavior == 'alternate')
          if (this.onbounce)
            // fire bounce when alternate changes directions
            this.onbounce();
          this.dirsign = -this.dirsign;
          var temp     = this.stopAt;
          this.stopAt  = this.startAt;
          this.startAt = temp;
        else
          // fire start when position is a start
          if (this.onstart)
            this.onstart();
          this.newPosition = this.startAt;
      switch(this.direction)
        case 'up': 
        case 'down':
          this._setTop(this.newPosition);
          break;
        case 'left': 
        case 'right':
        default:
          this._setLeft(this.newPosition);
          break;
      this.runId = setTimeout(this.name + '.start()', this.scrollDelay);
    xbMarquee.prototype.stop = function ()
      if (this.runId)
        clearTimeout(this.runId);
      this.runId = null;
    xbMarquee.prototype.setInnerHTML = function (html)
      if (typeof(this.div.innerHTML) != 'string')
        return;
      var running = false;
      if (this.runId)
        running = true;
        this.stop();
      this.html = html;
      this.dirsign = null;
      if (running)
        this.start();
    // fixes standards mode in gecko
    // since units are required
    if (document.layers)
      xbMarquee.prototype._setLeft = function (left)
        this.styleObj.left = left;    
      xbMarquee.prototype._setTop = function (top)
        this.styleObj.top = top;    
    else
      xbMarquee.prototype._setLeft = function (left)
        this.styleObj.left = left + 'px';    
      xbMarquee.prototype._setTop = function (top)
        this.styleObj.top = top + 'px';    
    Still not working. Nothing will display on my web part xml viewer.

  • How to add new Java version to Java Preferences?

    Greetings,
    I know Java 7 is not officially supported, but I know it works.
    I built 1.70.jre and put it in /Library/Java/JavaVirtualMachines, but I do not know how to add to  Java Preferences.
    Does anyone know where the list of Java versions is stored and how to add a version to it?
    Thanks

    Fixing the permissions did not fix it.
    I think there  to be a record somewhere of what version are where. That is probably set if you use am installer which I do not have. I only have the file I copied there.
    I found out that typing this in Terminal...
    export JAVA_HOME=/Library/Java/1.7.jre/Contents/Home
    ...temporarily sets that version to the one being used, but it is only for that Terminal session, and it still does not show in Java Preferences.
    I need to know how to get it into Java Preferences. It might be some command I don't know.

  • Delete xml version in xml file

    Hello,
    I have a strange thing to do. I need to delete xml version tag (<?xml version="1.0" encoding="utf-8" ?>) from en xml file. I use a receiver file adapter and I want to know how it's possible to delete this tag.
    I need to do that as receiving application collects xml messages and adds xml version in collected xml file.
    Thanks in advance,
    Cédric

    hi Udo,
    >>>and clever...
    so it should be you who proposed it:)
    BTW
    I'm not sure if with XSLT you won't have to
    do it in the commnication channel (and not in the interface mapping) - (the xslt mapping)
    but I cannot test it right now
    Regards,
    michal

  • How to generate xml-file for SAP Fiori (UI add-on) with Solution Manager 7.0.1?

    Hello Guru,
    could you please help with my issue with Fiori Installation.
    We want to install SAP Fiori Front-End (GW+UI) on the Sandbox system with SAP Netweaver 7.3.1. (SP14)
    Gateway component (SAP GW CORE 200 SP10) was installed without any problems.
    But I need to install UI-add-on (NW UI Extensions v1.0) and when I try to install it via SAINT, transaction said me that I need to generate xml-file for it (as in General notes for UI add-on mentioned).
    But I have Solution Manager 7.0.1 and in MOPZ for this version I do not have option  "install Add-on" as it written in Guide for ui add-on installation.
    Could you please help me with advice how to generate xml-file for UI add-on installation on SolMan v.7.0.1?
    If where is no way, but only to upgrade Solution Manager, maybe somebody could give me xml-file for your system (for NW 731) and I will change it to my needs, I will be very grateful!
    Thanks in advance for any help!!!
    Bets regards,
    Natalia.

    Hello Guru,
    could you please help with my issue with Fiori Installation.
    We want to install SAP Fiori Front-End (GW+UI) on the Sandbox system with SAP Netweaver 7.3.1. (SP14)
    Gateway component (SAP GW CORE 200 SP10) was installed without any problems.
    But I need to install UI-add-on (NW UI Extensions v1.0) and when I try to install it via SAINT, transaction said me that I need to generate xml-file for it (as in General notes for UI add-on mentioned).
    But I have Solution Manager 7.0.1 and in MOPZ for this version I do not have option  "install Add-on" as it written in Guide for ui add-on installation.
    Could you please help me with advice how to generate xml-file for UI add-on installation on SolMan v.7.0.1?
    If where is no way, but only to upgrade Solution Manager, maybe somebody could give me xml-file for your system (for NW 731) and I will change it to my needs, I will be very grateful!
    Thanks in advance for any help!!!
    Bets regards,
    Natalia.

Maybe you are looking for

  • My Sound Blaster Live 5.1 Digital won't work with Vista

    First off, I wasn't sure whether to put this in the vista or Sound Blaster form so sorry if this is the wrong place. Anyways. I got a new computer two days ago and just installed my old Sound Blaster li've 5. Digital (model SB0220) card into the new

  • Enqueue/ Dequeue Table record

    Dear Experts, I am updating a record in my z-table which is appended in LFA1 through a Z-program. Prior to my update command i want to Enqueue that particular record and once it is updated i want to dequeue it. Can you please suggest the function mod

  • Spotlight not finding items on connected servers

    when I connect to a server with various files within folders spotlight will not produce nay find results searching the server

  • No pictures on any website are showing up how can I fix this?

    I have tried going to several different website but it is all the same. I can not see any pictures anywhere! Videos and music seem to work fine on the places I've tried. This seems to have started around the time my Itunes started to not open (if tha

  • Solaris 8 IA SMP Motherboard compatibility

    Hi, I've just got the solaris binaries from Sun. I am looking forward to building a dual-CPU machine for Solaris and Oracle. Most likely it's gonna be DUAL PIII (FCPGA or slot1). I have checked the HCL for popular and relatively inexpensive dual-cpu