From a CLOB XML to TEXT

Hi,
I have a well formed XML in a CLOB and what i want is to output it to a text or to screen.
Can someone tell me how to do it, i think it's easy for many people, but i am starting in this bussines.
thx in advance.

hope it may help you,
http://asktom.oracle.com/pls/asktom/f?p=100:11:0::NO::P11_QUESTION_ID:367980988799

Similar Messages

  • How to save XML from a CLOB to  a text file (size over 32767 chars)

    Hi,
    I am trying to export a table into an XML file. Using various examples, I have learned that is really easy to handle objects smaller that 32767 bytes (characters).
    The problem is working with big chunks. My XML CLOB is just over 10 MB in size. I can easilly break it into smaller pieces but then I risk to write chr(10) in the middle of a XML Tag (which happened). I have an idea of finding a way around the problem but there are two issues:
    1. DBMS_LOB.instr function returns 0 if offset grows above appx 1100.
    2. I tried this in oreder to avid the limitation from item 1.:
    for c = 1..dbms_lob.getlength(CLOB) loop
    dbms_lob.read(CLOB,c,1,MyString);
    if MyString = chr(10) then
    utl_file.put_line(MyLine);
    MyLine := '';
    else
    MyLine := MyLine || MyString;
    end if;
    end loop;
    This way I generate perfect XML structure, and it takes about an hour of cpu time to create 2.3 MB file. I have tried to run ir for a big one, and it took just over 7 hours to get to 10.2 MB when I had shut it down.
    Does anybody has any suggestions?

    supahsain08 wrote:
    Well, you are not in my class and you don't even know my teacher
    who are you to judge meHe is jaded by our experiences here. 99% of posters who complain that the teacher doesn't teach have adequate (note that I didn't say good) teachers, but it's the student who is failing to take responsibility for his own education. It is after all your responsibility and complaining won't help you any.
    Good luck.

  • Getting question marks in html output when XML sourced from a CLOB...

    I have noticed a number of other unanswered questions on the
    same subject in this forum. Can someone at Oracle shed some
    light on this problem?...
    I store XML in CLOBS which contain a lot of é ö
    characters. When using XSQL to select the XML from the CLOB I
    have to apply a stylesheet to the XSQL (myFile.xsql) with
    disable-output-escaping ="yes" in order to output well formed
    XML.
    I then call the XSQL file from inside another stylesheet i.e.
    <xsl:variable name="sample" select="document(myFile.xsql)"/>
    <xsl:template match="/">
    <xsl:for-each select="$sample">
    <html>
    <body>
    <title>
    <xsl:value-of select="/page/title"/>
    </title>
    </body>
    </html>
    etc...
    I use <xsl:for-each select="$sample"> to output the XML I need,
    within the HTML. The problem is though if "&eacute;" appears in
    the /page/title node the output in HTML appears as a question
    mark.
    Its important to note as well that the stylesheet I apply to
    myFile.xsql starts with:
    <xsl:stylesheet version="1.0"
    xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
    <xsl:output doctype-system="/myFile.dtd" indent="yes"/>
    etc..
    and myFile.dtd has <!ENTITY eacute "&#x000E9;"> in order to
    validate &eacute; in the CLOB.
    I don't have this problem when the &eacute; character is stored
    in a VARCHAR2 column and the VARCHAR2 column is in the same
    select statement as the CLOB in the XSQL file. This outputs in
    my HTML just fine. What am I missing here?
    Shaun

    I parse the XML doc into a domdocument and then loop through using xpath.valueof to pull the individual values from the nodes and then build a generic insert. It works quite well with a small number of columns. I'm not sure how it would work with a lot of columns. You can get code examples from Steve Muench's book "Developing Oracle XML Applications".

  • Can we compare CLOB (xml received from upstream sources)

    can we compare CLOB ( xml received from upstream sources) for particular business date's CLOB data with another business date in OBIEE.

    Not sure, have to verify.Checkout the below link for a workaround in 10g
    http://oraclebizint.wordpress.com/2007/11/12/oracle-bi-ee-101332-working-with-clob-fields/
    Rgds,
    Dpka

  • Substring between two words from a clob

    How to extract a string between two words from a clob variable in PL/SQL?

    My requirement is to extract the soap envelope from a clob. In the below code l_response returned from the http request is a clob with the below format. I need to extract all the text that is between '<s:Envelope' and 's:Envelope>'. That means I need to get rid of the first 5 lines and the last line from the l_response. Can you please help me with the logic?
    --uuid:18cb22a2-11cc-43f4-bfea-c213da179d30+id=157
    Content-ID: <http://tempuri.org/0>
    Content-Transfer-Encoding: 8bit
    Content-Type: application/xop+xml;charset=utf-8;type="application/soap+xml"
    <s:Envelope xmlns:s="http://www.w3.org/2003/05/soap-envelope" xmlns:a="http://www.w3.org/2005/08/addressing"><s:Header><a:Action s:mustUnderstand="1">http://tempuri.org/IUpdateService/QueryUpdateLogRecordsResponse</a:Action><a:RelatesTo>urn:uuid:413f419c-f489-44ea-bd12-dff6f24a4d71</a:RelatesTo></s:Header><s:Body><QueryUpdateLogRecordsResponse xmlns="http://tempuri.org/"><QueryUpdateLogRecordsResult xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns:x="http://www.w3.org/2001/XMLSchema"><XObject.m_element i:type="x:string" xmlns="">&lt;QueryResult Count="2" NextStart="0" PreviousStart="0" Id="{AD62FD77-AFBE-4362-BBEF-695DA5D92640}"&gt;&lt;Columns Count="33"&gt;&lt;Column AttributeName="Id" 
    … 5 pages later…
    DateModified="2014-07-06 07:34:41.9129549-07:00" /&gt;&lt;/Records&gt;&lt;/QueryResult&gt;</XObject.m_element></QueryUpdateLogRecordsResult></QueryUpdateLogRecordsResponse></s:Body></s:Envelope>
    --uuid:18cb22a2-11cc-43f4-bfea-c213da179d30+id=157—
    DECLARE
       l_request             VARCHAR2 (4000);
       l_http_req            UTL_HTTP.req;
       l_http_resp           UTL_HTTP.resp;
       v_buffer              VARCHAR2 (32767);
       n_next_start_record   NUMBER (20) := 1;
       l_response            CLOB;
    BEGIN
       -- Call webservices. Works fine
       l_request :=
             '--uuid:e4c19840-745d-45b2-90ca-12d71be4cfd9+id=2'
          || CHR (13)
          || CHR (10)
          || 'Content-ID: <http://tempuri.org/0>'
          || CHR (13)
          || CHR (10)
          || 'Content-Transfer-Encoding: 8bit'
          || CHR (13)
          || CHR (10)
          || 'Content-Type: application/xop+xml;charset=utf-8;type="application/soap+xml"'
          || CHR (13)
          || CHR (10)
          || CHR (13)
          || CHR (10)
          || '<s:Envelope xmlns:s="http://www.w3.org/2003/05/soap-envelope" xmlns:a="http://www.w3.org/2005/08/addressing"><s:Header><a:Action s:mustUnderstand="1">http://tempuri.org/IUpdateService/QueryUpdateLogRecords</a:Action><a:MessageID>urn:uuid:413f419c-f489-44ea-bd12-dff6f24a4d71</a:MessageID><a:ReplyTo><a:Address>http://www.w3.org/2005/08/addressing/anonymous</a:Address></a:ReplyTo><a:To s:mustUnderstand="1">http://dexdb5/DexNETWebServices_4_0_0_4/UpdateService.svc</a:To></s:Header><s:Body><QueryUpdateLogRecords xmlns="http://tempuri.org/"><context xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns:x="http://www.w3.org/2001/XMLSchema"><XObject.m_element i:type="x:string" xmlns="">&lt;OnlineContext SystemId="'
          || g_system_id
          || '" SessionId="'
          || g_session_id
          || '" UserId="'
          || g_user_id
          || '" /&gt;</XObject.m_element></context><xQueryRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns:x="http://www.w3.org/2001/XMLSchema"><XObject.m_element i:type="x:string" xmlns="">&lt;QueryRequest Start="'
          || p_next_start_record
          || '" Count="'
          || g_records_count
          || '" Distinct="0" OrderBy="" Condition="(oUpdateLog.DateCreated &amp;gt;= '''
          || p_last_load_time
          || ''')" ColumnInfo="1" /&gt;</XObject.m_element></xQueryRequest></QueryUpdateLogRecords></s:Body></s:Envelope>'
          || CHR (13)
          || CHR (10)
          || '--uuid:e4c19840-745d-45b2-90ca-12d71be4cfd9+id=2--';
       l_http_req :=
          UTL_HTTP.begin_request (g_query_updatelog_records_url, 'POST', 'HTTP/1.1');
       UTL_HTTP.set_header (l_http_req, 'MIME-Version', '1.0');
       UTL_HTTP.set_header (
          l_http_req,
          'Content-Type',
          'multipart/related; type="application/xop+xml";start="<http://tempuri.org/0>";boundary="uuid:e4c19840-745d-45b2-90ca-12d71be4cfd9+id=2";start-info="application/soap+xml"');
       UTL_HTTP.set_header (
          l_http_req,
          'VsDebuggerCausalityData',
          'uIDPo5F/qXRc4YJImqB6Ard30cQAAAAAAjIXinpIVUulXLJOsSG7yyv7Lf2yHgpHlIxvc6oeqaAACQAA');
       UTL_HTTP.set_header (l_http_req, 'Content-Length', LENGTH (l_request));
       UTL_HTTP.write_text (l_http_req, l_request);
       DBMS_LOB.createtemporary (l_response, FALSE);
       l_http_resp := UTL_HTTP.get_response (l_http_req);
       BEGIN
          LOOP
             UTL_HTTP.read_text (l_http_resp, v_buffer, 32767);
             DBMS_OUTPUT.put_line (v_buffer);
             DBMS_LOB.writeappend (l_response, LENGTH (v_buffer), v_buffer);
          END LOOP;
       EXCEPTION
          WHEN UTL_HTTP.end_of_body
          THEN
             NULL;
       END;
       UTL_HTTP.end_response (l_http_resp);
       l_response := DBMS_XMLGEN.CONVERT (xmldata => l_response, flag => 1);
       -- Extract the soap envelope from clob. Issue because of the 32767 characters limitation
       SELECT    DBMS_LOB.SUBSTR (                  -- Problem here
                    l_response,
                      INSTR (l_response, 's:Envelope>', -1)
                    - INSTR (l_response, '<s:Envelope'),
                    INSTR (l_response, '<s:Envelope'))
              || 's:Envelope>'
         INTO l_response
         FROM DUAL;
          -- Parse the xml. Works fine once the above issue is fixed
          SELECT xt.nextstart
            INTO n_next_start_record
            FROM XMLTABLE (
                    xmlnamespaces ('http://www.w3.org/2003/05/soap-envelope' AS "s",
                                   'http://tempuri.org/' AS "data"),
                    's:Envelope/s:Body/data:QueryUpdateLogRecordsResponse/data:QueryUpdateLogRecordsResult/XObject.m_element/QueryResult'
                    PASSING xmltype (l_response)
                    COLUMNS nextstart NUMBER (20) PATH '@NextStart') xt;
       DBMS_OUTPUT.put_line ('NextStart ' || n_next_start_record);
    END;

  • How to move the data of a table from sqlplus to XML file

    Hi,
    Could you pls guide me how to move the data of a table from sqlplus to XML file.
    i want to do it from sqlplus rather than toad.pls help
    Thanks

    Oh..I'm in 9i.
    Try this out..and let me know.
    DECLARE
    CTX DBMS_XMLGEN.CTXHANDLE ;
    XML CLOB ;
    F UTL_FILE.FILE_TYPE;
    XMLC VARCHAR2(32767);
    BEGIN
    CTX := DBMS_XMLGEN.NEWCONTEXT('SELECT * FROM department1 ') ;
    XML := DBMS_XMLGEN.GETXML(CTX) ;
    XMLC:=TO_CHAR(XML);
    SHOW_ENVELOPE(XMLC);
    F := UTL_FILE.FOPEN('ATTACH_FILES','DEPT.XML', 'W');
    UTL_FILE.PUT_LINE(F,XML);
    UTL_FILE.FCLOSE(F);
    END ;
    Good luck!!!
    Bhagat
    null                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

  • How to populate target directory from the source XML in Receiver File Adap?

    Hi All,
    Our scenario is IDoc - XI -(Receiver File adapter) File. Is it possible to populate complete "Target Directory" from the source XML message??
    Lets say we added field to maintain target directory in Idoc structure and some how populated value to it, then grab this target directory from the IDoc-XML and pass in Comunication Channel. I think its possible through Variable Substitation ...just want to make sure and if sombody has done the similar scenario their inputs would be great.
    Thanx
    Navin

    Hi,
    Please see the belowlinks
    /people/jayakrishnan.nair/blog/2005/06/28/dynamic-file-namexslt-mapping-with-java-enhancement-using-xi-30-sp12-part-ii
    /people/sriram.vasudevan3/blog/2005/11/21/effective-xsl-for-multimapping-getting-source-filenames-in-legacy-legacy-scenarios
    Re: Dynamic  File Name for Receiver File Adapter
    Variable Substitution
    http://help.sap.com/saphelp_nw04/helpdata/en/bc/bb79d6061007419a081e58cbeaaf28/content.htm
    http://help.sap.com/saphelp_nw04/helpdata/en/bc/bb79d6061007419a081e58cbeaaf28/content.htm
    try with adapter specific
    Example code...
    String newfilename="";
    DynamicConfiguration conf = (DynamicConfiguration) container.getTransformationParameters().get(StreamTransformationConstants.DYNAMIC_CONFIGURATION);
    DynamicConfigurationKey key = DynamicConfigurationKey.create("http://sap.com/xi/XI/System/File","FileName");
    // Get Sourcefilename
    String oldfilename=conf.get(key);
    //extract first 3 chars of source filename
    newfilename=oldfilename.substring(0,2);
    //get the date
    java.text.SimpleDateFormat dateformat = new java.text.SimpleDateFormat( "yyyyMMdd" );
    dateformat.format( new java.util.Date() );
    //append sourcedateL
    newfilename=newfilenamedateformat"L";
    // determine if prod/ dev / qa
    map = container.getTransformationParameters();
    senderService = (String) map.get("SenderService");
    if(senderServcie.equald("Prod"){
    newfilename=newfilename+"P";
    // change to new file name
    conf.put(key, newfilename+".tmp");
    Change it according to your requirement
    Regards
    Chilla..

  • Change over from a simple Xml call to a rpc-Http call ....

    Hi there,
    I need to change over from a simple Xml call:
    <mx:XML id="urlsGeneral" source="http://www.mySite.com//.../AFS.xml"/>
    to a rpc-Http call which is updating the readout if Xml is changed at any time.
    I forgot to mention the most important item yet a very simple one: I need this only to be displayed in a title etc, and NOT a datagrid or else example below.
    title="{urlsGeneral.urlGeneral.(@name==0).age}
    I tried a lot today, but just can't get it right as the id="urlsGeneral" is always the problem.
    Any help would be appriciated !!! Thanks in advance. regards aktell2007
    <urlsGeneral>
    <urlGeneral>
    <name>Jim</name>
    <age>32</age>
    </urlGeneral>
    <urlGeneral>
    <name>Jim</name>
    <age>32</age>
    </urlGeneral>
    </urlsGeneral>
    Another call:
    <mx:Script>
    <![CDATA[
    import mx.collections.ArrayCollection;
    import mx.rpc.events.ResultEvent;
    public var myData:ArrayCollection;
    protected function myHttpService_resultHandler(event:ResultEvent):void {
    myData = event.result.urlsGeneral.urlGeneral;
    ]]>
    </mx:Script>
    <mx:HTTPService
    id="myHttpService"
    url="http://www.mySite.com//..../AFS.xml"
    result="myHttpService_resultHandler(event)"/>
    Preferable I wanted something like this to work:
    <mx:Script>
    <![CDATA[
    import mx.rpc.events.FaultEvent;
    import mx.managers.CursorManager;
    import mx.controls.Alert;
    import mx.rpc.events.ResultEvent;
    import mx.rpc.xml.SimpleXMLDecoder;
    // Don't use here as it is already used in .swc !
    /* import mx.rpc.http.HTTPService; */
    private var myHTTP:HTTPService;
    private function initConfigCall():void {
    myHTTP = new HTTPService();
    myHTTP.url = "com/assets/data/changesAppAIRPIOne001.xml";
    myHTTP.send();
    myHTTP.resultFormat = "xml";
    myHTTP.addEventListener(ResultEvent.RESULT, resultHandler);
    myHTTP.addEventListener(FaultEvent.FAULT, faultHandler);
    CursorManager.setBusyCursor();
    private function resultHandler(evt:ResultEvent):void {
    var xmlStr:String = evt.result.toString();
    var xmlDoc:XMLDocument = new XMLDocument(xmlStr);
    var decoder:SimpleXMLDecoder = new SimpleXMLDecoder(true);
    var resultObj:Object = decoder.decodeXML(xmlDoc);
    // Removed [0] on single node !
    appUpdateAvl.text = resultObj.application.configApp.appNewUpDate;
    appLastChanged.text = resultObj.application.configApp.appLastChanged;
    appChangedSections.text = resultObj.application.configApp.appChangedSections;
    CursorManager.removeBusyCursor();
    myHTTP.disconnect();
    private function faultHandler(event:mx.rpc.events.FaultEvent):void {
    var faultInfo:String="fault details: "+event.fault.faultDetail+"\n\n";
    faultInfo+="fault faultString: "+event.fault.faultString+"\n\n";
    mx.controls.Alert.show(faultInfo,"Fault Information");
    var eventInfo:String="event target: "+event.target+"\n\n";
    eventInfo+="event type: "+event.type+"\n\n";
    mx.controls.Alert.show(eventInfo,"Event Information");
    CursorManager.removeBusyCursor();
    myHTTP.disconnect();
    ]]>
    </mx:Script>

    Hi again,
    These days there are more quetions than answeres on any forum, and very seldom anybody shares the answer if they lucky enough to work it out so here is my answer for the above question
    Change over from a simple Xml call to a rpc-Http call ....
    I had it all along as a commend noted: // Removed [0] on single node !
    So instead of title="{urlsGeneral.urlGeneral.(@name==0).age} it would be now title="{resultObj.urlsGeneral.urlGeneral.[0].age} and now it works perfectly well. I hope that one or the other of you can use the answer and the code !!! regards aktell2007

  • Problems in XML to text

    I'm using Xalan to perform XSLT from XML to text file.
    As I need to format the text file with carriage return at the end of every string pattern produced, I declare a variable in my XSL as a new-line character.
    It works fine if I use a XSLT GUI tool (based on MS Parser SDK) but not using Xalan parser in my Java program. Somehow the newline charache
    Here is a portion of my sample Java program:
    TransformerFactory tFactory = TransformerFactory.newInstance();
    Transformer oTransformer = tFactory.newTransformer(new StreamSource(new File("C:\\actions\\transform\\", sXSLFilename)));
    StreamSource oXMLSource = new StreamSource(
    new StringReader(new String(aData)), "C:\\xslt\\OFT_COMP.dtd");
    StreamResult oResult = new StreamResult(oStrWriter);
    oTransformer.setOutputProperty(OutputKeys.METHOD, "text");
    oTransformer.setOutputProperty(OutputKeys.ENCODING, "ISO-8859-1");
    oTransformer.setOutputProperty(OutputKeys.INDENT, "no");
    oTransformer.transform(oXMLSource, oResult);
    aOutputXMLData = oStrWriter.toString().getBytes();
    Does anybody know what's the problem? Or any other suggestions on performing this kind of "newline" separator?
    Thanks in advance.

    easiest just use a stylesheet to transform the xml to text... and use:
    <xsl:text>&#10;</xsl:text>
    for carriage return

  • How to transform with xquery from CDATA to XML

    Hi everyone
    I want to transform from CDATA to XML and I don´t know how to do.
    anyone can help me please?
    I'm using OSB OEPE PS3, I have artifacts: person.PROXY, person.BIZ, BIZ-Person.WSDL, PROXY-Person.WSDL, Person-response.xq and Person.xsd.
    I Use Message Flow Within Route, Routing (Request and Response Actions)
    To Request Xquery transformation is ok, for Response Action I need help. I receive a String and inside with CDATA:
    +<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">+
    +<soapenv:Body>+
    +<executeResponse soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">+
    +<executeReturn xsi:type="xsd:string">+
    +*<![CDATA[<example-data rows="1"><person><id>123</id><name>JHON</name><surname>MAGNESS</surname>+*
    *+<code>123456789V</code></person></example-data>]]>+*
    +</executeReturn>+
    +</executeResponse>+
    +</soapenv:Body>+
    +</soapenv:Envelope>+
    I want to map from CDATA to XML like this (Person.xsd):
    <xs:schema xmlns="http://www.domain.com/XSD/Persons" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:ns1="http://www.domain.com/XSD/ABCD" targetNamespace="http://www.domain.com/XSD/Persons" elementFormDefault="qualified" attributeFormDefault="unqualified">
    <xs:import namespace="http://www.domain.com/XSD/ABCD"
    <xs:complexType name="Persons">
              <xs:sequence>++
                   <xs:element name="id" type="xs:string"/>
                   <xs:element name="surname1" type="xs:string" minOccurs="0"/>
                   <xs:element name="surname2" type="xs:string" minOccurs="0"/>
                   <xs:element name="name" type="xs:string" minOccurs="0"/>
                   <xs:element name="code" type="xs:string"/>
              </xs:sequence>
         </xs:complexType>
    Edited by: user10070593 on Aug 29, 2012 10:58 PM
    Edited by: user10070593 on Aug 29, 2012 10:58 PM
    Edited by: user10070593 on Aug 29, 2012 11:00 PM

    Hey Patrick / Vlad thank you very much for your help :)
    I have solved it like this:
    Within my proxy in Message Flow (*using Routing -- Route -- Response Action*)
    I'm using the elements Assing and Replace
    In Assing element (expression: Person-response.xq, variable: varBStoPS)
    In Replace element (xpath : executeResponse/executeReturn/text() , in Variable: body, expression:
    *$varBStoPS*)
    Now, within Person-Response.xq , I am using the parameter: *$anyType1*, but this is a string, I don´t know to use a FOR loop in Xquery, as I can apply it to the XML mapping (Person.xsd)?, Knowing I get the list:
    *+<example-data rows="1"><person><id>123</id><name>JHON</name><surname>MAGNESS</surname>+*
    *+<code>123456789V</code></person></example-data>+*
    Person.xsd:
    <xs:element name="processResponse">
              <xs:complexType>
                   <xs:sequence>
                        <xs:element ref="ns1:HeaderMsgABCD"/>
                        <xs:element name="bodyResponse">
                             <xs:complexType>
                                  <xs:sequence>
                                       <xs:element name="PersonsCollection">
                                            <xs:complexType>
                                                 <xs:sequence>
              <xs:element name="Persons" type="Persons" minOccurs="0" maxOccurs="unbounded"/>
                                                 </xs:sequence>
                                            </xs:complexType>
                                       </xs:element>
                                  </xs:sequence>
                             </xs:complexType>
                        </xs:element>
                        <xs:element ref="ns1:ErrorMsgABCD"/>
                   </xs:sequence>
              </xs:complexType>
         </xs:element>
    Person-response.xq:
    xquery version "1.0" encoding "Cp1252";
    (:: pragma parameter="$anyType1" type="xs:anyType" ::)
    (:: pragma bea:global-element-return element="ns0:processResponse" location="../XSD/ Person-response.xq" ::)
    declare namespace xf = "http://tempuri.org/oracle/xquery/Person-response/";
    declare namespace ns1 = "http://www.domain.com/XSD/ABCD";
    declare namespace ns0 = " http://www.domain.com/XSD/Persons";
    declare function xf:XQ_SEARCH_PERSONS_RESPONSE($anyType1 as element(*))
    as element(ns0:processResponse) {
    <ns0:processResponse>
    <ns0:bodyResponse>
         <ns0:PersonsCollection>
    <ns0:Persons>
    <ns0:id>{ data(0) }</ns0:id>
    <ns0:surname1>{ data(0) }</ns0:surname1>
    <ns0:surname2>{ data(0) }</ns0:surname2>
    <ns0:name>{ data(0) }</ns0:name>
    <ns0:code>{ data(0) }</ns0:code>
              </ns0:Persons>
         </ns0:PersonsCollection>
    </ns0:bodyResponse>
    </ns0:processResponse>
    declare variable $anyType1 as element(*) external;
    xf:XQ_SEARCH_PERSONS_RESPONSE ($anyType1)
    Edited by: chromosoma on Aug 30, 2012 12:47 PM
    Edited by: chromosoma on Aug 30, 2012 12:50 PM
    Edited by: chromosoma on Aug 30, 2012 1:00 PM

  • How to merge multiple XML or Text documents into 1 Word Document?

    Hi all,
    We're looking for a way to merge multiple XML or Text documents into 1 Word document.
    All the XML or Text documents are oriented as a 'Paragraph', meaning smaller pieces of text.
    By selecting some of these XML documents, the system should be able to create a new Word document with all the selected text paragraphs included.
    The Word document can then be edited for applying a correct lay-out and the document is ready.
    Actually, we are trying to do some kind of 'mail merge' but with multiple XML or Text documents!
    Has anybody an idea whether something exist already or give us a direction how to proceed?
    Thanks in advance,
    Pascal Decock

    You use Assembler for this purpose.
    1) Assembler can be accessed through LC Java API. See http://help.adobe.com/en_US/enterpriseplatform/10.0/programLC/help/index.html
    API Quick Starts (Code Examples) > Assembler Service API Quick Starts
    2) Last week I posted on generating and merging PDF's from PostScript. Take a look at the assembly service instance in the .lca. Assembler uses DDX (Document Description XML) to describe document construction. NOTE the .lca was developed with ES 3 (aka ADEP). The .lca It contains the most basic DDX.
    <?xml version="1.0" encoding="UTF-8"?>
    <DDX xmlns="http://ns.adobe.com/DDX/1.0/">
    <PDF result="out.pdf">
      <PDF source="inDoc1"/>
      <PDF source="inDoc2"/>
    </PDF>
    </DDX>
    http://forums.adobe.com/message/4019760#4019760
    DDX Reference at http://help.adobe.com/en_US/livecycle/9.0/ddxRef.pdf
    Steve

  • Converting data from a clob to RTF in Oracle Reports

    Hello
    I have created a table in my database and one of the columns is a CLOB , data in the CLOB i've copied from a word document .
    I've created a report that has to retrieve the value from the CLOB in RTF output, the problem is that the output is in binary format .
    If someone can help me i relly appreciate.
    Another thing , i tried saving a doc file into a html file , opening the html file with a notepad , and the content of the notepad putting into a CLOB , after putting in the text into the first tab 'text' i've checked the html tab and it appears to be ok in plsql dev,in report I used on the field properties that contains html tags = yes . But the output was not the same as in the CLOB tab html , it had other formatting and looked totally different , i'm almost sure that the problem is from tags , but modifying them takes too much time and I have too many reports that i must make in word and i cannot work on modifying the tags.
    PS: I use Oracle Reports 6i
    Anyone knows an alternative method for putting data from a doc document into a clob and making a query in reports that retrieves the value of the clob , and the output has to be rtf or pdf ?
    Thank you in advance
    Edited by: user7274785 on 05.10.2009 00:42

    Duplicate question.
    unload data to a csv in unix oracle 11g

  • XML Loaded Text Inconsistently Displays Apostrophe

    i have a number of dynamic text fields, all of which have
    text loaded from their respective xml files.
    one of the menu items includes an apostrophe. that apostrophe
    shows up in one area of the site but not in another where it is
    replaced by &apos; .
    these two sections are identical. both dynamic text boxes
    with xml loaded text. one works one doesn't.
    i've double checked everything. everything is embedded, i
    have no idea what the problem is.
    any ideas?
    if you want to see what i'm talking about go
    here and select WORK. JAMIES
    ORGANIC TREATS has no apostrophe because i took it out - it gets
    converted to &apos; in this location. but if you select JAMIES
    ORGANIC TREATS the name pops up in the new section correctly WITH
    the apostrophe.
    they are separate text fields with separate xml files but all
    of them are treated the same.
    Flash CS3 Flash Player 8 AS2
    Mac 10.5

    *SOLVED*
    i went back in and enabled html on the text box and changed
    all of the .text to .htmlTxt and it worked. also added the cdata
    tags.
    but any idea why the apostrophe works correctly in the other
    instance?

  • Removing Characterset from a Clob

    Hi guys,
    I have a clob of xmltype data, I was wondering, what is the best way to 'sanitize' the clob for any illegal xml characters? For example, I keep hitting the degree symbol and it will bust my document.
    Thanks in advance!

    I keep hitting the degree symbol and it will bust my document.The degree symbol (and many other <i>uncommon</i> characters) don't impose any difficulty with xml:
    SQL> with t as (
      2    select '1é23!abc@45°6' str from dual union all
      3    select '1é23!abc@45°6&lt;&gt;' str from dual
      4  )
      5  --
      6  --
      7  select xmlelement(e, str) xml from t
      8  /
    XML
    <E>1é23!abc@45°6</E>
    <E>1é23!abc@45°6&#38;lt;&#38;gt;</E>
    SQL>what is your issue exactly?
    Edited by: michaels2 on Jul 23, 2010 1:34 PM

  • How to retrieve elements from 3 different xml file in one url

    Hi all,
    Could anyone please let me how can we retrieve elements from 3 different xml file in one url?
    i just can only do it with one file only, any help would very appreciate.
    Thank in advance
    Jim

    Hi Philip
    Thanks for replying me.
    I tried on that way, In my mdx query i am using one slice attribute (i.e [Customer].[Gender].allmembers) in rows so getting error "The  Hierarchy already appears in Axis1".
    SELECT
    {[Measures].[Internet Sales Amount] } ON 0,
    NON EMPTY
    {[Customer].[Gender].allmembers } ON 1 -- Used
    FROM
    [Adventure Works]
    WHERE
    [Customer].[Gender].&[M]
    ,[Product].[Size Range].[(All)]
    ,[Customer].[Country].[All Customers]
    [Customer].[Gender].[All Customers]
    ,[Product].[Size Range].&[XL]
    ,[Customer].[Country].[All Customers]
    [Customer].[Gender].[All Customers]
    ,[Product].[Size Range].[(All)]
    ,[Customer].[Country].&[Australia]
    Can you provide alternate ways to get resolved.
    Thanks in advance

Maybe you are looking for

  • What are "theme" . . . "design from template" files in this template?

    I've been working on revising the template.dwt (from Codify Design), and it's going reasonably well with help from these forums . However, after getting the template pretty well worked over, I happened to open two files called "theme_02_design" and "

  • Lost itunes library

    I recently had a virus on my computer and had to reinstall the operating system. I did not have my library backed up (stupid). Is there a way to transfer my music from ipods to itunes library?

  • Is it possible to split a song in 2 as a whole, and insert a new part in the middle?

    Im recording a song, and just realized id like to have an 8 bar drum part in the middle of it, before it kicks in to the other part... Is it possible to do this or do I have to cut and paste each track indivually?  There are 27 so it would be pretty

  • Alias could not be opened/Name or password is incorrect (Vista- OSX woes)

    I recently bought a Macbook (my first Mac, loving it by the way) so I'm trying to find a way to access all my media files on my windows PC over my wireless network. I've enabled sharing on both my Windows and my Mac and using my Windows Laptop to cop

  • Change layout icon FBL3N/FBL5N- not active

    Hi Experts, I use a layout to view reports using transaction FBL3N/FBL5N. When I try to add some more fields using the chnage layout icon, the same is inactive for me and I cannot click on the icon. Please advise. Regards.