Make an XML using 2 XMLs

Hi, I want to make an XML using 2 XML outputs, it is about taking few section of each XML and making new XML.
Can we do it using oracle 8.1.7 version and XSLT with PL/SQL.

jus include the line in your xml file.
<DOCTYPE <doctype_name> SYSTEM "dtd_file_name">
It will work.
if u open xml file in explore thne it will not work. so use some other tool to validate u r xml file against u r dtd or schema like XML SPY.
.....yogesh

Similar Messages

  • Ps query results to xml using xml link function registry

    In People tools version 8.46 we need something like where the ps query result output is in the form of XML so that it can be used for external system. The catch I cannot use webservices. It is something like opening peoplesoft queires form excel using hyperlink but in this case we need xml. I looked at David Vandiver's Excel XML libraries which open the data in excel but is there something where the hyperlink output is xml using xml link function registry. I have capatured the data in rowset and now need to create mime type of xml to write the data
    thanks in advance
    vinn

    If I understand correctly, you want to use something like Microsoft Excel's web queries to get data from a PeopleSoft query in XML format. I have never done this before, but if I were to implement this, here is what I would do in PT 8.46:
    1. Create an unstructured message in app designer.
    2. Create a user that only has access to the queries you want to expose to Excel
    3. Write synchronous message handler PeopleCode to call SwitchUser to switch to a specific query user rather than the generic integration broker user and execute a query, returning the results in XML (see [Query.RunToRowsest|http://download.oracle.com/docs/cd/E13292_01/pt849pbr0/eng/psbooks/tpcr/htm/tpcr31.htm#d0e113933] for an example).
    4. Call the message through IB using the HTTP GET URL format as defined in PeopleBooks: [http://download.oracle.com/docs/cd/E13292_01/pt849pbr0/eng/psbooks/tibr/book.htm?File=tibr/htm/tibr33.htm#H4026|http://download.oracle.com/docs/cd/E13292_01/pt849pbr0/eng/psbooks/tibr/book.htm?File=tibr/htm/tibr33.htm#H4026].

  • Forming XMLs using XML beans

    Hi ,
    I am forming XMLs using XMLBeans whose XSDs been provided.
    The tag values are coming from the database which I am querying.
    and then adding the various tags as per the XSD.
    In the End,I am using the ,doc.toString() where doc is the Document object as per the XSD.
    and then writing it to a file.
    I want to know ,what limitations can this method have or what might be a better way.
    Will there be a restriction on the size of the xml being formed??
    Thanks in Advance

    I modified the code :
    [code]
    Select P.PAT_MRN,
               XMLELEMENT("Patient",
                          (XMLELEMENT("pat_mrn", P.pat_mrn)),
                          (XMLForest(cm_results_o_t(CAST(MULTISET
                                                                    (SELECT O.COMP_NAME AS "ID"
                                                                       FROM oper O
                                                                      WHERE O.ENCOUNTER_ID =
                                                                            E.ENCOUNTER_ID) AS
                                                                    component_list_t)) AS
                                               "Results"))) AS Orderxml
         FROM PATIENT P
         JOIN ENCOUNT E
           ON P.PAT_MRN = E.PAT_MRN
          AND P.PAT_MRN = '63280'
          AND E.ENCOUNTER_ID = 42
    [/code]
    Need the Res_LIST tag to be removed which is coming from object type.

  • Generating a XML using XML Schema

    Hi,
    I have a requirement where I need to generate a XML which should follow XML Schema. If XML schema changes, i should still be able to generate XML file. Any sample code or idea will help me.

    http://java.sun.com/webservices/jaxb/users-guide/jaxb-using.html
    This tutorial is a good place to start. ideally you will use the xjc.bat file present in
    jwsdp-2.0 (thats whaty i use) to generate a package full of classes that corresponds to your
    schema.
    Use ANT-build script to generate this package then you will do some marshalling
    followed by validating against a DTD, and unmarshalling - to do get java objects out of XML

  • How Do You Use XML To Create Image Upload On A WebSite?

    Hello,
    Could some one please help me understand how to create web image gallery and web video gallery using XML? I have found few xml codes that could be used to do this but I am not so sure how to use them. I want my clients to be able upload images and videos with linking thumbnails to Image and or Videos. Do you think the codes I included in this question will help me achive this goal? And do I need to put all in one and in the same directory so it will work? Please help with your idea and tell me how you would use these codes and how you may step-by-step implement the idea your self to your own web site.
    I have also included the instruction I found on the web with the codes.
    Starting with You Tube, API on their video gallery, here are the codes I found,
    Assume you are to use the YouTube, XML code; What will you change here so it will work on your own www.domain.com?
    <% Dim xml, xhr, ns, YouTubeID, TrimmedID, GetJpeg, GetJpeg2, GetJpeg3, thumbnailUrl, xmlList, nodeList, TrimmedThumbnailUrl Set xml = Server.CreateObject("MSXML2.FreeThreadedDOMDocument")
    xml.async = False
    xml.setProperty "ServerHTTPRequest", True
    xml.Load("http://gdata.youtube.com/feeds/api/users/Shuggy23/favorites?orderby=updated") If xml.parseError.errorCode <> 0 Then
        Response.Write xml.parseError.reason End If Set xmlList = xml.getElementsByTagName("entry") Set nodeList = xml.SelectNodes("//media:thumbnail") For Each xmlItem In xmlList
        YouTubeID = xmlItem.getElementsByTagName("id")(0).Text
        TrimmedID = Replace(YouTubeID, "http://gdata.youtube.com/feeds/api/videos/", "")
        For Each xmlItem2 In nodeList
            thumbnailUrl = xmlItem2.getAttribute("url")
            Response.Write thumbnailUrl & "<br />"
        Next     Next    
    %>
    For the image gallery, the following are the codes I found with your experience do I need to use the entire codes or just some of them that I should use?
    CODE #01Converting Database queries to XML
    Using XML as data sources presumes the existence of XML. Often, it is easier to have the server create the XML from a database on the fly. Below are some scripts for common server models that do such a thing.
    These are starting points. They will need to be customized for your particular scenario.
    All these scripts will export the data from a database table with this structure:
    ID: integer, primary key, autoincrement
    AlbumName: text(255)
    ImagePath: text(255)
    ImageDescription: text(2000)
    UploadDate: datetime
    The output of the manual scripts will look like:
    <?xml version="1.0" encoding="utf-8" ?>
      <images>
         <image>
              <ID>1</ID>
              <album><![CDATA[ Family ]]></album>
              <path><![CDATA[ /family/us.jpg ]]></path>
              <description><![CDATA[ here goes the description ]]></description>
              <date><![CDATA[ 2006-11-20 10:20:00 ]]></date>
         </image>
         <image>
              <ID>2</ID>
              <album><![CDATA[ Work ]]></album>
              <path><![CDATA[ /work/coleagues.jpg ]]></path>
              <description><![CDATA[ here goes the description ]]></description>
              <date><![CDATA[ 2006-11-21 12:34:00 ]]></date>
         </image>
      </images>
    These are all wrapped in CDATA because it is will work with all data types. They can be removed if you know you don't want them.
    Note: If using the column auto-generating versions, ensure that all the column types are text. Some databases have data type options like 'binary', that can't be converted to text. This will cause the script to fail.
    CODE #02ASP Manual: This version loops over a query. Edit the Query and XML node names to match your needs.
    <%@LANGUAGE="VBSCRIPT" CODEPAGE="65001"%>
    <%
    Dim MM_conn_STRING
    MM_conn_STRING = "dsn=image_gallery;uid=xxxx;pwd=xxxx"
    %>
    <%
    Dim rsImages
    Dim rsImages_cmd
    Dim rsImages_numRows
    ' Query the database and get all the records from the Images table
    Set rsImages_cmd = Server.CreateObject ("ADODB.Command")
    rsImages_cmd.ActiveConnection = MM_conn_STRING
    rsImages_cmd.CommandText = "SELECT ID, AlbumName, ImagePath, ImageDescription, UploadDate FROM images"
    rsImages_cmd.Prepared = true
    Set rsImages = rsImages_cmd.Execute
    ' Send the headers
    Response.ContentType = "text/xml"
    Response.AddHeader "Pragma", "public"
    Response.AddHeader "Cache-control", "private"
    Response.AddHeader "Expires", "-1"
    %><?xml version="1.0" encoding="utf-8"?>
    <images>
      <% While (NOT rsImages.EOF) %>
         <image>
              <ID><%=(rsImages.Fields.Item("ID").Value)%></ID>
              <album><![CDATA[<%=(rsImages.Fields.Item("AlbumName").Value)%>]]></album>
              <path><![CDATA[<%=(rsImages.Fields.Item("ImagePath").Value)%>]]></path>
              <description><![CDATA[<%=(rsImages.Fields.Item("ImageDescription").Value)%>]]></description>
              <date><![CDATA[<%=(rsImages.Fields.Item("UploadDate").Value)%>]]></date>
         </image>
        <%
           rsImages.MoveNext()
         Wend
    %>
    </images>
    <%
    rsImages.Close()
    Set rsImages = Nothing
    %>
    CODE #03
    Automatic: This version evaluates the query and automatically builds the nodes from the column names.
    <%@LANGUAGE="VBSCRIPT" CODEPAGE="65001"%>
    <%
    Dim MM_conn_STRING
    MM_conn_STRING = "dsn=image_gallery;uid=xxxx;pwd=xxxx"
    %>
    <%
    Dim rsAll
    Dim rsAll_cmd
    Dim rsAll_numRows
    ' Query the database and get all the records from the Images table
    Set rsAll_cmd = Server.CreateObject ("ADODB.Command")
    rsAll_cmd.ActiveConnection = MM_conn_STRING
    rsAll_cmd.CommandText = "SELECT * FROM Images"
    rsAll_cmd.Prepared = true
    Set rsAll = rsAll_cmd.Execute
    ' Send the headers
    Response.ContentType = "text/xml"
    Response.AddHeader "Pragma", "public"
    Response.AddHeader "Cache-control", "private"
    Response.AddHeader "Expires", "-1"
    %><?xml version="1.0" encoding="utf-8"?>
    <root>
      <% While (NOT rsAll.EOF) %>
         <row>
             <%
                 For each field in rsAll.Fields
                 column = field.name
             %>
              <<%=column%>><![CDATA[<%=(rsAll.Fields.Item(column).Value)%>]]></<%=column%>>
              <%
                 Next
              %>
         </row>
        <%
           rsAll.MoveNext()
         Wend
    %>
    </root>
    <%
    rsAll.Close()
    Set rsAll = Nothing
    %>

    OK, I understand - thanks for that.
    I thought the whole process was supposed to be a bit more seemless? Having to upload/download documents and manually keep them in sync will leave a lot of room for errors.
    It's kinda painful the way iOS doesn't have folders. It makes things incompatible with the Mac and means you can't group files from multiple apps into a single project - who organises their digital life by the apps they use?
    I think I'll recommend they use their iPad only.
    Thanks for that.
    Cheers
    Ben

  • Why use Xml Db?

    Hi ,
    1- what is the main benefit for using xml db , what does it offer that regular db doesn't ?
    2- what do i have to learn to know this type of db?
    Thanks.....

    1) There is a simple rule. If you have to handle XML use XML(DB).
    Oracle XMLDB functionality is a free / core part of the Oracle database (install it, if it isn't via the main script $ORACLE_HOME\rdbms\catqm.sql)
    A "regular" db is 99% of the time needed to handle relational data. See Wikipedia for differences between relational, xml, or, lets say, object orientated databases.
    2) Start reading. ;-)
    Start reading the Oracle XMLDB Development Guide (http://www.oracle.com/pls/db111/to_toc?pathname=appdev.111/b28369/toc.htm) - Chapter 1 and 2 are a good way to start.

  • File is corrupted error while creating excel using xml

      Hi have created one excel file using XML code and sent it to mail as attachement. But when i open it, it displays error  message - file is corrupted and cannot be opened.
    below is my code - please review and tell what is wrong in it ASAP :
    * Creating a ixml Factory
       l_ixml = cl_ixml=>create( ).
    * Creating the DOM Object Model
       l_document = l_ixml->create_document( ).
    * Create Root Node 'Workbook'
       l_element_root  = l_document->create_simple_element( name = 'Workbook'  parent = l_document ).
       l_element_root->set_attribute( name = 'xmlns'  value = 'urn:schemas-microsoft-com:office:spreadsheet' ).
       ns_attribute = l_document->create_namespace_decl( name = 'ss'  prefix = 'xmlns'  uri = 'urn:schemas-microsoft-com:office:spreadsheet' ).
       l_element_root->set_attribute_node( ns_attribute ).
       ns_attribute = l_document->create_namespace_decl( name = 'x'  prefix = 'xmlns'  uri = 'urn:schemas-microsoft-com:office:excel' ).
       l_element_root->set_attribute_node( ns_attribute ).
    * Create node for document properties.
       r_element_properties = l_document->create_simple_element( name = 'TEST_REPORT'  parent = l_element_root ).
       l_value = sy-uname.
       l_document->create_simple_element( name = 'Author'  value = l_value  parent = r_element_properties  ).
    * Styles
       r_styles = l_document->create_simple_element( name = 'Styles'  parent = l_element_root  ).
    * Style for Header
       r_style  = l_document->create_simple_element( name = 'Style'   parent = r_styles  ).
       r_style->set_attribute_ns( name = 'ID'  prefix = 'ss'  value = 'Header' ).
       r_format  = l_document->create_simple_element( name = 'Font'  parent = r_style  ).
       r_format->set_attribute_ns( name = 'Bold'  prefix = 'ss'  value = '1' ).
       r_format  = l_document->create_simple_element( name = 'Interior' parent = r_style  ).
       r_format->set_attribute_ns( name = 'Color'   prefix = 'ss'  value = '#92D050' ).
       r_format->set_attribute_ns( name = 'Pattern' prefix = 'ss'  value = 'Solid' ).
       r_format  = l_document->create_simple_element( name = 'Alignment'  parent = r_style  ).
       r_format->set_attribute_ns( name = 'Vertical'  prefix = 'ss'  value = 'Center' ).
       r_format->set_attribute_ns( name = 'WrapText'  prefix = 'ss'  value = '1' ).
       r_border  = l_document->create_simple_element( name = 'Borders'  parent = r_style ).
       r_format  = l_document->create_simple_element( name = 'Border'   parent = r_border  ).
       r_format->set_attribute_ns( name = 'Position'  prefix = 'ss'  value = 'Bottom' ).
       r_format->set_attribute_ns( name = 'LineStyle'  prefix = 'ss'  value = 'Continuous' ).
       r_format->set_attribute_ns( name = 'Weight'  prefix = 'ss'  value = '1' ).
       r_format  = l_document->create_simple_element( name = 'Border'   parent = r_border  ).
       r_format->set_attribute_ns( name = 'Position'  prefix = 'ss'  value = 'Left' ).
       r_format->set_attribute_ns( name = 'LineStyle'  prefix = 'ss'  value = 'Continuous' ).
       r_format->set_attribute_ns( name = 'Weight'  prefix = 'ss'  value = '1' ).
       r_format  = l_document->create_simple_element( name = 'Border'   parent = r_border  ).
       r_format->set_attribute_ns( name = 'Position'  prefix = 'ss'  value = 'Top' ).
       r_format->set_attribute_ns( name = 'LineStyle'  prefix = 'ss'  value = 'Continuous' ).
       r_format->set_attribute_ns( name = 'Weight'  prefix = 'ss'  value = '1' ).
       r_format  = l_document->create_simple_element( name = 'Border'   parent = r_border  ).
       r_format->set_attribute_ns( name = 'Position'  prefix = 'ss'  value = 'Right' ).
       r_format->set_attribute_ns( name = 'LineStyle'  prefix = 'ss'  value = 'Continuous' ).
       r_format->set_attribute_ns( name = 'Weight'  prefix = 'ss'  value = '1' ).
    * Style for Data
       r_style1  = l_document->create_simple_element( name = 'Style'   parent = r_styles  ).
       r_style1->set_attribute_ns( name = 'ID'  prefix = 'ss'  value = 'Data' ).
       r_border  = l_document->create_simple_element( name = 'Borders'  parent = r_style1 ).
       r_format  = l_document->create_simple_element( name = 'Border'   parent = r_border  ).
       r_format->set_attribute_ns( name = 'Position'  prefix = 'ss'  value = 'Bottom' ).
       r_format->set_attribute_ns( name = 'LineStyle'  prefix = 'ss'  value = 'Continuous' ).
       r_format->set_attribute_ns( name = 'Weight'  prefix = 'ss'  value = '1' ).
       r_format  = l_document->create_simple_element( name = 'Border'   parent = r_border  ).
       r_format->set_attribute_ns( name = 'Position'  prefix = 'ss'  value = 'Left' ).
       r_format->set_attribute_ns( name = 'LineStyle'  prefix = 'ss'  value = 'Continuous' ).
       r_format->set_attribute_ns( name = 'Weight'  prefix = 'ss'  value = '1' ).
       r_format  = l_document->create_simple_element( name = 'Border'   parent = r_border  ).
       r_format->set_attribute_ns( name = 'Position'  prefix = 'ss'  value = 'Top' ).
       r_format->set_attribute_ns( name = 'LineStyle'  prefix = 'ss'  value = 'Continuous' ).
       r_format->set_attribute_ns( name = 'Weight'  prefix = 'ss'  value = '1' ).
       r_format  = l_document->create_simple_element( name = 'Border'   parent = r_border  ).
       r_format->set_attribute_ns( name = 'Position'  prefix = 'ss'  value = 'Right' ).
       r_format->set_attribute_ns( name = 'LineStyle'  prefix = 'ss'  value = 'Continuous' ).
       r_format->set_attribute_ns( name = 'Weight'  prefix = 'ss'  value = '1' ).
    * Worksheet
       r_worksheet = l_document->create_simple_element( name = 'Worksheet'  parent = l_element_root ).
       r_worksheet->set_attribute_ns( name = 'Name'  prefix = 'ss'  value = 'Sheet1' ).
    *  r_worksheet->set_attribute_ns( name = 'Protected'  prefix = 'ss'  value = '1' ).    " WORKING
    * Table
       r_table = l_document->create_simple_element( name = 'Table'  parent = r_worksheet ).
       r_table->set_attribute_ns( name = 'FullColumns'  prefix = 'x'  value = '1' ).
       r_table->set_attribute_ns( name = 'FullRows'     prefix = 'x'  value = '1' ).
    * Column Formatting
       r_column = l_document->create_simple_element( name = 'Column'  parent = r_table ).
       r_column->set_attribute_ns( name = 'Width'  prefix = 'ss'  value = '40' ).
       r_column = l_document->create_simple_element( name = 'Column'  parent = r_table ).
       r_column->set_attribute_ns( name = 'Width'  prefix = 'ss'  value = '90' ).
       r_column = l_document->create_simple_element( name = 'Column'  parent = r_table ).
       r_column->set_attribute_ns( name = 'Width'  prefix = 'ss'  value = '140' ).
       r_column = l_document->create_simple_element( name = 'Column'  parent = r_table ).
       r_column->set_attribute_ns( name = 'Width'  prefix = 'ss'  value = '150' ).
       r_column = l_document->create_simple_element( name = 'Column'  parent = r_table ).
       r_column->set_attribute_ns( name = 'Width'  prefix = 'ss'  value = '90' ).
       r_column = l_document->create_simple_element( name = 'Column'  parent = r_table ).
       r_column->set_attribute_ns( name = 'Width'  prefix = 'ss'  value = '90' ).
       r_column = l_document->create_simple_element( name = 'Column'  parent = r_table ).
       r_column->set_attribute_ns( name = 'Width'  prefix = 'ss'  value = '90' ).
       r_column = l_document->create_simple_element( name = 'Column'  parent = r_table ).
       r_column->set_attribute_ns( name = 'Width'  prefix = 'ss'  value = '90' ).
       r_column = l_document->create_simple_element( name = 'Column'  parent = r_table ).
       r_column->set_attribute_ns( name = 'Width'  prefix = 'ss'  value = '90' ).
    * Blank Row
       r_row = l_document->create_simple_element( name = 'Row'  parent = r_table ).
    * Column Headers Row
       r_row = l_document->create_simple_element( name = 'Row'  parent = r_table ).
       r_row->set_attribute_ns( name = 'AutoFitHeight'  prefix = 'ss'  value = '1' ).
    * RFQ No.
       r_cell = l_document->create_simple_element( name = 'Cell'  parent = r_row ).
       r_cell->set_attribute_ns( name = 'StyleID'  prefix = 'ss'  value = 'Header' ).
       r_data = l_document->create_simple_element( name = 'Data'  value = 'RFQ No.'  parent = r_cell ).
       r_data->set_attribute_ns( name = 'Type'  prefix = 'ss' value = 'String' ).
    * RFQ Line Item No
       r_cell = l_document->create_simple_element( name = 'Cell'  parent = r_row ).
       r_cell->set_attribute_ns( name = 'StyleID'  prefix = 'ss'  value = 'Header' ).
       r_data = l_document->create_simple_element( name = 'Data'  value = 'RFQ Line Item No.'  parent = r_cell ).
       r_data->set_attribute_ns( name = 'Type'  prefix = 'ss' value = 'String' ).
    * Material
       r_cell = l_document->create_simple_element( name = 'Cell'  parent = r_row ).
       r_cell->set_attribute_ns( name = 'StyleID'  prefix = 'ss'  value = 'Header' ).
       r_data = l_document->create_simple_element( name = 'Data'  value = 'Material'  parent = r_cell ).
       r_data->set_attribute_ns( name = 'Type'  prefix = 'ss' value = 'String' ).
    * Quantity
       r_cell = l_document->create_simple_element( name = 'Cell'  parent = r_row ).
       r_cell->set_attribute_ns( name = 'StyleID'  prefix = 'ss'  value = 'Header' ).
       r_data = l_document->create_simple_element( name = 'Data'  value = 'Quantity'  parent = r_cell ).
       r_data->set_attribute_ns( name = 'Type'  prefix = 'ss' value = 'String' ).
    *  Order UNIT
       r_cell = l_document->create_simple_element( name = 'Cell'  parent = r_row ).
       r_cell->set_attribute_ns( name = 'StyleID'  prefix = 'ss'  value = 'Header' ).
       r_data = l_document->create_simple_element( name = 'Data'  value = 'Order Unit'  parent = r_cell ).
       r_data->set_attribute_ns( name = 'Type'  prefix = 'ss' value = 'String' ).
    *  Delivery Date
       r_cell = l_document->create_simple_element( name = 'Cell'  parent = r_row ).
       r_cell->set_attribute_ns( name = 'StyleID'  prefix = 'ss'  value = 'Header' ).
       r_data = l_document->create_simple_element( name = 'Data'  value = 'Delivery Date'  parent = r_cell ).
       r_data->set_attribute_ns( name = 'Type'  prefix = 'ss' value = 'String' ).
    *  RFQ Creation Date
       r_cell = l_document->create_simple_element( name = 'Cell'  parent = r_row ).
       r_cell->set_attribute_ns( name = 'StyleID'  prefix = 'ss'  value = 'Header' ).
       r_data = l_document->create_simple_element( name = 'Data'  value = 'RFQ Creation Date'  parent = r_cell ).
       r_data->set_attribute_ns( name = 'Type'  prefix = 'ss' value = 'String' ).
    *  RFQ Deadline Date
       r_cell = l_document->create_simple_element( name = 'Cell'  parent = r_row ).
       r_cell->set_attribute_ns( name = 'StyleID'  prefix = 'ss'  value = 'Header' ).
       r_data = l_document->create_simple_element( name = 'Data'  value = 'RFQ Deadline Date'  parent = r_cell ).
       r_data->set_attribute_ns( name = 'Type'  prefix = 'ss' value = 'String' ).
    * Price
       r_cell = l_document->create_simple_element( name = 'Cell'  parent = r_row ).
       r_cell->set_attribute_ns( name = 'StyleID'  prefix = 'ss'  value = 'Header' ).
       r_data = l_document->create_simple_element( name = 'Data'  value = 'Net Price'  parent = r_cell ).
       r_data->set_attribute_ns( name = 'Type'  prefix = 'ss' value = 'String' ).
    ** Login
    *  r_cell = l_document->create_simple_element( name = 'Cell'  parent = r_row ).
    *  r_cell->set_attribute_ns( name = 'StyleID'  prefix = 'ss'  value = 'Header' ).
    *  CONCATENATE 'Login - ' lv_date+6(2) '/' lv_date+4(2) '/' lv_date+0(4) INTO l_value.
    *  r_data = l_document->create_simple_element( name = 'Data'  value = l_value  parent = r_cell ).
    *  r_data->set_attribute_ns( name = 'Type'  prefix = 'ss' value = 'String' ).
    * Blank Row after Column Headers
       r_row = l_document->create_simple_element( name = 'Row'  parent = r_table ).
       r_cell = l_document->create_simple_element( name = 'Cell'  parent = r_row ).
       r_cell->set_attribute_ns( name = 'StyleID'  prefix = 'ss'  value = 'Data' ).
       r_cell = l_document->create_simple_element( name = 'Cell'  parent = r_row ).
       r_cell->set_attribute_ns( name = 'StyleID'  prefix = 'ss'  value = 'Data' ).
       r_cell = l_document->create_simple_element( name = 'Cell'  parent = r_row ).
       r_cell->set_attribute_ns( name = 'StyleID'  prefix = 'ss'  value = 'Data' ).
       r_cell = l_document->create_simple_element( name = 'Cell'  parent = r_row ).
       r_cell->set_attribute_ns( name = 'StyleID'  prefix = 'ss'  value = 'Data' ).
       r_cell = l_document->create_simple_element( name = 'Cell'  parent = r_row ).
       r_cell->set_attribute_ns( name = 'StyleID'  prefix = 'ss'  value = 'Data' ).
       r_cell = l_document->create_simple_element( name = 'Cell'  parent = r_row ).
       r_cell->set_attribute_ns( name = 'StyleID'  prefix = 'ss'  value = 'Data' ).
       r_cell = l_document->create_simple_element( name = 'Cell'  parent = r_row ).
       r_cell->set_attribute_ns( name = 'StyleID'  prefix = 'ss'  value = 'Data' ).
       r_cell = l_document->create_simple_element( name = 'Cell'  parent = r_row ).
       r_cell->set_attribute_ns( name = 'StyleID'  prefix = 'ss'  value = 'Data' ).
       r_cell = l_document->create_simple_element( name = 'Cell'  parent = r_row ).
       r_cell->set_attribute_ns( name = 'StyleID'  prefix = 'ss'  value = 'Data' ).
    * Data Table
       LOOP AT it_final1 INTO wa_final1.
         CLEAR l_value.
         r_row = l_document->create_simple_element( name = 'Row'  parent = r_table ).
    * RFQ No.
         r_cell = l_document->create_simple_element( name = 'Cell'  parent = r_row ).
         r_cell->set_attribute_ns( name = 'StyleID'  prefix = 'ss'  value = 'Data' ).
         CLEAR l_value.
         l_value = wa_final1-ebeln .
    *    CONDENSE l_value NO-GAPS.
         r_data = l_document->create_simple_element( name = 'Data'  value = l_value  parent = r_cell ).           " Data
         r_data->set_attribute_ns( name = 'Type'  prefix = 'ss'  value = 'String' ).                               " Cell format
    * Line Item No
         CLEAR l_value.
         r_cell = l_document->create_simple_element( name = 'Cell'  parent = r_row ).
         r_cell->set_attribute_ns( name = 'StyleID'  prefix = 'ss'  value = 'Data' ).
         l_value = wa_final1-ebelp.
         r_data = l_document->create_simple_element( name = 'Data'  value = l_value   parent = r_cell ).           " Data
         r_data->set_attribute_ns( name = 'Type'  prefix = 'ss'  value = 'Number' ).                               " Cell format
    * Material
         CLEAR l_value.
         r_cell = l_document->create_simple_element( name = 'Cell'  parent = r_row ).
         r_cell->set_attribute_ns( name = 'StyleID'  prefix = 'ss'  value = 'Data' ).
         l_value = wa_final1-txz01.
         r_data = l_document->create_simple_element( name = 'Data'  value = l_value   parent = r_cell ).           " Data
         r_data->set_attribute_ns( name = 'Type'  prefix = 'ss'  value = 'String' ).                               " Cell format
    * RFQ QTY
         CLEAR l_value.
         r_cell = l_document->create_simple_element( name = 'Cell'  parent = r_row ).
         r_cell->set_attribute_ns( name = 'StyleID'  prefix = 'ss'  value = 'Data' ).
         l_value = wa_final1-ktmng.
         r_data = l_document->create_simple_element( name = 'Data'  value = l_value   parent = r_cell ).           " Data
         r_data->set_attribute_ns( name = 'Type'  prefix = 'ss'  value = 'Number' ).                               " Cell format
    * UNIT
         CLEAR l_value.
         r_cell = l_document->create_simple_element( name = 'Cell'  parent = r_row ).
         r_cell->set_attribute_ns( name = 'StyleID'  prefix = 'ss'  value = 'Data' ).
         l_value = wa_final1-meins.
         r_data = l_document->create_simple_element( name = 'Data'  value = l_value   parent = r_cell

    How to make a particular column non editable?
    Make your style protected and pass that style name to your required column while passing data.
    for example:
    Find below the code for protection of a style.
    Last two lines are very important.
    * Style for Headert
       r_style  = l_document->create_simple_element( name = 'Style'   parent = r_styles  ).
       r_style->set_attribute_ns( name = 'ID'  prefix = 'ss'  value = 'Headert' ).
       r_format  = l_document->create_simple_element( name = 'Font'  parent = r_style  ).
       r_format->set_attribute_ns( name = 'Bold'  prefix = 'ss'  value = '1' ).
       r_format  = l_document->create_simple_element( name = 'Interior' parent = r_style  ).
       r_format->set_attribute_ns( name = 'Color'   prefix = 'ss'  value = '#B2FF64' ).      
       r_format->set_attribute_ns( name = 'Pattern' prefix = 'ss'  value = 'Solid' ).
       r_format  = l_document->create_simple_element( name = 'Alignment'  parent = r_style  ).
       r_format->set_attribute_ns( name = 'Vertical'  prefix = 'ss'  value = 'Bottom' ).
       r_format->set_attribute_ns( name = 'WrapText'  prefix = 'ss'  value = '1' ).
       r_border  = l_document->create_simple_element( name = 'Borders'  parent = r_style ).
       r_format  = l_document->create_simple_element( name = 'Border'   parent = r_border  ).
       r_format->set_attribute_ns( name = 'Position'  prefix = 'ss'  value = 'Bottom' ).
       r_format->set_attribute_ns( name = 'LineStyle'  prefix = 'ss'  value = 'Continuous' ).
       r_format->set_attribute_ns( name = 'Weight'  prefix = 'ss'  value = '1' ).
       r_format  = l_document->create_simple_element( name = 'Border'   parent = r_border  ).
       r_format->set_attribute_ns( name = 'Position'  prefix = 'ss'  value = 'Left' ).
       r_format->set_attribute_ns( name = 'LineStyle'  prefix = 'ss'  value = 'Continuous' ).
       r_format->set_attribute_ns( name = 'Weight'  prefix = 'ss'  value = '1' ).
       r_format  = l_document->create_simple_element( name = 'Border'   parent = r_border  ).
       r_format->set_attribute_ns( name = 'Position'  prefix = 'ss'  value = 'Top' ).
       r_format->set_attribute_ns( name = 'LineStyle'  prefix = 'ss'  value = 'Continuous' ).
       r_format->set_attribute_ns( name = 'Weight'  prefix = 'ss'  value = '1' ).
       r_format  = l_document->create_simple_element( name = 'Border'   parent = r_border  ).
       r_format->set_attribute_ns( name = 'Position'  prefix = 'ss'  value = 'Right' ).
       r_format->set_attribute_ns( name = 'LineStyle'  prefix = 'ss'  value = 'Continuous' ).
       r_format->set_attribute_ns( name = 'Weight'  prefix = 'ss'  value = '1' ).
       r_format  = l_document->create_simple_element( name = 'Protection'  parent = r_style  ).
       r_format->set_attribute_ns( name = 'Protected'  prefix = 'ss'  value = '1' ).

  • Creation of a portal page using XML web form

    Hi Experts,
    I want to know how to make a portal page using XML web forms... Please tell me the steps involved in doing the aforesaid.
    Thanks in advance...

    Hi
    You compose page using WPC(Web page Composer), this is a bussiness package, which you need to deploy it on portal server then will get a WPC role which you can assign the user and then user can start composing the using follwoing PDF
    To compose it chect this pdf
    https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/2041eb17-6001-2b10-b08d-b95ce55fa9b7?overridelayout=true
    Thanks

  • Help using XML as Dictionary key

    I'm not quite understanding the key in Dictionaries. I thought if the same key was passed twice it would still only create one pair in the dictionary. Can anyone explain this to me?
    With a key of a string or number it seems to work as I would expect, but the XML as key doesn't seem to work. The line in there that changes the title was just to check if the XML was being passed as a reference or value. It is a reference. So it seems like the dictionary should know the key is the same. Why doesn't it?
    I'm trying to create an index of the content in some XML Nodes and want to be sure that various nodes don't get added to the index more than once. I also My thinking was to use the XML node itself as as the key. It is the only thing I have in the data that is for sure unique. Is there a way to do what I want to do?
    var xmlData:XML=<data>
    <session>
    <title>Document 1</title>
    <desc> <![CDATA[blah blah blah]]></desc>
    </session>
    <session>
    <title>Document 2</title>
    <desc> <![CDATA[blah blah blah]]></desc>
    </session>
    </data>;
    var d:Dictionary=new Dictionary();
    var xml1:XML=xmlData.session[0];
    var xml2:XML=xmlData.session[0];
    addToDictionary(xml1);
    addToDictionary(xml2);
    xmlData.session[0].title="New title";
    for(var a:* in d){
              trace(a.title+": "+d[a]);
    function addToDictionary(xml:XML){
              d[xml]=int(Math.random()*500);
    traces
    New title: 2
    New title: 135

    If I change the assigment to:
    var xml1:XML=xmlData.session[0];
    var xml2:XML=xml1;
    addToDictionary(xml1);
    addToDictionary(xml2);
    Then it does work as I had hoped it might. In any event...
    I'm trying to make a (forward) index of some properties of each node in an XML—total word count, frequency of each word, etc. So later when my reverse index returns several XMLs I can quickly look up those data and compute a tf-idf for relevance ranking.
    I'm thinking the conversion toString() will slow the whole thing down? I'll give it a look-see.

  • How to edit bitmap which is imported in flash using xml and save the edited bitmap back to xml in flash.

    hi all
    It would be appreciated if any one let me know how to edit
    bitmap which is imported in flash using xml and save the edited
    bitmap back to xml in flash.
    Is it posible to save the bitmap data in flash?
    thanks in advance

    Yes you can... but like I said before you need to upload the
    data from the changes you make to a server.
    In terms of the solution... its unlikely that you'll find one
    specifically for your needs. You will have to learn whatever you
    don't know how already and maybe adapt some existing examples to
    your needs.
    To change the visual state of a movie clip... you just do all
    the regular things that you want to do to it using flash... scale,
    rotation, drawing API , textfields etc in actionscript. If you
    don't know how to how to do that stuff, then you need to learn that
    first. That's basic actionscript.
    You can capture the visual state of a movieclip using the
    BitmapData class. That includes a loaded jpeg. You can also
    manipulate bimatp data using the same class. You should read up on
    that if you don't know how to use it or check out the examples
    below for uploading info.
    For uploading to the server:
    Here's an as2 solution that took 15 secs to find using
    google:
    http://www.quasimondo.com/archives/000645.php
    If you're using as3, google search for "jpeg encoder as3" and
    look through that info. There are also historical answers in the
    forums here related to this type of thing that might help as
    well.

  • Need help with reading XML using File Adapter

    I have created a simple BPEL process that uses a file adapter to read files containing XML messages of a simple xsd schema. But when reading the xml, I get the following error message:
    [2010/03/01 23:43:13] Invalid data: The value for variable "Receive_1_Read_InputVariable", part "revision-report" does not match the schema definition for this part.The invalid xml document is shown below: More...
    [2010/03/01 23:43:13] "{http://schemas.oracle.com/bpel/extension}invalidVariables" has been thrown. less
    -<invalidVariables xmlns="http://schemas.oracle.com/bpel/extension">
    -<part name="code">
    <code>
    9710
    </code>
    </part>
    -<part name="summary">
    <summary>
    Invalid xml document.
    According to the xml schemas, the xml document is invalid. The reason is: Error::cvc-complex-type.4: Attribute 'doc' must appear on element 'revision-report'.
    Error::cvc-complex-type.4: Attribute 'model' must appear on element 'revision-report'.
    Error::cvc-complex-type.4: Attribute 'pubdate' must appear on element 'revision-report'.
    Error::cvc-complex-type.2.4.b: The content of element 'revision-report' is not complete. One of '{"http://xmlns.oracle.com/xmlfile":alternategroup}' is expected.
    Please make sure that the xml document is valid against your schemas.
    </summary>
    </part>
    </invalidVariables>
    It seems that there is some issue with the namespace, but even after trying out various combinations, I am not able to resolve this.
    Here the message schema (xsd):
    <?xml version="1.0" encoding="UTF-8" ?>
    <xs:schema elementFormDefault="qualified"
    targetNamespace="http://xmlns.oracle.com/xmlfile"
    xmlns:tns="http://xmlns.oracle.com/xmlfile"
    xmlns:xs="http://www.w3.org/2001/XMLSchema">
    <xs:element name="revision-report">
    <xs:complexType>
    <xs:sequence maxOccurs="unbounded">
    <xs:element name="alternategroup">
    <xs:complexType>
    <xs:attribute name="name" use="required" type="xs:string"/>
    <xs:attribute name="Desc" use="required" type="xs:string"/>
    </xs:complexType>
    </xs:element>
    </xs:sequence>
    <xs:attribute name="doc" use="required" type="xs:string"/>
    <xs:attribute name="model" use="required" type="xs:string"/>
    <xs:attribute name="pubdate" use="required" type="xs:string"/>
    </xs:complexType>
    </xs:element>
    </xs:schema>
    And here is the xml file to be read by the file adapter:
    <?xml version="1.0" encoding="UTF-8" ?>
    <revision-report doc="doc2" model="model4" pubdate="pubdate5">
    <alternategroup Name="ABC" Desc="ABC-Desc">
    </alternategroup>
    <alternategroup Name="DEF" Desc="DEF-Desc">
    </alternategroup>
    <alternategroup Name="GHI" Desc="GHI-Desc">
    </alternategroup>
    </revision-report>
    Appreciate any help.
    Thanks in advance for your attention.
    Jay

    Thanks for your response.
    I am not sure if there is any easier way, but I tried out the following tool available on the net to check an xml against a xsd:
    http://tools.decisionsoft.com/schemaValidate/
    There were a few issues, that I corrected and finally had a xsd and xml that were matching and valid. I tried this out in my file reading BPEL process, but the error still remained the same!
    Here is my updated/simplified xsd and xml:
    <?xml version="1.0" encoding="UTF-8" ?>
    <xs:schema targetNamespace="http://xmlns.oracle.com/xmlfile"
    xmlns:tns="http://xmlns.oracle.com/xmlfile"
    xmlns:xs="http://www.w3.org/2001/XMLSchema"
    xmlns="http://xmlns.oracle.com/xmlfile">
    <xs:element name="revision-report">
    <xs:complexType>
    <xs:sequence>
    <xs:element maxOccurs="unbounded" ref="alternategroup"/>
    </xs:sequence>
    <xs:attribute name="doc" use="required" type="xs:string"/>
    <xs:attribute name="model" use="required" type="xs:string"/>
    <xs:attribute name="pubdate" use="required" type="xs:string"/>
    </xs:complexType>
    </xs:element>
    <xs:element name="alternategroup">
    <xs:complexType>
    <xs:attribute name="Name" use="required" type="xs:string"/>
    <xs:attribute name="Desc" use="required" type="xs:string"/>
    </xs:complexType>
    </xs:element>
    </xs:schema>
    <?xml version="1.0" encoding="UTF-8" ?>
    <revision-report doc="doc2" model="model4" pubdate="pubdate5" xmlns="http://xmlns.oracle.com/xmlfile">
    <alternategroup Name="ABC" Desc="ABC-Desc"/>
    <alternategroup Name="DEF" Desc="DEF-Desc"/>
    <alternategroup Name="GHI" Desc="GHI-Desc"/>
    </revision-report>
    I even tried the option that is available in JDeveloper to generate a sample xml from a xsd (when in the context of a Transformation activity). The xml generated by this also seems exactly like the one above.
    So, I am not able to figure out why my BPEL process errors out with the message Invalid xml document.

  • Crystal reports using xml at run time??

    Post Author: avnkkishore
    CA Forum: General
    Hi,
    I have very simple requirement.
    I would like to create a crystal
    report using XML. This
    XML file will be decided at run time
    (not at design time).
    Hence i have added a crystal report viewer control to my windows form and did
    not choose any data source (i left it blank currently). Now i am trying to load
    XML file with the following simple code.
                PropertyBag
    crLogOnDetails = new PropertyBag();
    crLogOnDetails&#91;"Local XML File"&#93; = @"C:\Hosts.xml";
    crLogOnDetails&#91;"Local Schema File"&#93; = @"C:\Hosts.xsd";
    ConnectionInfo conn = new ConnectionInfo();
    conn.Attributes = crLogOnDetails;
                // create
    "Host" table
    CrystalDecisions.ReportAppServer.DataDefModel.Table tbl;
                tbl = new
    CrystalDecisions.ReportAppServer.DataDefModel.Table();
                tbl.Name =
    "Host";
    tbl.ConnectionInfo = conn;
    rcDoc.DatabaseController.AddTable(tbl, null);
    I am getting exception exactly at the above line (i.e. when adding table to
    Database Controller) saying "COMException was unhandled" with error code
    0x80004005 Unspecified error.
    Can any one please help me regarding how to resolve this.
    Thanks in advance,
    Kishore

    I am using VB6 as the front end and Microsoft Access to hold the data and Crystal Reports 8.5. I have a staff name parameter that I want the user to select which staff name to print the report.  If there is
    a new staff the name is not in the list of parameters.  How do I add to the parameter list at run time from the staff table?
    Hi,
    I am afraid that these forums don't support VB6, you could refer to this thread:
    Where to post your VB 6 questions
    You could consider posting this issue in these forums below:
    These forums do not support Visual Basic 6, however there are many third-party support sites that do. If you have a VB6-related question please visit these popular forums:
    VB Forums
    VB City
    In addition, issues related to Crystal Reports are not supported either since it belongs to third-party.
    You could post issues related to Crystal Reports to its forum to get dedicated supports.
    SAP Crystal Reports for .NET forum:
    http://forums.sdn.sap.com/forum.jspa?forumID=313
    Thanks for your understanding.
    Regards.
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • "Error while using XML iview" with XML iview template

    Our portal platform: HP-UX,  WAS 6.40 JAVA, EP 6.0 SP14
    We created an XML iview using XML iview template and configured the XML source URL with RSS feeder addresses such as"https://forums.sdn.sap.com/rss/rssmessages.jsp?forumID=41". And then select RSS to XHTMLB as the XML transformation format and save.  When I try to preview the iview, I always got error "Error while using XML iview, please contact your system administrator".  Here is the log and among which I found an error "java.net.UnknownHostException: news.163.com".  Does this indicate that the Portal server is not able to interpret the address of the URL host?
    #1.5#000F20196FBC0063000000080000623300043FCBAE39EA79#1196043941051#com.sap.portal.httpConnectivity.transformationService#sap.com/irj#com.sap.portal.httpConnectivity.transformationService.transformerservice#Administrator#1176##bfepdev_EPD_5623650#Administrator#7a7283a09bc511dca79a000f20196fbc#SAPEngine_Application_Thread[impl:3]_19##0#0#Error##Plain###Error during transformation using pipe: transformer-com.sap.portal.transformationservice-RSS_TO_XHTMLB-1.0;transformer-com.sap.portal.transformationservice-XHTMLBSAXHandler-1.0#
    #1.5#000F20196FBC00630000000A0000623300043FCBAE39EDB0#1196043941051#com.sap.portal.httpConnectivity.xmlIViewsRuntime#sap.com/irj#com.sap.portal.httpConnectivity.xmlIViewsRuntime#Administrator#1176##bfepdev_EPD_5623650#Administrator#7a7283a09bc511dca79a000f20196fbc#SAPEngine_Application_Thread[impl:3]_19##0#0#Error#1#/System/Server#Plain###transform - exception raised during transformation. Make sure that the input source is valid and that all used transformers exists.#
    #1.5#000F20196FBC005B0000001E0000623300043FCBCC12043B#1196044441749#com.sap.portal.httpConnectivity.transformationService#sap.com/irj#com.sap.portal.httpConnectivity.transformationService.java.lang.Class#Administrator#1176##bfepdev_EPD_5623650#Administrator#7a7283a09bc511dca79a000f20196fbc#SAPEngine_Application_Thread[impl:3]_37##0#0#Error##Java###Error openning connection when getting input stream for URL:http://news.163.com/special/00011K6L/rss_newstop.xml
    [EXCEPTION]
    #1#java.net.UnknownHostException: news.163.com
         at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:153)
         at java.net.Socket.connect(Socket.java:474)
         at java.net.Socket.connect(Socket.java:424)
         at sun.net.NetworkClient.doConnect(NetworkClient.java:139)
         at sun.net.www.http.HttpClient.openServer(HttpClient.java:402)
         at sun.net.www.http.HttpClient.openServer(HttpClient.java:618)
         at sun.net.www.http.HttpClient.<init>(HttpClient.java:306)
         at sun.net.www.http.HttpClient.<init>(HttpClient.java:267)
         at sun.net.www.http.HttpClient.New(HttpClient.java:339)
         at sun.net.www.http.HttpClient.New(HttpClient.java:320)
         at sun.net.www.http.HttpClient.New(HttpClient.java:315)
         at sun.net.www.protocol.http.HttpURLConnection.plainConnect(HttpURLConnection.java:522)
         at sun.net.www.protocol.http.HttpURLConnection.connect(HttpURLConnection.java:499)
         at com.sapportals.portal.ivs.http.HttpClient.connect(HttpClient.java:378)
         at com.sapportals.portal.ivs.http.HttpClient.send(HttpClient.java:391)
         at com.sapportals.portal.pb.contentservice.fetcher.DataFetcher.OpenConnection(DataFetcher.java:117)
         at com.sap.portal.httpconnectivity.transformationservice.xmlsource.HTTPStreamSource.getInputStream(HTTPStreamSource.java:295)
         at com.sap.portal.httpconnectivity.transformationservice.PipeTransformer.transform(PipeTransformer.java:131)
         at com.sap.portal.httpconnectivity.transformationservice.EPBaseTransformer.transform(EPBaseTransformer.java:257)
         at com.sap.portal.httpconnectivity.transformationservice.TransformerService.transform(TransformerService.java:284)
         at com.sap.portal.httpconnectivity.xmltransformationiview.runtime.XMLTransformationIView.transform(XMLTransformationIView.java:222)
         at com.sap.portal.httpconnectivity.xmltransformationiview.runtime.XMLTransformationIView.doContent(XMLTransformationIView.java:87)
         at com.sapportals.portal.prt.component.AbstractPortalComponent.serviceDeprecated(AbstractPortalComponent.java:209)
         at com.sapportals.portal.prt.component.AbstractPortalComponent.service(AbstractPortalComponent.java:114)
         at com.sapportals.portal.prt.core.PortalRequestManager.callPortalComponent(PortalRequestManager.java:328)
         at com.sapportals.portal.prt.core.PortalRequestManager.dispatchRequest(PortalRequestManager.java:136)
         at com.sapportals.portal.prt.core.PortalRequestManager.dispatchRequest(PortalRequestManager.java:189)
         at com.sapportals.portal.prt.component.PortalComponentResponse.include(PortalComponentResponse.java:215)
         at com.sapportals.portal.prt.pom.PortalNode.service(PortalNode.java:646)
         at com.sapportals.portal.prt.core.PortalRequestManager.callPortalComponent(PortalRequestManager.java:328)
         at com.sapportals.portal.prt.core.PortalRequestManager.dispatchRequest(PortalRequestManager.java:136)
         at com.sapportals.portal.prt.core.PortalRequestManager.dispatchRequest(PortalRequestManager.java:189)
         at com.sapportals.portal.prt.core.PortalRequestManager.runRequestCycle(PortalRequestManager.java:753)
         at com.sapportals.portal.prt.connection.ServletConnection.handleRequest(ServletConnection.java:240)
         at com.sapportals.portal.prt.dispatcher.Dispatcher$doService.run(Dispatcher.java:522)
         at java.security.AccessController.doPrivileged(Native Method)
         at com.sapportals.portal.prt.dispatcher.Dispatcher.service(Dispatcher.java:405)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at com.sap.engine.services.servlets_jsp.server.servlet.InvokerServlet.service(InvokerServlet.java:156)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.runServlet(HttpHandlerImpl.java:390)
         at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.handleRequest(HttpHandlerImpl.java:264)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:347)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:325)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.invokeWebContainer(RequestAnalizer.java:887)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.handle(RequestAnalizer.java:241)
         at com.sap.engine.services.httpserver.server.Client.handle(Client.java:92)
         at com.sap.engine.services.httpserver.server.Processor.request(Processor.java:148)
         at com.sap.engine.core.service630.context.cluster.session.ApplicationSessionMessageListener.process(ApplicationSessionMessageListener.java:33)
         at com.sap.engine.core.cluster.impl6.session.MessageRunner.run(MessageRunner.java:41)
         at com.sap.engine.core.thread.impl3.ActionObject.run(ActionObject.java:37)
         at java.security.AccessController.doPrivileged(Native Method)
         at com.sap.engine.core.thread.impl3.SingleThread.execute(SingleThread.java:95)
         at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:160)
    And then I tried to upload an XML file on the portal server through KM and created another XML iview.  I got the same error message "Error while using XML iview....". But I found that the log contained different message:
    #1.5#000F20196FBC0059000000090000623300043FCC25CCAC4B#1196045947167#com.sap.portal.httpConnectivity.transformationService#sap.com/irj#com.sap.portal.httpConnectivity.transformationService.transformerservice#Administrator#1176##bfepdev_EPD_5623650#Administrator#7a7283a09bc511dca79a000f20196fbc#SAPEngine_Application_Thread[impl:3]_34##0#0#Error##Plain###Error during transformation using pipe: transformer-com.sap.portal.transformationservice-RSS_TO_XHTMLB-1.0;transformer-com.sap.portal.transformationservice-XHTMLBSAXHandler-1.0#
    #1.5#000F20196FBC00590000000B0000623300043FCC25CCAEDC#1196045947168#com.sap.portal.httpConnectivity.xmlIViewsRuntime#sap.com/irj#com.sap.portal.httpConnectivity.xmlIViewsRuntime#Administrator#1176##bfepdev_EPD_5623650#Administrator#7a7283a09bc511dca79a000f20196fbc#SAPEngine_Application_Thread[impl:3]_34##0#0#Error#1#/System/Server#Plain###transform - exception raised during transformation. Make sure that the input source is valid and that all used transformers exists.#
    #1.5#000F20196FBC005C000000180000623300043FCC5EB48FCF#1196046901893#com.sap.portal.httpConnectivity.xmlIViewsRuntime#sap.com/irj#com.sap.portal.httpConnectivity.xmlIViewsRuntime#Administrator#1176##bfepdev_EPD_5623650#Administrator#7a7283a09bc511dca79a000f20196fbc#SAPEngine_Application_Thread[impl:3]_33##0#0#Error#1#/System/Server#Plain###transform - exception raised during transformation. Make sure that the input source is valid and that all used transformers exists.#
    #1.5#000F20196FBC0066000000020000623300043FCC61683438#1196046947221#com.sap.portal.httpConnectivity.xmlIViewsRuntime#sap.com/irj#com.sap.portal.httpConnectivity.xmlIViewsRuntime#Administrator#1176##bfepdev_EPD_5623650#Administrator#7a7283a09bc511dca79a000f20196fbc#SAPEngine_Application_Thread[impl:3]_7##0#0#Error#1#/System/Server#Plain###transform - exception raised during transformation. Make sure that the input source is valid and that all used transformers exists.#
    #1.5#000F20196FBC00570000000D0000623300043FCC7B6DCFB3#1196047383789#com.sap.portal.httpConnectivity.transformationService#sap.com/irj#com.sap.portal.httpConnectivity.transformationService.java.lang.Class#Administrator#1176##bfepdev_EPD_5623650#Administrator#7a7283a09bc511dca79a000f20196fbc#SAPEngine_Application_Thread[impl:3]_30##0#0#Error##Java###Error openning connection when getting input stream for URL:http://bfepdev.bf.ctc.com:50000/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/documents/Links/rss.xml
    [EXCEPTION]
    #1#java.io.IOException: Server returned HTTP response code: 401 for URL: http://bfepdev.bf.ctc.com:50000/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/documents/Links/rss.xml
         at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
         at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
         at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
         at java.lang.reflect.Constructor.newInstance(Constructor.java:274)
         at sun.net.www.protocol.http.HttpURLConnection$3.run(HttpURLConnection.java:840)
         at java.security.AccessController.doPrivileged(Native Method)
         at sun.net.www.protocol.http.HttpURLConnection.getChainedException(HttpURLConnection.java:834)
         at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:601)
         at com.sapportals.portal.ivs.http.HttpClient.getResponseInputStream(HttpClient.java:615)
         at com.sapportals.portal.pb.contentservice.fetcher.DataFetcher.getInputStreamResponse(DataFetcher.java:182)
         at com.sap.portal.httpconnectivity.transformationservice.xmlsource.HTTPStreamSource.getInputStream(HTTPStreamSource.java:296)
         at com.sap.portal.httpconnectivity.transformationservice.PipeTransformer.transform(PipeTransformer.java:131)
         at com.sap.portal.httpconnectivity.transformationservice.EPBaseTransformer.transform(EPBaseTransformer.java:257)
         at com.sap.portal.httpconnectivity.transformationservice.TransformerService.transform(TransformerService.java:284)
         at com.sap.portal.httpconnectivity.xmltransformationiview.runtime.XMLTransformationIView.transform(XMLTransformationIView.java:222)
         at com.sap.portal.httpconnectivity.xmltransformationiview.runtime.XMLTransformationIView.doContent(XMLTransformationIView.java:87)
         at com.sapportals.portal.prt.component.AbstractPortalComponent.serviceDeprecated(AbstractPortalComponent.java:209)
         at com.sapportals.portal.prt.component.AbstractPortalComponent.service(AbstractPortalComponent.java:114)
         at com.sapportals.portal.prt.core.PortalRequestManager.callPortalComponent(PortalRequestManager.java:328)
         at com.sapportals.portal.prt.core.PortalRequestManager.dispatchRequest(PortalRequestManager.java:136)
         at com.sapportals.portal.prt.core.PortalRequestManager.dispatchRequest(PortalRequestManager.java:189)
         at com.sapportals.portal.prt.component.PortalComponentResponse.include(PortalComponentResponse.java:215)
         at com.sapportals.portal.prt.pom.PortalNode.service(PortalNode.java:646)
         at com.sapportals.portal.prt.core.PortalRequestManager.callPortalComponent(PortalRequestManager.java:328)
         at com.sapportals.portal.prt.core.PortalRequestManager.dispatchRequest(PortalRequestManager.java:136)
         at com.sapportals.portal.prt.core.PortalRequestManager.dispatchRequest(PortalRequestManager.java:189)
         at com.sapportals.portal.prt.core.PortalRequestManager.runRequestCycle(PortalRequestManager.java:753)
         at com.sapportals.portal.prt.connection.ServletConnection.handleRequest(ServletConnection.java:240)
         at com.sapportals.portal.prt.dispatcher.Dispatcher$doService.run(Dispatcher.java:522)
         at java.security.AccessController.doPrivileged(Native Method)
         at com.sapportals.portal.prt.dispatcher.Dispatcher.service(Dispatcher.java:405)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at com.sap.engine.services.servlets_jsp.server.servlet.InvokerServlet.service(InvokerServlet.java:156)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.runServlet(HttpHandlerImpl.java:390)
         at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.handleRequest(HttpHandlerImpl.java:264)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:347)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:325)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.invokeWebContainer(RequestAnalizer.java:887)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.handle(RequestAnalizer.java:241)
         at com.sap.engine.services.httpserver.server.Client.handle(Client.java:92)
         at com.sap.engine.services.httpserver.server.Processor.request(Processor.java:148)
         at com.sap.engine.core.service630.context.cluster.session.ApplicationSessionMessageListener.process(ApplicationSessionMessageListener.java:33)
         at com.sap.engine.core.cluster.impl6.session.MessageRunner.run(MessageRunner.java:41)
         at com.sap.engine.core.thread.impl3.ActionObject.run(ActionObject.java:37)
         at java.security.AccessController.doPrivileged(Native Method)
         at com.sap.engine.core.thread.impl3.SingleThread.execute(SingleThread.java:95)
         at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:160)
    Caused by: java.io.IOException: Server returned HTTP response code: 401 for URL: http://bfepdev.bf.ctc.com:50000/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/documents/Links/rss.xml
         at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:794)
         at java.net.HttpURLConnection.getResponseCode(HttpURLConnection.java:272)
         at com.sapportals.portal.ivs.http.HttpClient.send(HttpClient.java:395)
         at com.sapportals.portal.pb.contentservice.fetcher.DataFetcher.OpenConnection(DataFetcher.java:117)
         at com.sap.portal.httpconnectivity.transformationservice.xmlsource.HTTPStreamSource.getInputStream(HTTPStreamSource.java:295)
         ... 37 more
    #1.5#000F20196FBC00570000000E0000623300043FCC7B6DD77E#1196047383800#com.sap.portal.httpConnectivity.transformationService#sap.com/irj#com.sap.portal.httpConnectivity.transformationService.transformerservice#Administrator#1176##bfepdev_EPD_5623650#Administrator#7a7283a09bc511dca79a000f20196fbc#SAPEngine_Application_Thread[impl:3]_30##0#0#Error##Plain###Error during transformation using pipe: transformer-com.sap.portal.transformationservice-RSS_TO_XHTMLB-1.0;transformer-com.sap.portal.transformationservice-XHTMLBSAXHandler-1.0#
    #1.5#000F20196FBC0057000000100000623300043FCC7B6DD9C8#1196047383801#com.sap.portal.httpConnectivity.xmlIViewsRuntime#sap.com/irj#com.sap.portal.httpConnectivity.xmlIViewsRuntime#Administrator#1176##bfepdev_EPD_5623650#Administrator#7a7283a09bc511dca79a000f20196fbc#SAPEngine_Application_Thread[impl:3]_30##0#0#Error#1#/System/Server#Plain###transform - exception raised during transformation. Make sure that the input source is valid and that all used transformers exists.#
    Anyone has any idea on this? thanks.

    Hi Yepin Jin,
    I am facing the same issue did you solved it?
    Regards,
    Orlando Covault

  • Use XML as data input for Crystal Report for Eclipse

    Hi,
    I am completely new to crystal report and please kindly forgive me if I ask some stupid questions.
    Actually, I have searched the forum for the topic and found some related threads, but I still want to
    have some responses from crystal report experts on this issue.
    Our developer tool is IBM RAD 7.0 and it has crystal reports tools installed in it. I want to use
    crystal report to solve one of our business solutions. I have the following questions about the
    feasbility of this solution:
    (1). I need to specify data at runtime during report generation. I think using fixed data source
         (for example, SQL query or Stored Procedure) may not fit our needs. I think if crystal report
         can accept XML as input to generate reports at runtime, then it will be perfect. Can CR
         use XML as data source as input?
    (2). Actually, one of our business requirements is to generate a letter. Can CR do a report
          layout such that a letter format can be achieved? If yes, would you let me know the
          report layout name?
    (3). We need to export the report into PDF format, I know CR can do PDF output. But can
          CR be controlled to export this into bytes stream? Or the PDF must be saved into a
          physical file?
    (4) If I need to learn more about CR, which book will you recommend?
    Thanks in advance for your advice,
    Raymond

    Thanks for the help Ted
    Works like a charm now.
    Or atleast my very very simple XML report works.
    Now I just need to play around and see what I can do and what I cant.
    I just want to make sure I understand how this works.
    1) I start of with a XML file (or URL or other data source as explained in your BLOG)
    2) I then have to create blank report which will have its data source set to my XML file.
        This report (rpt file) will always have its data source set to the original XML location
    Can this be dynamically changed, or does a new rpt file need to be created each time
        (or atleast I will have to re-run "CreateXMLInlineSchemaReport" from your BLOG)
    3) I can now use this rpt file as I would any other rpt file but its data source will be the original XML file
       - If I update or change the XML file, the report will dynamically reflect these changes.
    4) To change the data source, I need to recreate a new rpt file as per point 2. Which will now be blank.
    5) Filtering.... if I want to filter the XML data do I use normal parameters. If I want to filter the data before
        I pull it do I need to change anything. In otherwords if I have a XML file with 1000 records, but I only want say
    5 of them, how do I only pull those 5 without first pulling the whole 1000 records. Hope that makes sense.
    As I said I am very new to this so some things still fly over my head, but I do play around abit so hopefully
    will find what I am looking for.
    Cheers
    Darren
    PS any other links to info on creating and running reports of XML data sources would be greatly appriciated

  • How to do subtemplate Using XML Publisher Template Builder for Word 5.6.2

    Is it possible to do subtemplate (similar to subreport in crystal report) using XML Publisher Template Builder for Word 5.6.2?. If yes, can anyone explain how to call or import subtemplate from main template?
    Thank you
    V.Piraba

    Hi V. Piraba,
    Here is how it works for me in Microsoft Word 2003. I'm not sure if it will work in Word 5.6.2.
    Creating Subtemplates
    1) Make sure you fill in the “Territory” field when creating Subtemplates. Otherwise there will be no way to import the Subtemplate into another Template. The Import command requires the Territory field to call it from other Templates. You will get a big Java error if you try to import a Subtemplate that does not have the Terriroty field populated.
    Importing Subtemplates
    1) Place the following syntax at the beginning of your XML Publisher template to import a subtemplate (in Oracle Applications)
    <?import:xdo://XDO.[Template Code Name].English.US?>
    Example: <?import:xdo://XDO.WC_SUBTEMPLATE_LOGOS.English.US?>
    2) Use the following commands to importing Subtemplates from local/network drives (outside of Oracle Applications):
    <?import:file:C:/Temp/WC Subtemplate - Logos.rtf?>
    <?import:file:L://Templates/WC Subtemplate - Logos.rtf?>
    <?import: file:///C:WorkChemical.xsl?>
    You can email me at [email protected] if you have further questions.
    Hope this helps!
    Dan

Maybe you are looking for

  • How can I make an E-Book using InDesign?

    I initally assembled an ebook using Microsoft Word and uploaded the file to BookBaby along with the cover design as a separate image file. The E-book is a relatively simply layout, 100 color cartoons and a text "forward" on first page. However, BookB

  • CR 2008 on SAP BW : Error on file filename : Database Connector Error

    Hi, We are facing a rather strange problem in our Prod box. When we run a CR with a mandatory parameter from EP or Infoview, For the first available LOV on Plant,  (Plant is the Mandatory Parameter entry for the report) For the first execution, the C

  • Oracle 8.1.5 and jdk 1.2.2

    We work on Unix Solaris 2.7, Oracle 8.1.5 and a JDK 1.1.8. We'd like to upgrade to JDK 1.2.2 . Is it enough to change the only drivers , using the 8.1.6.0.1 release (jdbc816jdk12-sol_01.zip+ nls_charset12_01.zip ) ?? Or should I apply other upgrades

  • Connecting my laptop to my Panasonic plasma TV

    Hey everybody. I am trying to connect my laptop to my TV with a HDMI cord. I've changes my TV to be on the right channel, I've pressed Fn+ F5 but nothing works. I've been told that I need to go into the video card settings in order to press clone / m

  • Icons Strangely Bouncing in Dock?

    Recently I've had a lot of hickups thorughout the graphic of my system. I am running 10.8.3 on a three week old non-retina macbook pro. Today I launched safari and it bounced above the dock like normal, but continued falling below the dock and screen