XML with embedded BLOBs 4000 Character Limit

Hi All
My database proc (PROCEDURE pr_xml (pi_xml IN XMLTYPE)) is being passed an XMLTYPE object as a parameter (from .NET). This XMLTYPE doc contains image data (in HEX format) that I need to store in a BLOB column. I can do this OK if the image is < 4000 characters long. If it is longer than this I have a problem. I have tried both the following queries to get the BLOB data :
proc definition is
1) select image
FROM XMLTABLE ('/DocumentElement/pic_record' PASSING xmltype('
<DocumentElement>
<pic_record> <Pic>FFD8FFE000104A46494600010101006000600000FFE10066 …………</Pic>
</pic_record>
</DocumentElement>
') COLUMNS image VARCHAR2(4000) PATH 'Pic')
2) SELECT extractvalue(column_value,'Pic')
FROM table (xmlsequence(extract(xmltype('
<DocumentElement>
<pic_record>
<pic_record> <Pic>FFD8FFE000104A46494600010101006000600000FFE10066 …………</Pic>
</pic_record>
</DocumentElement>
'),'/DocumentElement/pic_record/Pic')))
Using 1) I expected to be able to declare the COLUMN as a BLOB (VARCHAR2(4000)-above) but the only types you can use are NUMBER and VARCHAR.
Using 2) the extractValue function complains above 4000 characters.
Does anyone have any experience of this, or any suggestions. Thanks
Tim

Hi,
I have similar question. I got an image in an XML docuemnt. I don't know how to load this into a BLOB column. The XML was originally generated from a BLOB column using DBMS_XMLQuery.GetXML Pkg. The photo get converted inside XML doc as below
e.g. FFD8FFE000104A464946000101000001 ......
i used EXTRACT and getblobval() and able to load back to the BLOB column . but it does not seems a valid image after loading . when I save the contents to a file and open it is showing me all the same charectors and the first line contain as <?xml version="1.0" encoding="WINDOWS-1252"?>
It seems that the photo got converted to Hex format while XML is generated.
please guide how to convert the image back to the original format ? or any alternative.
Thanks
Mano

Similar Messages

  • XML with Embedded XSL

    My company are sending reports to out customers by translating XML with an XSL file to generate a HTML file and then emailing it to our customers.
    At the moment we are using XALAN to process the XML through the Style Sheet.
    We would like to shift the processing onto our users by letting their browsers do the work.
    We cannot send the xml and xsl as 2 seperate files because the users would have to extract both files into the same location then open the XML.
    Is it possible to use embed XSL in XML for use in MS Internet Explorer???????
    I heard that not all translators support embedded XSL but I cant find any info on mdsn.
    Any help would be appreciated

    First, you are assuming that your customers are using Internet Explorer. If this is not the case, then your plan will fail.
    Second, Internet Explorer (in its current standard configuration) does not run XSLT as known to Xalan, but another similar, obsolete, non-standard language (called XSL by Microsoft). IE can be made to work with standard XSLT, by installing a special DLL.
    So you can do this if you like, but first you need to get more knowledge about the IE implementations of XSL (it is on MSDN!) and then you will need ongoing support for customers who need help configuring their browsers.
    As you can probably guess, I think your server-based scheme is a much better idea.

  • XML data from BLOB to CLOB - character set conversion

    Hi All,
    I'm trying to solve a problem with a character set conversion in PL/SQL in the following scenario:
    1. source is an XML as a BLOB variable.
    2. target is an XML as a CLOB variable.
    3. the problem I have is the following:
    - database character set is set to UTF-8
    - XML character set could be anything (UTF-8, ISO 8859-1, ISO 8859-2, ASCII, ...)
    - I need to write a procedure which converts the source BLOB content into the target CLOB taking into account the XML encoding and converts it into the DB default character set (UTF8).
    I've been able to implement a simple conversion function. However, this function expects static XML encoding ISO-8859-1. The main part of the function looks as follows:
    buffer := UTL_RAW.cast_to_varchar2(
    UTL_RAW.convert(
    DBMS_LOB.SUBSTR(source_blob_variable, 16000, pos)
    , 'American_America.UTF8'
    , 'American_America.we8iso8859p1')
    Does anyone have an idea how to rewrite the code to handle "any" XML encoding in the source BLOB file? In other words, is there a function in Oracle which converts XML character set names into Oracle character set values (ISO-8859-1 to we8iso8859p1, UTF-8 to UTF8, ...)?
    Thanks a lot for any help.
    Julius

    I want to pass a BLOB to some "createXML" procedure and get a proper XMLType in UTF8 character set, properly converted from whatever character set is the input in.As per documentation the generated XML has always the encoding set at the client side depending on NLS_LANG (default UTF-8), regardless of the input encoding, so I don't see a need to parse the PI of the XML:
    C:\>echo %NLS_LANG%
    %NLS_LANG%
    C:\>sqlplus
    SQL*Plus: Release 11.1.0.6.0 - Production on Wed Apr 30 08:54:12 2008
    Copyright (c) 1982, 2007, Oracle.  All rights reserved.
    Connected to:
    Oracle Database 11g Enterprise Edition Release 11.1.0.6.0 - Production
    With the Partitioning, OLAP, Data Mining and Real Application Testing options
    SQL> var cur refcursor
    SQL>
    SQL> declare
      2     b   blob := utl_raw.cast_to_raw ('<a>myxml</a>');
      3  begin
      4     open :cur for select xmlroot (xmltype (utl_raw.cast_to_varchar2 (b))) xml from dual;
      5  end;
      6  /
    PL/SQL procedure successfully completed.
    SQL>
    SQL> print cur
    XML
    <?xml version="1.0" encoding="UTF-8"?><a>myxml</a>
    SQL> exit
    Disconnected from Oracle Database 11g Enterprise Edition Release 11.1.0.6.0 - Production
    With the Partitioning, OLAP, Data Mining and Real Application Testing options
    C:\>set NLS_LANG=GERMAN_GERMANY.WE8ISO8859P1
    C:\>sqlplus
    SQL*Plus: Release 11.1.0.6.0 - Production on Mi Apr 30 08:55:02 2008
    Copyright (c) 1982, 2007, Oracle.  All rights reserved.
    SQL> var cur refcursor
    SQL>
    SQL> declare
      2     b   blob := utl_raw.cast_to_raw ('<a>myxml</a>');
      3  begin
      4     open :cur for select xmlroot (xmltype (utl_raw.cast_to_varchar2 (b))) xml from dual;
      5  end;
      6  /
    PL/SQL-Prozedur erfolgreich abgeschlossen.
    SQL>
    SQL> print cur
    XML
    <?xml version="1.0" encoding="ISO-8859-1"?>
    <a>myxml</a>

  • Xml file with embedded xsl reports unknow error: An unknown error has occurred (805303f4)

    Hi,
    I have an xml file with embedded xsl link like below :
    XML :
    <pre><nowiki><?xml version="1.0" encoding="ISO-8859-1"?>
    <?xml-stylesheet type="text/xsl" href="http://abc.com/x.xsl"?>
    <catalog>
    <cd>
    <title>Empire Burlesque</title>
    <artist>Bob Dylan</artist>
    <country>USA</country>
    <company>Columbia</company>
    <price>10.90</price>
    <year>1985</year>
    </cd>
    </catalog></nowiki></pre>
    When opening xml file on IE, opera, safary ... it works ok. But when opening it on FireFox, i have an error like :
    Error loading stylesheet: An unknown error has occurred (805303f4)
    http://abc.com/x.xsl
    How could i solve this problem ?

    A good place to ask questions and advice about web development is at the mozillaZine Web Development/Standards Evangelism forum.
    The helpers at that forum are more knowledgeable about web development issues.
    You need to register at the mozillaZine forum site in order to post at that forum.
    See http://forums.mozillazine.org/viewforum.php?f=25

  • EBS-R12 Generate XML (with data) from Embedded Data Definition

    Hi
    I'm new to running XMLP/BIP in EBS.
    I have found the extensive set of data definitions and templates in EBS and they work great out of the box.
    I, however, need to make template modifications.
    To this end, a correctly structured XML data template - containing all the data fields - is needed for loading into the template-builder in Word.
    If for example I take the embedded R12 data definition - XLAJELINESRPT.xml - for Posted Payable Invoices, and load it into the template builder, it provides the structure of the data template and not the structure of the output XML data.
    I have tried several ways to run the Data definition through XMLP using the concurrent manager attempting to intercept the generated XML (with data) but it either completes the process and uses the linked output template - producing the PDF - or other output - or if I remove the (output template altogether) it fails with an error.
    Maybe I'm missing an obvious step, but there has to be a way of taking the very comprehensive Data Definitions embedded in R12 EBS and using them in custom report templates.
    If I've totally missed the point, please give me the steps to follow.
    Many thaks in anticipation.
    Mike MacMurray

    HI Mike,
    You cannot load your Data Template into the MS Word Template Builder plugin, as it cannot be run to generate XML this way.
    You have two options to get the data from an XML Publisher Report run as a concurrent program in EBS.
    1) Using the XML Publisher Administrator responsibility, set an end date for both the Data Defintion and Template Definitions associated with the XLAJELINESRPT report.
    2) Leave the concurrent program, Data Defintions and Template Definitions exactly as they are and run the report. Once the report has completed, select the Concurrent Request, click "Diagnostics" then click "View XML". This will open the XML in a new browser window. You can then right click, View Source and then save this document locally.
    You can then load this XML into the MS Word Template Builder and start building your template.
    I hope this helps.
    Regards,
    Cj

  • How to retrieve xml file from BLOB and display on browser with css/xslt

    Hi All,
    I am new to xml. I am storing my xml file into BLOB in database. Now in my jsp page I want to retrieve this xml file from BLOB and display in HTML/CSS/XSLT form...
    Pl. guide me.. any docs..?? Logic...??
    Thanks in Advance.
    Sandeep Oza

    Hello Sandeep!
    I'm not familiar with jsp but logic should be as follows:
    -in jsp page instantiate XML parser
    -load specified BLOB into parser
    Now you may traverse the XML tree or you might load XSL file and use transform method to transform XML according to XSL file.
    I have an example where I'm selecting XML straight from relational database and then transform it using XSL into appropriate HTML output, but it's written in PSP.
    You can try http://www.w3schools.com/default.asp for basics on XML, CSS, XSL. It's easy to follow with good examples.
    Regards!
    miki

  • Transporting objects with embedded XML

    Hi all,
    I am using XFire (http://xfire.codehaus.org/) for exposing my web services. I ran across an issue while transporting an object that contains an XML document embedded in it.
    As an example, here is the domain model:
    public class Book {
         Integer id; 
         String name;
         XMLStreamReader document;
        //Setters and getters follow...
    public class BookService {
         Book  getBook( Integer id) {
            //Construct a Book instance and return it...
    }When I call BookService, I get an exception saying "could not write xml". I guess this has got to do with the fact that I am using XMLStreamReader, the same implementation that XFire uses to convert objects.
    I tired information provided on this link: http://xfire.codehaus.org/Message+Binding but now I get something like "There must be a method name element."
    Any ideas how I get this running? Any help would be appreciated.
    Thanks a lot.

    Hi all,
    I am using XFire (http://xfire.codehaus.org/) for exposing my web services. I ran across an issue while transporting an object that contains an XML document embedded in it.
    As an example, here is the domain model:
    public class Book {
         Integer id; 
         String name;
         XMLStreamReader document;
        //Setters and getters follow...
    public class BookService {
         Book  getBook( Integer id) {
            //Construct a Book instance and return it...
    }When I call BookService, I get an exception saying "could not write xml". I guess this has got to do with the fact that I am using XMLStreamReader, the same implementation that XFire uses to convert objects.
    I tired information provided on this link: http://xfire.codehaus.org/Message+Binding but now I get something like "There must be a method name element."
    Any ideas how I get this running? Any help would be appreciated.
    Thanks a lot.

  • [svn] 4000: Updating build files to generate dita xml with lenient as true.

    Revision: 4000
    Author: [email protected]
    Date: 2008-11-03 13:39:40 -0800 (Mon, 03 Nov 2008)
    Log Message:
    Updating build files to generate dita xml with lenient as true.
    QE Notes: None
    Doc Notes: None
    tests: checkintests
    Modified Paths:
    flex/sdk/trunk/asdoc/build.xml
    flex/sdk/trunk/frameworks/projects/airframework/build.xml
    flex/sdk/trunk/frameworks/projects/flash-integration/build.xml
    flex/sdk/trunk/frameworks/projects/flex/build.xml
    flex/sdk/trunk/frameworks/projects/flex4/build.xml
    flex/sdk/trunk/frameworks/projects/framework/build.xml
    flex/sdk/trunk/frameworks/projects/haloclassic/build.xml
    flex/sdk/trunk/frameworks/projects/rpc/build.xml
    flex/sdk/trunk/frameworks/projects/utilities/build.xml
    flex/sdk/trunk/frameworks/projects/wireframe/build.xml

    Any idea, I'm looking for your opinion, what do you think of the above

  • ORA-02348: cannot create VARRAY column with embedded LOB

    Hi
    This error message I get when I try to create a table from my schema file which has a (sub-) element of type CLOB.
    In my XML document I have an element which needs to become declared a CLOB (because it's > 4000 bytes), in my Schema I define it's element node like:
    <xs:element name="MocovuState" xdb:SQLType="CLOB">
    I can register this Schema file but when I create the table, I get the error:
    ORA-02348: cannot create VARRAY column with embedded LOB
    Does anybody know how to handle this ?
    Marcel

    You need to use the xdb:storeVarrayAsTable="true" schema annotation so that unbounded elements are created at schema registration time as nested tables. Varrays can not contain CLOBs/BLOBS. Use the schema annotation xdb:SQLType="CLOB" to tell Oracle XMLDB to use CLOB storage for the element. See your schema below:
    P.S. XMLSPY is invaluable as it supports Oracle XML Schema annotations.
    <?xml version="1.0"?>
    <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:xdb="http://xmlns.oracle.com/xdb" targetNamespace="http://www.yourregisteredschemanamespace.com" elementFormDefault="qualified" attributeFormDefault="unqualified" xdb:storeVarrayAsTable="true">
         <xs:element name="nRootNode">
              <xs:complexType>
                   <xs:all>
                        <xs:element name="nID" type="xs:long"/>
                        <xs:element name="nStringGroup" type="nStringGroup" minOccurs="0"/>
                   </xs:all>
              </xs:complexType>
         </xs:element>
         <xs:complexType name="nStringGroup">
              <xs:sequence>
                   <xs:element name="nString" type="nString" minOccurs="0" maxOccurs="unbounded"/>
              </xs:sequence>
         </xs:complexType>
         <xs:complexType name="nString" xdb:SQLType="CLOB">
              <xs:sequence>
                   <xs:element name="nValue" type="nValue" minOccurs="0" xdb:SQLType="CLOB"/>
              </xs:sequence>
              <xs:attribute name="id" type="xs:long" use="required"/>
         </xs:complexType>
         <xs:simpleType name="nValue">
              <xs:restriction base="xs:string">
                   <xs:minLength value="1"/>
              </xs:restriction>
         </xs:simpleType>
    </xs:schema>

  • XML download from blob

    Hi
    I have a table which has blob column which is xml file. I need to extract xml file and store to local desktop.
    Please help me.
    Thanks
    Ranga

    This example generates some XML into an XMLTYPE, turns it into a BLOB and then saves it out to file...
    DECLARE
       -- Data Variables
       v_xml              XMLTYPE;
       v_blob             BLOB;
       v_data_length      NUMBER;
       -- Loop Control Variables
       v_offset           NUMBER             DEFAULT 1;
       v_chunk   CONSTANT NUMBER             DEFAULT 4000;
       -- UTL_FILE variables
       fh                 UTL_FILE.file_type;
    BEGIN
       -- A big query, about 27k on my PC
       SELECT XMLELEMENT ("Employees", XMLAGG (emp_dept))
         INTO v_xml
         FROM (SELECT XMLELEMENT
                         ("Employee",
                          XMLFOREST
                             (e.employee_id AS "EmployeeId",
                              e.last_name AS "Name",
                              e.job_id AS "Job",
                              e.manager_id AS "Manager",
                              e.hire_date AS "HireDate",
                              e.salary AS "Salary",
                              e.commission_pct AS "Commission",
                              XMLFOREST (d.department_id AS "DeptNo",
                                         d.department_name AS "DeptName",
                                         d.location_id AS "Location"
                                        ) AS "Dept"
                         ) emp_dept
                 FROM employees e, departments d
                WHERE e.department_id = d.department_id);
       -- Turn the XML into a BLOB to bypass any 4k and 32k issues
       v_blob := v_xml.getblobval (1);
       v_data_length := DBMS_LOB.getlength (v_blob);
       -- Open the file
       fh := UTL_FILE.fopen ('XML_FILES', 'myxml.xml', 'wb', v_chunk);
       -- Da loop de loop
       LOOP
          -- Exit when our file offset is bigger than our file
          EXIT WHEN v_offset > v_data_length;
          -- Write the output chunk by chunk
          UTL_FILE.put_raw (fh, DBMS_LOB.SUBSTR (v_blob, v_chunk, v_offset),
                            TRUE);
          -- Increment the offset by the amount written
          v_offset := v_offset + v_chunk;
       END LOOP;
       -- Close the file and say byebye
       UTL_FILE.fclose (fh);
    EXCEPTION
       WHEN NO_DATA_FOUND
       THEN
          -- We won't write any data, or even open the file,
          -- if the query return no rows
          NULL;
    END;This next example simply queries a CLOB from the database and saves it to file...
    DECLARE
      l_file    UTL_FILE.FILE_TYPE;
      l_clob    CLOB;
      l_buffer  VARCHAR2(32767);
      l_amount  BINARY_INTEGER := 32767;
      l_pos     INTEGER := 1;
    BEGIN
      SELECT col1
      INTO   l_clob
      FROM   tab1
      WHERE  rownum = 1;
      l_file := UTL_FILE.fopen('DOCUMENTS', 'Sample2.txt', 'w', 32767);
      LOOP
        DBMS_LOB.read (l_clob, l_amount, l_pos, l_buffer);
        UTL_FILE.put(l_file, l_buffer);
        l_pos := l_pos + l_amount;
      END LOOP;
    EXCEPTION
      WHEN OTHERS THEN
        DBMS_OUTPUT.put_line(SQLERRM);
        UTL_FILE.fclose(l_file);
    END;The process will always finish with a NO_DATA_FOUND exception when the end of the CLOB is reached. For simplicity I've not trapped any of the possible UTL_FILE exceptions.
    For details on using UTL_FILE...
    http://www.psoug.org/reference/utl_file.html

  • How can I get around the character limit in the "print pages" option

    I have a rather large PDF file and I need to print certain pages (for example, pages 1, 324, 456, 759, 812, 946, 1206, 1562, 1792, etc.). However, when I click on print and try to type in the pages, there is a character limit, and it is much smaller than the number of characters I need to type. Is there a way around this? Thanks.

    OK I figured out the answer. Ctrl+J opens up the console (You have to activate javascript). The following script will extract the pages into a new document, and then you can simply print those pages. All you need to do is fill up the "pageArray" array with a list of your pages, separated by commas. It does not support ranges.
    // Extracts all pages listed into a new document
    var pageArray = [INSERT YOUR LIST OF PAGE NUMBERS HERE, SEPARATED BY COMMAS];
    if (pageArray.length > 0) {
    var d = app.newDoc();    // this will add a blank page - we need to remove that once we are done
    for (var n = 0; n < pageArray.length; n++) {
    d.insertPages( {
    nPage: d.numPages-1,
    cPath: this.path,
    nStart: pageArray[n]-1,
    nEnd: pageArray[n]-1,
        // remove the first page
        d.deletePages(0);

  • Create XML Element Tag BasedOn Found Character Style

    Hi,
    Good Day!
    Basically I want to search only for character styles that contains "ntb-", that is why it is hard coded in my searchString variable.
    Although I was able to create XML tag based on selected character style, but it will always add/insert at the end of the parent XML element.
    Can anyone could help me how insert/add that element at the insertion point where the text is found?
    Thanks,
    --elmer
    var myDoc = app.documents[0];
    myDoc.viewPreferences.horizontalMeasurementUnits = MeasurementUnits.POINTS;
    myDoc.viewPreferences.verticalMeasurementUnits = MeasurementUnits.POINTS;
    var charStyles = myDoc.allCharacterStyles;
    var foundStyles = Array();
    var searchString = String();
        searchString = 'ntb-';
    var tempName = String();
    var tempName1 = String();
    for(var i = 1; charStyles.length > i; i++){
       tempName = charStyles[i].name;
       tempName1 = tempName.toLowerCase();
       if(tempName1.indexOf (searchString.toLowerCase()) != -1){
           foundStyles.push (tempName);
    var myDialog = app.dialogs.add({name: "Convert Footnote Character Styles to XML Tags",canCancel:true});
    with (myDialog) {
        with (dialogColumns.add().borderPanels.add()) {
            with (dialogColumns.add()) {
                staticTexts.add({staticLabel: "Character style to search : "});        }
            with (dialogColumns.add()) {
                selCharStyle = dropdowns.add({stringList: foundStyles, selectedIndex: 0, minWidth: 175});
    var dialogShown = myDialog.show();
    while (dialogShown) {
        if (selCharStyle.selectedIndex == 0) {
            alert("Must have at least a character style to search!");
            dialogShown = myDialog.show();
            continue;
        } else {
            insertXMLTags(selCharStyle.stringList[selCharStyle.selectedIndex], selCharStyle.selectedIndex, "0");
            break;
    myDialog.destroy();
    alert("Finished!");
    exit();
    function insertXMLTags(cStyle, cStyleIndex, ip) {
        var myFinds = searchStyle(cStyle, cStyleIndex);
        for (i=myFinds.length - 1; i>=0; i--) {
            var myIP = myFinds[i].texts.item(0).insertionPoints.item(0);
            var myParentXML = myIP.associatedXMLElements[0];
            var myChiidXML = myParentXML.xmlElements.add ( cStyle );
            myChiidXML.contents =  myFinds[i].contents;
            //set the selection
            app.selection = myFinds[i].texts.item(0);
            //remove the selected text
            myFinds[i].texts.item(0).remove();
            Utility Functions         
    function searchStyle(cStyle, cStyleIndex){
        var myFinds;
        // if script version is for Indesign CS2
        if (app.scriptPreferences.version < 5){                                 
            app.findPreferences = NothingEnum.nothing;
            app.changePreferences = NothingEnum.nothing;
            myFinds = myDoc.search(undefined, undefined, undefined, undefined,
            {appliedParagraphStyle: pStyle, appliedCharacterStyle: cStyle});
        // else, for CS3 and CS4
        }else{                                 
            //Clear any existing find/change settings
            app.findTextPreferences = NothingEnum.nothing;
            app.changeTextPreferences = NothingEnum.nothing;
            // set character or paragraph style to search
            if (cStyleIndex != 0){ 
                app.findTextPreferences.appliedCharacterStyle = cStyle;
            //Set the find options.
            app.findChangeTextOptions.caseSensitive = false;
            app.findChangeTextOptions.includeFootnotes = true;
            app.findChangeTextOptions.includeHiddenLayers = false;
            app.findChangeTextOptions.includeLockedLayersForFind = false;
            app.findChangeTextOptions.includeLockedStoriesForFind = false;
            app.findChangeTextOptions.includeMasterPages = false;
            app.findChangeTextOptions.wholeWord = false;                             
            myFinds = myDoc.findText();
        return myFinds;

    Here is a way you can find any field.
    Download the current template.
    Open it in word and go to the line that you are interested in.
    The blanket PO# will be a field. Right click on it and go to properties. You will see the xml element there.
    Hope this answers your question,
    Sandeep Gandhi

  • XML with BSP

    Hello,
    I have created a xml file "data.xml" with a string page
    attribut "xml" and the following page layout.
    <?xml version='1.0' encoding='iso-8859-1'?>
    <%@page language="abap"%>
    <%=xml%>
    in the event handler "On Request" I set the xml variable
    with the following SELECT statement
    SELECT matkl, bez .....
       REPLACE '<' IN bez WITH ' kl '.
       REPLACE '>' IN bez WITH ' gr '.
       CONCATENATE item '<ITEM>' '<VAL>' matkl '</VAL>' '<DES>' bez '</DES>' '</ITEM>' INTO item.
    ENDSELECT.
    CONCATENATE '<GOODSGROUPS>' item '</GOODSGROUPS>' INTO xml.
    As you can see I use the character encoding "iso-8859-1"
    http://www.validome.org/doc/HTML_ge/inter/zeichensaetze.htm
    My problem is that there are some characters that cannot
    be viewed. Why? And which one? (I found out that there
    are problems to view "<" and ">" and I REPLACED this one)
    Error message in Web browser
    <?xml version="1.0" encoding="iso-8859-1" ?>
    - <GOODSGROUPS>
    - <ITEM>
      <VAL />
      <DES />
      </ITEM>
    - <ITEM>
      <VAL>1AA</VAL>
      <DES>Si Scheiben kl150mm</DES>
      </ITEM>
    - <ITEM>
      <VAL>4BF</VAL>
      <DES>geloescht</DES>
      </ITEM>
    The XML page cannot be displayed
    Cannot view XML input using XSL style sheet. Please correct the error and then click the Refresh button, or try again later.
    A semi colon character was expected. Error processing resource 'http://vies12ex.vih.infineon.com:1080/sap/bc/bsp/sap/y_data...
    <ITEM><VAL>5BD</VAL><DES>E undV Pressen</DES></ITEM><ITEM><VAL>5BE</VAL&g...

    bellow u can see the whole abap code in the event handler (OnRequest). the variable "xml" contains the whole xml code, which is dynamically generated.
    DATA: matkl TYPE T023-MATKL,
          wgbez TYPE T023T-WGBEZ,
          item TYPE string,
          bez TYPE string,
          schar.
    item = ''.
    SELECT FMATKL PWGBEZ
      INTO (matkl, wgbez)
      FROM T023 AS F JOIN T023T AS P
        ON FMATKL = PMATKL AND
           FMANDT = PMANDT
    WHERE P~SPRAS = SY-LANGU.
       bez = wgbez.
       REPLACE '<' IN bez WITH ' kl '.
       REPLACE '>' IN bez WITH ' gr '.
       CONCATENATE item '<ITEM>' '<VAL>' matkl '</VAL>' '<DES>' bez '</DES>' '</ITEM>' INTO item.
    ENDSELECT.
    CONCATENATE '<GOODSGROUPS>' item '</GOODSGROUPS>' INTO xml.
    the thing is, everything works without
    the column "wgbez", only in this column are some characters
    which cause troubles. But also in this column there are
    only characters from ISO-8859-1 (Latin-1) character set.
    Thx 4 help!
    BR,
    Rene.

  • Is there a character limit for a field in CrystalReports?

    Is there a character limit for a field in CrystalReports?
    Hello,
    I'm trying to display a long text (+100.000 characters) stored in a MySql database in CrystalReports but CR is not showing the complete text. Is this because there is a length limit for fields in CR?
    Thanks,
    Eddy G.

    This is not a great answer, but you can base your report on a SQL Command, then use something like this for the command(MS SQL):
    select
      case when length(table.field) > 65535
          then substring(table.field,1,65535)
          else table.field end as field_part1,
      case when length(table.field) > 65536+65535
          then substring(table.field,65536, 65535)
          when length(table.field) between 65536 and 65536+65535
          then substring(table.field,65536, length(table.field)-65535)
          else '' end as field_part2
    from table...
    Then in the report, display both fields where you want the BLOB data.
    HTH,
    Carl

  • Is there a character limit for iTunes U course postings when viewing in iOS app?

    I have created a course in iTunes U using the web interface, but when I view the course on my iPad it doesn't show the entire post. Is there a character limit in the app or something for what will display? 
    To make things even stranger, I went back to the course editor in my browser and saved it again (effectively re-posting it) and when I restarted the iTunes U app in iOS the post was cut even shorter!  I'm using an iPad 3rd gen with iOS 6.0.1.

    No, there is no workaround. You would need to find a downloadable copy of old apps.

Maybe you are looking for

  • Syncing music from iPhone 5S to PC iTunes

    I have had iTunes for a decade and taken it from computer to computer. My latest iPhone has more than 6000 songs on it from the original syncing. Now the iTunes library on my PC AFTER "back up" and "manual backup" only shows about 500 songs. The iPho

  • Function Module to Change / Update BOM Line Items

    Hi, I need a Function Module to Change / Update BOM Line Items. Please help. Thanks.

  • Urgent!!! Need your help!!!

    Hi all. Problem description: Why the following code doesn't display the text/contents of the <LastName> node? I've been thinking about this problem for several hours and still can't figure it out. Please HELP!!!!!!!!!!!!!!!!!!! IT's urgent!!!!!! Many

  • Understanding XML file handling in ODI

    Hi People, I've just completed a simple Interface to upload an XML file into an Oracle 10g database table. The interface copes well with both inserts and updates, so I'm very pleased about that. ;) This exercise has raised some questions though. I tr

  • Photoshop stopped working when I tried to download CC which would not load either!!!

    I AM VERY FRUSTRATED. First...My CS5 would not read RAW on my new Canon T3i camera so I tried to find a fix. Then...that did not work s I decided to upgrade to the CC! Well after trying to get it to load I am told the I need to close the "Bridge.exe"