How to add processing instruction to my XML view

Hi,
How do I add the processing instruction like <?xml version="1.0" encoding="iso-8859-1"?>.
in my XML view.

The only way to do at the moment is as follows... And it's not very pretty. The SQL/XML standard is still finalizing the correct way of doing this...
set echo on
connect &1/&2@&3
create or replace view EMPLOYEES_WORKBOOK_XML of xmltype
xmlschema "excel.xsd" element "Workbook"
with object id
'EMPLOYEES_WORKBOOK_XML'
as
select
xmltype(
'<?xml version="1.0"?>' ||
xmlElement
"Workbook",
xmlAttributes
'urn:schemas-microsoft-com:office:spreadsheet' as "xmlns",
'urn:schemas-microsoft-com:office:office' as "xmlns:o",
'urn:schemas-microsoft-com:office:excel' as "xmlns:x",
'urn:schemas-microsoft-com:office:spreadsheet' as "xmlns:ss",
'http://www.w3.org/TR/REC-html40' as "xmlns:html",
'http://www.w3.org/2001/XMLSchema-instance' as "xmlns:xsi",
'excel.xsd' as "xsi:noNamespaceSchemaLocation"
xmlElement
"DocumentProperties",
xmlAttributes('urn:schemas-microsoft-com:office:office' as "xmlns"),
xmlForest
USER as "Author",
USER as "LastAuthor",
'2002-10-11T15:47:35Z' as "Created",
'Oracle Corporation' as "Company",
'10.350' as "Version"
xmlElement
"OfficeDocumentSettings",
xmlAttributes('urn:schemas-microsoft-com:office:office' as "xmlns"),
xmlElement("DownloadComponents"),
xmlElement
"LocationOfComponents",
xmlAttributes('file://' as "HRef")
xmlElement
"ExcelWorkbook",
xmlAttributes('urn:schemas-microsoft-com:office:excel' as "xmlns"),
xmlForest
'8835' as "WindowHeight",
'14220' as "WindowWidth",
'480' as "WindowTopX",
'60' as "WindowTopY",
'False' as "ProtectStructure",
'False' as "ProtectWindows"
xmlElement
"Styles",
xmlElement
"Style",
xmlAttributes('Default' as "ss:ID",'Normal' as "ss:Name"),
xmlElement("Alignment",xmlAttributes('Bottom' as "ss:Vertical")),
xmlElement("Borders"),
xmlElement("Font"),
xmlElement("Interior"),
xmlElement("NumberFormat"),
xmlElement("Protection")
xmlElement
"Style",
xmlAttributes('s21' as "ss:ID"),
xmlElement("Font",xmlAttributes('Swiss' as "x:Family",'1' as "ss:Bold"))
xmlElement
"Worksheet",
xmlAttributes('EMP' as "ss:Name"),
xmlElement
"Table",
xmlAttributes('11' as "ss:ExpandedColumnCount",'108' as "ss:ExpandedRowCount",'1' as "x:FullColumns",'1' as "x:FullRows"),
xmlElement
"Row",
xmlAttributes('s21' as "ss:StyleID"),
xmlElement("Cell", xmlElement("Data", xmlAttributes('String' as "ss:Type"), 'Employee ID')),
xmlElement("Cell", xmlElement("Data", xmlAttributes('String' as "ss:Type"), 'First Name')),
xmlElement("Cell", xmlElement("Data", xmlAttributes('String' as "ss:Type"), 'Last Name')),
xmlElement("Cell", xmlElement("Data", xmlAttributes('String' as "ss:Type"), 'Email Address' )),
xmlElement("Cell", xmlElement("Data", xmlAttributes('String' as "ss:Type"), 'Phone Number' )),
xmlElement("Cell", xmlElement("Data", xmlAttributes('String' as "ss:Type"), 'Hire Date')),
xmlElement("Cell", xmlElement("Data", xmlAttributes('String' as "ss:Type"), 'Job Title')),
xmlElement("Cell", xmlElement("Data", xmlAttributes('String' as "ss:Type"), 'Salary')),
xmlElement("Cell", xmlElement("Data", xmlAttributes('String' as "ss:Type"), 'Commission Rate')),
xmlElement("Cell", xmlElement("Data", xmlAttributes('String' as "ss:Type"), 'Manager')),
xmlElement("Cell", xmlElement("Data", xmlAttributes('String' as "ss:Type"), 'Department'))
xmlagg
xmlElement
"Row",
xmlAttributes('Default' as "ss:StyleID"),
xmlElement("Cell", xmlElement("Data", xmlAttributes('Number' as "ss:Type"), e.EMPLOYEE_ID)),
xmlElement("Cell", xmlElement("Data", xmlAttributes('String' as "ss:Type"), e.FIRST_NAME )),
xmlElement("Cell", xmlElement("Data", xmlAttributes('String' as "ss:Type"), e.LAST_NAME )),
xmlElement("Cell", xmlElement("Data", xmlAttributes('String' as "ss:Type"), e.EMAIL )),
xmlElement("Cell", xmlElement("Data", xmlAttributes('String' as "ss:Type"), e.PHONE_NUMBER )),
xmlElement("Cell", xmlElement("Data", xmlAttributes('DateTime' as "ss:Type"), to_char(to_char(e.HIRE_DATE,'YYYY-MM-DD"T00:00:00.000"')))),
xmlElement("Cell", xmlElement("Data", xmlAttributes('String' as "ss:Type"), JOB_TITLE)),
xmlElement("Cell", xmlElement("Data", xmlAttributes('Number' as "ss:Type"), e.SALARY )),
xmlElement("Cell", xmlElement("Data", xmlAttributes('Number' as "ss:Type"), e.COMMISSION_PCT)),
xmlElement("Cell", xmlElement("Data", xmlAttributes('String' as "ss:Type"), m.FIRST_NAME || ' ' || m.LAST_NAME )),
xmlElement("Cell", xmlElement("Data", xmlAttributes('String' as "ss:Type"), DEPARTMENT_NAME )) )
xmlElement
"WorksheetOptions",
xmlAttributes('urn:schemas-microsoft-com:office:excel' as "xmlns"),
xmlElement
"Print",
xmlElement("ValidPrintInfo"),
xmlElement("HorizontalResolution",96),
xmlElement("VerticalResolution",96),
xmlElement("NumberOfCopies",0)
xmlElement("Selected"),
xmlElement
"Panes",
xmlElement
"Pane",
xmlElement("Number",3),
xmlElement("ActiveRow",6),
xmlElement("ActiveCol",1)
xmlElement("ProectedObjects",'False'),
xmlElement("ProectedSecenarios",'False')
).getClobVal())
from HR.EMPLOYEES e, HR.JOBS j, HR.DEPARTMENTS d, HR.EMPLOYEES m
where e.JOB_ID = j.JOB_ID
and e.DEPARTMENT_ID = d.DEPARTMENT_ID
and e.MANAGER_ID = m.EMPLOYEE_ID
pause
create or replace trigger IGNORE_IO_OPERATIONS
instead of INSERT or UPDATE or DELETE on EMPLOYEES_WORKBOOK_XML
begin
null;
end;
show errors
pause
quit

Similar Messages

  • How to add styles to image in XML view ?

    Is it possible to add styles to Images in XML view ?
    <Image alt="alternate text " src = " " />
    I tried adding sytle= "align : right " but its not working. I just want to align this element in the view to the right.

    Hi Micheal,
    Pleas see the below code.
    View:
    <core:View xmlns:core="sap.ui.core" xmlns:mvc="sap.ui.core.mvc" xmlns="sap.m"
      controllerName="testing.imageXml" xmlns:html="http://www.w3.org/1999/xhtml">
      <Page title="Image">
      <content>
      <Image id="img1" alt="alttextimage" src="images/img1.jpg" />
      </content>
      </Page>
    </core:View>
    Controller:
    onBeforeRendering: function() {
      this.getView().byId("img1").addStyleClass("myimage");
    Index.html :
    <!DOCTYPE HTML>
    <html>
      <head>
      <meta http-equiv="X-UA-Compatible" content="IE=edge">
      <meta http-equiv='Content-Type' content='text/html;charset=UTF-8'/>
      <script src="resources/sap-ui-core.js"
      id="sap-ui-bootstrap"
      data-sap-ui-libs="sap.m,sap.ui.commons"
      data-sap-ui-theme="sap_bluecrystal">
      </script>
      <script>
      sap.ui.localResources("testing");
      var app = new sap.m.App({initialPage:"idhome1"});
      var page = sap.ui.view({id:"idhome1", viewName:"testing.imageXml", type:sap.ui.core.mvc.ViewType.XML});
      app.addPage(page);
      app.placeAt("content");
      </script>
      <style>
      .myimage{float:right !important; width:300px; height:200px;}
      </style>
      </head>
      <body class="sapUiBody" role="application">
      <div id="content"></div>
      </body>
    </html>
    Output :
    Regards,
    KK

  • How to add SharePoint 2013 Promoted link list view web part in page programatically with Tiles view using CSOM.

    How to add SharePoint 2013 Promoted link list view web part in page programatically with Tiles view using CSOM. I found that it can be
    done by using XsltListViewWebPart class but how can I use this one by using shraepoint client api.
    shiv

    Nice, can you point me to the solution please ?
    I'm  trying to do this but I get an error : 
    Web Part Error: Cannot complete this action. Please try again. Correlation ID: blablabla
    StackTrace:    at Microsoft.SharePoint.SPViewCollection.EnsureViewSchema(Boolean fullBlownSchema, Boolean bNeedInitallViews)     at Microsoft.SharePoint.SPList.GetView(Guid viewGuid)   
    All help really appreciated.

  • How to add a scroll bar within a view window ?I want to display x and y axis outside the scoll window and keep those axis static and move the graph within scroll area

    how to add a scroll bar within a view window ?I want to display x and y axis outside the scoll window and keep those axis static and move the graph within scroll area
    ananya

    Hey Ananya,
    I believe what you want to do is possible, but it will not be
    easy.  If you want to add a scroll bar that will scroll the graph
    back and forth but keep the axis set, you would want to add a
    horizontal or vertical scrollbar.  Then you would create an event
    handler for the scroll event.  You would have to manually plot
    different data within this scroll event.  Unfortunately, there is
    not really a built in way to do this with the Measurement Studio plot
    control.
    Thanks,
    Pat P.
    Software Engineer
    National Instruments

  • How to add a digital signature in xml publisher report

    The problem is: There is a existing pick slip report.This is a xml publisher report and the data source is RDF. We have to add digital signature there. Now this signature is stored in a table with type Long Raw and format BMP. XML Publisher do not support Long Raw and BMP format. It supports BLOB and jpg format.
    Could you please guide how to add this signature in the existing RDF with datatype as BLOB and format as jpg.
    Please provide the steps with example.

    Hi,
    Have a look at this thread.
    Implementing electronic signatures on an existing AP check run
    Re: Implementing electronic signatures on an existing AP check run
    Regards,
    Hussein

  • How to add extra blank space in xml

    I open the xml file in notepad I get this
    <XXON_EXT_BANK_ACCOUNT_NAME>創名聯合會計師事務所                                        </XXON_EXT_BANK_ACCOUNT_NAME>
    But when I open the xml file in html format the blank space is gone.
    How can I add extra blank space in xml?

    Hi
    Why do you need the extra space for?
    This difference in display that you see between your browser and notepad/notepad++
    will not affect your generated report.
    Bogdan 

  • How to send process instructions to new pcs system

    Hi, we have PCS system known as performer. we need to send the process order header data to this pcs system. i created all z characteristics and z process instruction type and assigned to CRD. Now i could not understand how to send this info to perfomer. do i need to send this to xi and from xi i need to send to performer? is there any way to send directly to performer? please guide me so that i follow the same.

    Close inactive apps
    1. Double tap the home button to bring up the multi-tasking view
    2. Swipe the app's windows upwards to close
    3. The app will fly off the screen
    http://support.apple.com/kb/ht5137

  • How to add a textline to an xml structure using xslt

    Hi,
    I am having a requirement where i need to add a textline to an xml.
    scenario: IDOC-File  and output format is an xml.
    Output should be like this:
    &&##AOC0MB000#AD15543390#BOIFCO#Z
    <?xml version="1.0" encoding="ISO-8859-1"?>
    <messages>
         <batch>0800062844</batch>
         <message>
              <type>VPR</type>
              <action>A</action>
              </body>
         </message>
    </messages>
    The line that has been added to xml is the data that will be coming from IDOC. How can we append the textline to the xml using xslt.Will document() in xslt works for doing this?

    The required format in ur scenario is not an xml format, so u should not save the file in xml format. U may write an adapter module at receiver to achieve this.
    How can we append the textline to the xml using xslt
    This is not possible as the output of xsl transformation is an xml file.
    Regards,
    Prateek

  • How to add shipping instructions while creating SO

    Hi All,
    I'm using the BAPI_SALESORDER_CREATEFROMDAT1 to create Sales Order.
    I want to add shipping instructions while creating each orders.
    How do I pass this information to the backend with this BAPI?
    Thanks
    Thruna

    Somebody knows like I can indicate to him to a button that I have in a form, that accedes to the image in the route where will settle addon? I have this, but it does not work to me
    oButton.Image = IO.Directory.GetParent(Application.StartupPath).ToString & "\CFL.BMP"

  • How to get processing instruction tag ?

    pls,can anyone tell me,how to processing instruction tag indesign sdk?
    Thanks,
    screen410099

    with t
    as
    select 'EXECUTION APPROVAL - <b><VALIDATION TYPE></b> execution <b><VAL. EXE. NO.></b> f or <b><ENTITY NAME> / <ENTITY NO.></b> has been Sent to you for Approval' str
      from dual
    select regexp_substr(str,'<[^>]*>',1,level)
      from t
    where regexp_substr(str,'<[^>]*>',1,level) is not null
       and regexp_substr(str,'<[^>]*>',1,level) not in ('<b>','</b>')
    connect by level <=length(str)

  • How to print process instruction in process order.

    Hi dudes,
    ,y client is not having Process management interface, but they want to maintain process instruction for phases in recipe and want to take print of process instructions  in process order after release process order.
    Please explain the path for printing process instructions copied into process order.
    if some one assign PIs to phase in recipe, will control recipes be created after release of process order.
    Regards
    Daniel

    The easiest way to do what you want is to actually create the PI sheet and then print it off from the view PI sheet transaction (CO60).  This is then all standard functionality.
    to do this you will need to set the configuration to create the control recipe when the process order is released and send it to a recipe destination.
    Regards
    Laurence

  • How to add  subscreen(mrp area)  to mrp1 view

    Hello SAP GURUS,
      while creating the material with FERT material type, i found that there was no subscreen containing data for mrp area in mrp1 view.How to add this subscreen in mrp1 view.
        I checked all the customization data like maintain screen sequence order,assign material type, industry sector and all to the screen sequence reference.Everything is there,than also couldn't manage.
         So if you know the process than plz share.

    Hi,
    The below link may be useful.
    https://wiki.sdn.sap.com/wiki/display/ABAP/ABAPDevelopmentand+Programming
    (At the end of the Page) In this all the pages of MM01_Screen Exit PArt 1 and Part2 are useful..
    If you click on any one of thm it will lead you to the Attachments where in you can look into all the attachments..
    Regards,
    Siva

  • How to add an index to a materialized view in Data Modeler 3.3

    Hello everyone,
    I'm looking for a how-to to add an index to a materialized view in Data Modeler 3.3.0.747, as I coudn't find a way to do it so far.
    I looked here:
    Relational Model
    Physical Model
    Oracle 11g
    Materialized Views
    "my_mv_name"
    "INDEXES" IS NOT HERE IN THE TREE
    "Tables" does not include it either
    Thank you & Best regards,
    Blama

    Hi David,
    thanks a lot. I did so and it worked, but I found a minor bug while doing so:
    I marked the table as "Implement as Materialized View" and went to File->Export->DDL (for Oracle 11g).
    The generated code (I checked all options in "Drop Selection") includes a row:
    DROP MATERIALIZED VIEW mv_mymatview CASCADE CONSTRAINTS ;
    which produces a syntax error.
    Best regards,
    Blama

  • How to add UI elements dynamically in the views of webdynpro

    Hi Experts,
    Here i have a requirement where 2 text-box get added on a click of "ADD" button in the view during the execution of the Application. so is it possible to add the text-box to the view or not?
    if yes how can it be done.
    Thanks in advance
    Regards
    Lalitkumar.

    Even with these expanded requirements I wouldn't necessarily recommend dynamic UI element creation in WDDOMODIFYVIEW.
    If the UI element requirements are fairly static (2 text boxes for each push of the button), then consider using a Multi-Pane (http://help.sap.com/saphelp_nw70ehp1/helpdata/en/df/da8b412bb5b35fe10000000a1550b0/frameset.htm) or Row Repeater (http://help.sap.com/saphelp_nw70ehp1/helpdata/en/44/93d3792e8c60d6e10000000a114a6b/frameset.htm) UI element. These constructs will both create a series of UI elements based upon the number of context elements in a bound node.  Therefore if you want to generate two textboxes for each push of a button, in the button event handler you simple add another context element to the context node.  You don't need dynamic UI element creation or dynamic data binding.
    If you feel that you must use dynamic UI element creation, then first read up on the WDDOMODIFYVIEW phase model event.
    http://help.sap.com/saphelp_nw70ehp1/helpdata/en/d2/8acd409cc4dd50e10000000a1550b0/frameset.htm
    You then probably want to study these three blogs on the topic:
    /people/thomas.szcs/blog/2005/12/28/dynamic-programming-in-web-dynpro-abap--introduction-and-part-i-understanding-ui-elements
    /people/thomas.szcs/blog/2006/01/03/dynamic-programming-in-web-dynpro-abap--part-ii-handling-viewelements
    /people/thomas.szcs/blog/2006/02/22/dynamic-programming-in-web-dynpro-abap--part-iii-aggregations-and-ddic-binding-of-viewelements

  • How to Add Input Values into a XML in Flex AIR Application

    I need a help, now I am developing a flex windows AIR application, in this I am displaying data using a xml file,
    I have some input fields in my application,if the application user filled the input field and press submit button, the inputs
    Should be stored in that xml. How can I do this using flex, can you  anyone please provide me a sample file with tutorial.
    Thanks in advance
    Vasanth,
    Chennai

    You can use the "+" operator which is both the addition (number) and concatenation (string) operator. JavaScript makes the decision about how this operator will work by the type of the value of being processed. Two numbers JavaScript performs addition, character string and number, number and character string, or 2 character strings then concatenation.
    If you just use the '+' operator and spaces, you will get extra spaces unless you add code to allow for null fields and adjusting the spacing or other punctuation as needed. You may also need to force numeric values to character stings or you might end up with an addition and not concatenation.
    Adobe provided a example of a funciton to properly join 3 fields with full versions of Acrobat:
    function fillin(s1, s2, s3, sep) {
      // Concatenate 3 strings with separators where needed
      // convert passed strings to a string value
      s1 = s1.toString();
      s2 = s2.toString();
      s3 = s3.toString();
      // assign a numeric value for presence of a given string(s)
      var test = 0; // no passed strings
      if (s1 != "") test += 1; // s1 has a value
      if (s2 != "") test += 2; // s2 has a value
      if (s3 != "") test += 4; // s3 has a value
      // return appropriate combination based on passed strings
      if (test == 0) return ""; // no stings passed
      if (test == 1) return s1; // s1 only
      if (test == 2) return s2; // s2 only
      if (test == 3) return s1 + sep + s2; // s1 and s2
      if (test == 4) return s3; // s3 only
      if (test == 5) return s1 + sep + s3; // s1 and s3
      if (test == 6) return s2 + sep + s3; // s2 and s3
      if (test == 7) return s1 + sep + s2 + sep + s3; // s1, s2, and s3

Maybe you are looking for