conditional display of XML tag

Hello

IAM using Oracle 11 g.

While that generate XML based on the value of data I need different XML tag. How it is possible.
but the value must be zero. but we the tag is different.

For example
If the column contains data such as'm ' and 'F'
The tag must be < male > < / man > if data are'm ' of Male and
< female > < / woman > if data are 'F' of the female. If there are data zero then the tag should not be display


Is it possible then that the extraction of data from SQL and XML data conversion

Concerning
Oracle user

Published by: user9080289 on December 15, 2011 21:58

Published by: user9080289 on December 15, 2011 21:59

something

case when your_column = 'F' then xmlelement("Female", your_column )
     when your_column  = 'M' then xmlelement("Male", your_column )
end

Tags: Database

Similar Questions

  • DataGrid: How nested display or multi level xml tags

    Hello

    I am currently looking to see, for example, the following in a datagrid - XML

    <? XML version = "1.0" encoding = "utf-8"? >

    <? XML version = "1.0" encoding = "utf-8"? >

    < projects paging = "10" currentPage = "1" >

    < project sno = "1" name = "A" >

    Yes < followed > < / follow-up >

    < lastModified > 15/08/2010 < / lastModified >

    < description > Project Tracker - follow all the personal and freelance projects here. < / description >

    < tasks >

    < task id = "1" > XML - complete the XML < / task >

    < job id = "2" Flex - create the example of hello world < / task >

    < task id = "3" > XML - complete the XML < / task >

    < job id = '4' Flex - create the example of hello world < / task >

    < / tasks >

    < total value received '40000' = totalAmount = "140000" > 1,00,000 < / value totalAmount >

    < / project >

    < project sno = "2" name = 'A' >

    < currentStatus > Open1 < / currentStatus >

    < track > no < / follow-up >

    < lastModified > 15/08/2010 < / lastModified >

    < description > Project Tracker - follow all the personal and freelance projects here. < / description >

    < tasks >

    < job id = '1' status 'pending' = > XML - complete the XML < / task >

    < job id = '2' status 'pending' = > Flex - create the example of hello world < / task >

    < / tasks >

    < total value received '40000' = totalAmount = "140000" > 1,00,000 < / value totalAmount >

    < / project >

    < / project >

    The major problem that I face is with the display of the tag tags of tasks, which are tasks inside and can say a second nesting level after the first 'project' tag inside projects, I can easily view other tags inside the datagridcolumn using the dataField attribute, but just no idea how to handle the tag tasks having even named tags task inside as his children.

    I searched a lot of content on the internet and in books but just not finding anything relevant to this case.

    Any help will be much appreciated.

    Thanks in advance,

    Anmol Saraf

    Tasks.Task must be a XMLList and Repeater should be able to handle this.

    I would say looking more closely why that doesn't work.

  • RTF model: If condition to test the XML tag exists only on the current XML node

    Hello

    I have a RICH model based on an XML file as follows:
    + < invoice > +.
    + < InvoiceNum >... < / InvoiceNum > +.
    + < ShipAddress >... < / ShipAddress > +.
    + < order > +.
    + < OrderNum >... < / OrderNum > +.
    + < ShipAddress >... < / ShipAddress > +.
    + < / order > +.
    + < order > +.
    + < OrderNum >... < / OrderNum > +.
    + < ShipAddress >... < / ShipAddress > +.
    + < / order > +.
    + < / invoice > +.

    As you can see, the tag * < ShipAddress > * there are two
    -Sub * < invoice > * = > global shipping address
    -Sub * < Order > * = > shipping address to you for Sales Order

    In an XML file, I can only have < ShipAddress > at a certain level, for example
    -the tag * < invoice > < ShipAddress > * appear in XML that if we have a unique address for the invoice
    -the tag * < order > < ShipAddress > * appear in XML that if we have more than one address for the invoice

    Logically, in my RTF model, I want to print the address of delivery at the level if one header tag * < invoice > < ShipAddress > * is in XML format.
    I tried a lot of syntax If but none works according to the needs:
    + <? If.: / ShipAddress? > + = > always returns FALSE
    + <? If: / / ShipAddress? > = > returns TRUE when < order > < ShipAddress > exists
    + <? If: ShipAddress? > = > returns TRUE when < order > < ShipAddress > exists

    The only syntax that seems to work is:
    + <? If: / / Bill/ShipAddress? > +.
    But I prefer not not hardocde the name of the top-level tag.

    Question:
    What si syntax to test the existence of a XML tag only in the current node (recursively)?

    Thanks in advance for helping me.
    K.Helali

    ShipAddress for the invoice

    
    

    ShipAddress order

    
    
  • Missing XML tags

    Hello world

    I'm working on a report of the invoice, for which changes xml based on the type of Bill.
    For example, if it is a deposit invoice, I will have the XML as follows:

    <? invoice? >
    <? FEATURES of? >
    <? SERVICES? >
    <? AR_ITEMS? >
    - - - - -
    - - - - -
    <? / AR_ITEMS? >
    <? / SERVICES? >
    <? FEATURES of? >
    <? / invoice? >

    If this is a bill for the Subscriber, I get the XML as follows:


    <? invoice? >
    <? FEATURES of? >
    <? SERVICES? >
    <? AR_ITEMS? >
    - - - - -
    - - - - -
    <? / AR_ITEMS? >
    <? OTHER_ITEMS? >
    - - - - -- - -
    - - - - -- - -
    <? / OTHER_ITEMS? >
    <? / SERVICES? >
    <? FEATURES of? >
    <? / invoice? >

    Now, I need to use the same for both types of bills rtf model. The problem is, when it's a "deposit invoice", there will be no + <? OTHER_ITEMS? > + tag in the XML of entry.
    But there are certain values that must be reported to the + <? OTHER_ITEMS? > + tag when it's a "Bill of the Subscriber. Using variables to store the values of the + <? OTHER_ITEMS? > + tag and + <? AR_ITEMS? > + tag and to the Addition of these values and display in the report for the invoice to the Subscriber.
    But, when it was a XML for the 'deposit invoice', it is throwing an error because there is no + <? OTHER_ITEMS? > + tag. And I need not show that the values of + <? AR_ITEMS? > + tag.

    Hope am able to explain my problem properly. Someone help me please, on how to solve this problem.

    Thank you very much in advance.
    Imtiaz.

    you need to consider the condition below how we check if condition based on the xml tag.

    in your situation, try the last type that you don't have tag xml
    **
    --*
    --*
    **

    Value of this XML in the XML tag and it has a value that is not NULL
    for ex:
    123

    Suppose you want to give a condition to check not null similar to what we bring in PL/SQL
    The value IS NOT NULL IF and THEN
    ---
    ---
    END IF;
    Syntax of BI Publisher for this is,


    --
    --

    2. value of this XML in the XML tag, but it doesn't have a NULL value.
    for ex:

    (GOLD)

    Now, you want to give a null check condition similar to that we bring in PL/SQL
    IF the value is NULL, THEN
    --
    --
    END IF;
    Syntax of BI Publisher for this is,

    --
    --

    3. XML tag is not present in the XML data, and therefore there is no value.
    Now you want to give a condition to check the existence of the tag in the XML data. Here is the BI Publisher syntax for this,

    --
    --

    and=" "="" xml_tag_name=""?>
  • Cannot delete the XML tag

    Hi all! Working in InD CS6 in Windows 7.

    I have a XML element in a document that I can't do anything with and who does not appear to be associated with what in the file of the InD. The red line is pointing to it on the Panel Structure in the image below. Note the X through its icon.

    ErrantXMLElement.JPG

    The XML is added to the InD file by mapping tags to styles using the Load... button on the dialog box map tags to Styles and 'import' of another document of the InD.

    When right clicking this item in the Structure of Panel and selecting go to point the current selection goes, but then nothing else happens. Or to delete this in the Panel of Structures . I had a similar problem, a bit a go where I somehow finished with elements in the XML file that were not associated with what anyone in the document. Had those text display in the Structure Panel after the name as shown above, but, even once, go at them will not anywhere. I hadn't studied at the time because I could simply remove it from the structure.

    With this element, however, I can't get rid of it without marking not any frame.

    So, I guess I really questions. It's this thing! How the hell he get there? And is there a better way to remove it rather than not tagging any of the frame and have to re - mark all content.

    EDIT: Just found out that using the trash on the pallet Structure to remove the parent of the problematic element, indeed, removes as problematic. Before him, I was just not marking the parent who has transferred only the problem child (like these word games) for the previous parent.

    Thanks for reading this way-too-long-post.

    All the best,

    Ken

    OK (he said with a blush to cheeks) I get noticed something in common, I didn't before posting.

    Page to which cchimi kindly provided a link described icon as a part empty, and it is attached to an empty block. However, it is not only an empty block.

    What happened in our file, is that the script containing the tag with an anchor marker tag xml that InD apparently do not like much. Type of logic, really.

    Now, I may be cracking, but with a single instance of the element of 'bad' I thought THAT I could see the empty element in the story discovers with the anchor to a few characters on. I selected the anchor and dragged back between the start and end code and icon of the item has changed and he returned 'alive', I was able to handle it. For most other troublesome elements, however, sinpy AND marking a marker of the anchor, the XML tag does NOT display in story mode. The element gets the empty icon when you simply tag the anchor marker, in this case it is an anchor for a rule.

    Hope this might help someone, someday.

    Thanks again for reading.

  • Wandering XML tag

    Hi all! Working in InD CS6 in Windows 7.

    I have a XML element in a document that I can't do anything with and who does not appear to be associated with what in the file of the InD. The red line is pointing to it on the Panel Structure in the image below. Note the X through its icon.

    ErrantXMLElement.JPG

    The XML is added to the InD file by mapping tags to styles using the Load... button on the dialog box map tags to Styles and 'import' of another document of the InD.

    When right clicking this item in the Structure of Panel and selecting go to point the current selection goes, but then nothing else happens. Or to delete this in the Panel of Structures . I had a similar problem, a bit a go where I somehow finished with elements in the XML file that were not associated with what anyone in the document. Had those text display in the Structure Panel after the name as shown above, but, even once, go at them will not anywhere. I hadn't studied at the time because I could simply remove it from the structure.

    With this element, however, I can't get rid of it without marking not any frame. I have a script routine that updates the XML attributes based on the style (s) applied to them. This element, but causes a script script error trying to access to the. Text (1), because there is not, I guess. The script goes through all the XML elements in order to open the Structure and use. Select the item to select an error occurs. But that's ALL!

    So, I guess I really questions. It's this thing! How the hell he get there? And can I do in scripts for "see" it as one element is wandering?

    Thanks for reading this way-too-long-post.

    All the best,

    Ken

    OK (he said with a blush to cheeks) I get noticed something in common, I didn't before posting.

    Page to which cchimi kindly provided a link described icon as a part empty, and it is attached to an empty block. However, it is not only an empty block.

    What happened in our file, is that the script containing the tag with an anchor marker tag xml that InD apparently do not like much. Type of logic, really.

    Now, I may be cracking, but with a single instance of the element of 'bad' I thought THAT I could see the empty element in the story discovers with the anchor to a few characters on. I selected the anchor and dragged back between the start and end code and icon of the item has changed and he returned 'alive', I was able to handle it. For most other troublesome elements, however, sinpy AND marking a marker of the anchor, the XML tag does NOT display in story mode. The element gets the empty icon when you simply tag the anchor marker, in this case it is an anchor for a rule.

    Hope this might help someone, someday.

    Thanks again for reading.

  • Cannot display the page XML cannot display the XML input using the XSL stylesheet

    Hi gurus of the Oracle,.

    I got this error... .once I submitted the demand shows warning... I opened exit it shows error below... I do not understand how to fix this error... Please help me... This is the CODE of PROCEDURE STORED PL/SQ L...

    The XML page cannot be displayed
    Cannot view XML input using XSL style sheet. Fix the error and then click the Refresh button, or try again later.


    --------------------------------------------------------------------------------

    A semi colon was expected. Error during processing of the resources ' http://orappsus64.tsindia.in:8009/OA_CGI/FNDWRR.exe?temp_id...

    COGNOS Quintiles/IT/J & J < CP_PROJECT > < / CP_PROJECT >
    ----------------------------^
    n-left: 1em; "text-indent:-2em" > < GL_MAIN_PERIOD > Jun-12 < / GL_MAIN_PERIOD >
    < TOTAL_REVENUE > 4026.14 < / TOTAL_REVENUE >
    < GL_PERIOD > Jun-12 < / GL_PERIOD >
    < / G_TOTAL_REVENUE_CAT >

    -------------------------------------------------------

    THIS IS MY LOG FILE
    ----------------------------------------------------------
    [01/10/12 10:44:26] [main] From service GSF with simultaneous process id is 157635.
    [01/10/12 10:44:26] [main] Initialization parameters: oracle.apps.fnd.cp.opp.OPPServiceThread:2:0:max_threads = 5
    [01/10/12 10:44:26] [Thread-22] Wire service commissioning.
    [01/10/12 10:44:26] [Thread 23] Wire service commissioning.
    [01/10/12 10:52:33] [OPPServiceThread1] Post-processing application 1296337.
    [01/10/12 10:52:33] [157635:RT1296337] The execution of the actions of post-processing for request 1296337.
    [01/10/12 10:52:34] [157635:RT1296337] From XML Publisher postprocessing action.
    [01/10/12 10:52:34] [157635:RT1296337]
    Model code: XXTGSCPR004
    Model app: PA
    Language: en
    Territory: U.S.
    Output type: EXCEL
    [100112_105234216] [] [EXCEPTION] [DEBUG] - set preferences PreferenceStore-
    [100112_105234216] [] [EXCEPTION] [DEBUG] - environment variables stored in EnvironmentStore-
    [100112_105234216] [[EXCEPTION] [DEBUG] [FND_JDBC_IDLE_THRESHOLD.] LOW]:-[1]
    [100112_105234216] [] [EXCEPTION] [DEBUG] [SECURITY_GROUP_ID]: [0]
    [100112_105234216] [] [EXCEPTION] [DEBUG] [FND_JDBC_BUFFER_DECAY_INTERVAL]: [300]
    [100112_105234217] [] [EXCEPTION] [DEBUG] [NLS_CHARACTERSET]: [US7ASCII]
    [100112_105234217] [] [EXCEPTION] [DEBUG] [RESP_APPL_ID]:-[1]
    [100112_105234217] [] [EXCEPTION] [DEBUG] [NLS_LANGUAGE]: [AMERICAN]
    [100112_105234217] [] [EXCEPTION] [DEBUG] [FND_JDBC_BUFFER_MIN]: [1]
    [100112_105234217] [] [EXCEPTION] [DEBUG] [FND_JDBC_BUFFER_MAX]: [2]
    [100112_105234217] [] [EXCEPTION] [DEBUG] [NLS_NUMERIC_CHARACTERS]: [.,]
    [100112_105234217] [] [EXCEPTION] [DEBUG] [APPS_JDBC_URL]: [jdbc:oracle:thin: @(DESCRIPTION = (ADDRESS_LIST = (LOAD_BALANCE = YES) (FAILOVER = YES) (ADDRESS = (PROTOCOL = tcp)(HOST=orappsus64.tsindia.in) (PORT = 1530))) (CONNECT_DATA = (SID = clone)))]
    [100112_105234217] [] [EXCEPTION] [DEBUG] [RESP_ID]:-[1]
    [100112_105234217] [] [EXCEPTION] [DEBUG] [FND_MAX_JDBC_CONNECTIONS]: [500]
    [100112_105234217] [] [EXCEPTION] [DEBUG] [FND_JDBC_USABLE_CHECK]: [false]
    [100112_105234218] [] [EXCEPTION] [DEBUG] [USER_ID]:-[1]
    [100112_105234218] [] [EXCEPTION] [DEBUG] [NLS_TERRITORY]: [AMERICA]
    [100112_105234218] [] [EXCEPTION] [DEBUG] [FND_JDBC_PLSQL_RESET]: [false]
    [100112_105234218] [] [EXCEPTION] [DEBUG] [FND_JDBC_CONTEXT_CHECK]: [true]
    [100112_105234218] [] [EXCEPTION] [DEBUG] [NLS_DATE_FORMAT]: [DD-MON-RR]
    [100112_105234218] [] [EXCEPTION] [DEBUG] [FND_JDBC_BUFFER_DECAY_SIZE]: [5]
    [100112_105234218] [[EXCEPTION] [DEBUG] [FND_JDBC_IDLE_THRESHOLD.] HIGH]:-[1]
    [100112_105234218] [] [EXCEPTION] [DEBUG] [NLS_SORT]: [BINARY]
    [100112_105234218] [] [EXCEPTION] [DEBUG] [NLS_DATE_LANGUAGE]: [AMERICAN]
    [100112_105234218] [] [EXCEPTION] [DEBUG] [LOGIN_ID]:-[1]
    [100112_105234218] [] [EXCEPTION] [DEBUG] - properties stored in the Java System Properties-
    [100112_105234219] [] [EXCEPTION] [DEBUG] [APPLTMP]: [AP1/oracle/PROD01/inst/apps/clone_orappsus64/appltmp]
    [100112_105234219] [] [EXCEPTION] [DEBUG] [java.runtime.name]: [Java (TM) SE Runtime Environment]
    [100112_105234219] [EXCEPTION] [DEBUG] [sun.boot.library.path]:[AP1/oracle/PROD01/apps/tech_st/10.1.3/appsutil/jdk/jre/lib/i386]]
    [100112_105234219] [] [EXCEPTION] [DEBUG] [java.vm.version]: [11: 0 - b15]
    [100112_105234219] [] [EXCEPTION] [DEBUG] [OVERRIDE_DBC]: [true]
    [100112_105234219] [EXCEPTION] [DEBUG] [dbcfile]:[AP1/oracle/PROD01/inst/apps/clone_orappsus64/appl/fnd/12.0.0/secure/clone.dbc]]
    [100112_105234219] [] [EXCEPTION] [DEBUG] [java.vm.vendor]: [Sun Microsystems Inc..]
    [100112_105234219] [] [EXCEPTION] [DEBUG] [java.vendor.url]: [http://java.sun.com/]
    [100112_105234219] [[EXCEPTION] [DEBUG] [path.separator]]: [[:]
    [100112_105234219] [] [EXCEPTION] [DEBUG] [APPLCSF]: [AP1/oracle/PROD01/inst/apps/clone_orappsus64/papers/appl/conc]
    [100112_105234220] [] [EXCEPTION] [DEBUG] [java.vm.name]: [the server VM Java]
    [100112_105234220] [] [EXCEPTION] [DEBUG] [file.encoding.pkg]: [sun.io]
    [100112_105234220] [] [EXCEPTION] [DEBUG] [sun.java.launcher]: [SUN_STANDARD]
    [100112_105234220] [] [EXCEPTION] [DEBUG] [user.country]: [US]
    [100112_105234220] [] [EXCEPTION] [DEBUG] [sun.os.patch.level]: [unknown]
    [100112_105234220] [] [EXCEPTION] [DEBUG] [java.vm.specification.name]: [Java Virtual Machine specifications]
    [100112_105234220] [EXCEPTION] [DEBUG] [user.dir]:[AP1/oracle/PROD01/inst/apps/clone_orappsus64/logs/appl/conc/log]]
    [100112_105234220] [] [EXCEPTION] [DEBUG] [java.runtime.version]: [1.6.0_10 - b33]
    [100112_105234220] [] [EXCEPTION] [DEBUG] [CLIENT_PROCESSID]: [25943]
    [100112_105234220] [] [EXCEPTION] [DEBUG] [java.awt.graphicsenv]: [sun.awt.X11GraphicsEnvironment]
    [100112_105234220] [EXCEPTION] [DEBUG] [java.endorsed.dirs]:[AP1/oracle/PROD01/apps/tech_st/10.1.3/appsutil/jdk/jre/lib/endorsed]]
    [100112_105234221] [] [EXCEPTION] [DEBUG] [os.arch]: [i386]
    [100112_105234221] [EXCEPTION] [DEBUG] [JTFDBCFILE]:[AP1/oracle/PROD01/inst/apps/clone_orappsus64/appl/fnd/12.0.0/secure/clone.dbc]]
    [100112_105234221] [] [EXCEPTION] [DEBUG] [java.io.tmpdir]: [tmp]
    [100112_105234221] [] [EXCEPTION] [DEBUG] [line.separator]:]
    ]
    [100112_105234221] [] [EXCEPTION] [DEBUG] [java.vm.specification.vendor]: [Sun Microsystems Inc..]
    [100112_105234221] [] [EXCEPTION] [DEBUG] [os.name]: [Linux]
    [100112_105234221] [] [EXCEPTION] [DEBUG] [FND_JDBC_BUFFER_MIN]: [1]
    [100112_105234221] [] [EXCEPTION] [DEBUG] [CPID]: [157635]
    [100112_105234221] [] [EXCEPTION] [DEBUG] [sun.jnu.encoding]: [UTF-8]
    [100112_105234221] [] [EXCEPTION] [DEBUG] [oracle.apps.fnd.common.Pool.leak.mode]: [stderr: off]
    [100112_105234221] [][EXCEPTION] [DEBUG] [java.library.path]:[AP1/oracle/PROD01/apps/tech_st/10.1.3/appsutil/jdk/jre/lib/i386/server:/AP1/oracle/PROD01/apps/tech_st/10.1.3/appsutil/jdk/jre/lib/i386:/AP1/oracle/PROD01/apps/tech_st/10.1.3/appsutil/jdk/jre/.. /lib/i386:/AP1/oracle/PROD01/apps/tech_st/10.1.3/lib32:/AP1/oracle/PROD01/apps/tech_st/10.1.3/lib:/AP1/oracle/PROD01/apps/apps_st/appl/cz/12.0.0/bin:/AP1/oracle/PROD01/apps/apps_st/appl/iby/12.0.0/bin:/AP1/oracle/PROD01/apps/ apps_st/appl/PON/12.0.0/bin:/ap1/Oracle/PROD01/apps/apps_st/appl/SHT/12.0.0/lib:/usr/java/packages/lib/i386:/lib:/usr/lib]
    [100112_105234222] [] [EXCEPTION] [DEBUG] [java.specification.name]: [Java platform API specification]
    [100112_105234222] [] [EXCEPTION] [DEBUG] [java.class.version]: [50.0]
    [100112_105234222] [] [EXCEPTION] [DEBUG] [sun.management.compiler]: [HotSpot Tiered compilers]
    [100112_105234222] [] [EXCEPTION] [DEBUG] [queue_appl_id]: [0]
    [100112_105234222] [] [EXCEPTION] [DEBUG] [os.version]: [2.6.18 - 128.el5]
    [100112_105234222] [] [EXCEPTION] [DEBUG] [LONG_RUNNING_JVM]: [true]
    [100112_105234222] [] [EXCEPTION] [DEBUG] [user.home]: [home/applmgr01]
    [100112_105234222] [] [EXCEPTION] [DEBUG] [user.timezone]: [Asia/Kolkata]
    [100112_105234222] [] [EXCEPTION] [DEBUG] [java.awt.printerjob]: [sun.print.PSPrinterJob]
    [100112_105234222] [] [EXCEPTION] [DEBUG] [file.encoding]: [UTF-8]
    [100112_105234222] [] [EXCEPTION] [DEBUG] [java.specification.version]: [1.6]
    [100112_105234222] [] [EXCEPTION] [DEBUG] [CACHEMODE]: [PUBLISHED]
    [100112_105234222] [] [EXCEPTION] [DEBUG] [conc_queue_id]: [6269]
    [100112_105234222] [][EXCEPTION] [DEBUG] [java.class.path]:[AP1/oracle/PROD01/apps/tech_st/10.1.3/appsutil/jdk/lib/dt.jar:/AP1/oracle/PROD01/apps/tech_st/10.1.3/appsutil/jdk/lib/tools.jar:/AP1/oracle/PROD01/apps/tech_st/10.1.3/appsutil/jdk/jre/lib/rt.jar:/AP1/oracle/PROD01/apps/apps_st/comn/java/lib/appsborg2.zip:/AP1/oracle/PROD01/apps/apps_st/comn/java/classes]
    [100112_105234222] [] [EXCEPTION] [DEBUG] [user.name]: [applmgr01]
    [100112_105234222] [EXCEPTION] [DEBUG] [DBCFILE]:[AP1/oracle/PROD01/inst/apps/clone_orappsus64/appl/fnd/12.0.0/secure/clone.dbc]]
    [100112_105234222] [] [EXCEPTION] [DEBUG] [java.vm.specification.version]: [1.0]
    [100112_105234222] [EXCEPTION] [DEBUG] [java.home]:[AP1/oracle/PROD01/apps/tech_st/10.1.3/appsutil/jdk/jre]]
    [100112_105234222] [] [EXCEPTION] [DEBUG] [sun.arch.data.model]: [32]
    [100112_105234223] [] [EXCEPTION] [DEBUG] [user.language]: [in]
    [100112_105234223] [] [EXCEPTION] [DEBUG] [java.specification.vendor]: [Sun Microsystems Inc..]
    [100112_105234223] [] [EXCEPTION] [DEBUG] [mode java.vm.info]: [mixed]
    [100112_105234223] [EXCEPTION] [DEBUG] [logfile]:[AP1/oracle/PROD01/inst/apps/clone_orappsus64/logs/appl/conc/log/FNDOPP157635.txt]]
    [100112_105234223] [] [EXCEPTION] [DEBUG] [java.version]: [1.6.0_10]
    [100112_105234223] [] [EXCEPTION] [DEBUG] [JAVA. EXT. DIRS]:[AP1/ORACLE/PROD01/APPS/TECH_ST/10.1.3/APPSUTIL/JDK/JRE/LIB/EXT:/USR/JAVA/PACKAGES/LIB/EXT]
    [100112_105234223] [][EXCEPTION] [DEBUG] [sun.boot.class.path]:[AP1/oracle/PROD01/apps/tech_st/10.1.3/appsutil/jdk/jre/lib/resources.jar:/AP1/oracle/PROD01/apps/tech_st/10.1.3/appsutil/jdk/jre/lib/rt.jar:/AP1/oracle/PROD01/apps/tech_st/10.1.3/appsutil/jdk/jre/lib/sunrsasign.jar:/AP1/oracle/PROD01/apps/tech_st/10.1.3/appsutil/jdk/jre/lib/jsse.jar:/AP1/oracle/PROD01/apps/tech_st/10.1.3/appsutil/jdk/jre/lib/jce.jar:/AP1/oracle/PROD01/apps/tech_st/10.1.3/appsutil/jdk/jre/lib/charsets.jar:/AP1/oracle/PROD01/apps/tech_ St/10.1.3/appsutil/JDK/JRE/classes]
    [100112_105234223] [] [EXCEPTION] [DEBUG] [java.vendor]: [Sun Microsystems Inc..]
    [100112_105234223] [] [EXCEPTION] [DEBUG] [FND_JDBC_BUFFER_MAX]: [2]
    [100112_105234223] [] [EXCEPTION] [DEBUG] [file.separator]:]
    [100112_105234223] [] [EXCEPTION] [DEBUG] [java.vendor.url.bug]: [http://java.sun.com/cgi-bin/bugreport.cgi]
    [100112_105234223] [] [EXCEPTION] [DEBUG] [sun.io.unicode.encoding]: [UnicodeLittle]
    [100112_105234223] [] [EXCEPTION] [DEBUG] [sun.cpu.endian]: [little]
    [100112_105234223] [] [EXCEPTION] [DEBUG] [APPLOUT]: [out]
    [100112_105234223] [] [EXCEPTION] [DEBUG] [sun.cpu.isalist]:]
    [01/10/12 10:52:35] [UNEXPECTED] [157635:RT1296337] java.lang.reflect.InvocationTargetException
    at sun.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    at oracle.apps.xdo.common.xml.XSLT10gR1.invokeParse(XSLT10gR1.java:517)
    at oracle.apps.xdo.common.xml.XSLT10gR1.transform(XSLT10gR1.java:224)
    at oracle.apps.xdo.common.xml.XSLTWrapper.transform(XSLTWrapper.java:177)
    at oracle.apps.xdo.template.fo.util.FOUtility.generateFO(FOUtility.java:1044)
    at oracle.apps.xdo.template.fo.util.FOUtility.generateFO(FOUtility.java:997)
    at oracle.apps.xdo.template.fo.util.FOUtility.generateFO(FOUtility.java:212)
    at oracle.apps.xdo.template.FOProcessor.createFO(FOProcessor.java:1665)
    at oracle.apps.xdo.template.FOProcessor.generate(FOProcessor.java:975)
    at oracle.apps.xdo.oa.schema.server.TemplateHelper.runProcessTemplate(TemplateHelper.java:5936)
    at oracle.apps.xdo.oa.schema.server.TemplateHelper.processTemplate(TemplateHelper.java:3459)
    at oracle.apps.xdo.oa.schema.server.TemplateHelper.processTemplate(TemplateHelper.java:3548)
    at oracle.apps.fnd.cp.opp.XMLPublisherProcessor.process(XMLPublisherProcessor.java:285)
    at oracle.apps.fnd.cp.opp.OPPRequestThread.run(OPPRequestThread.java:173)
    Caused by: oracle.xdo.parser.v2.XMLParseException: expected '; '.
    at oracle.xdo.parser.v2.XMLError.flushErrors1(XMLError.java:337)
    at oracle.xdo.parser.v2.NonValidatingParser.parseDocument(NonValidatingParser.java:305)
    at oracle.xdo.parser.v2.XMLParser.parse(XMLParser.java:289)
    ... more than 17

    [01/10/12 10:52:35] [157635:RT1296337] Over the actions of post-processing to request 1296337.
    [GC 8059K - > 6286K (8692K), dry 0,0076290]
    [Full GC [unloading class sun.reflect.GeneratedSerializationConstructorAccessor17]]
    [Unloading class sun.reflect.GeneratedSerializationConstructorAccessor19]
    [Unloading class sun.reflect.GeneratedSerializationConstructorAccessor18]
    [Unloading class sun.reflect.GeneratedSerializationConstructorAccessor13]
    6286 K - > 3865 K (8692 K), dry 0,0446370]

    Please help big appriciation.

    Thank you

    Siddarth.

    OK, the solution is quite "simple" then.
    Each string that can contain XML reserved characters must be escaped before concatenating XML tags.

    I see that the code has already some replace(column_name, '&', ''), perhaps that was added in the same goal, but a bad solution.

    A better solution would be to use the SQL/XML functions, but it would mean that the refactoring cursors.
    Therefore, an intermediate solution (if you want to keep '&' characters in the output) is to escape the chain properly.

    For example, in the GET_PROJECTS cursor:

    CURSOR get_projects ( p_customer_id            IN    NUMBER
                        , p_bu_vertical            IN    VARCHAR2
                        , p_line_of_business    IN    VARCHAR2
                       -- , p_period_set_name        IN    VARCHAR2
                        , p_gl_period_from        IN    VARCHAR2
                        , p_gl_period_to        IN    VARCHAR2
                        , p_project_id_FROM        IN    NUMBER
                        , p_project_id_to        IN    NUMBER
                        , p_organization_name  IN    VARCHAR2
                        ) IS
    SELECT DISTINCT   replace(pa.name, '&','') project_name
         ,pa.project_id
         , utl_i18n.escape_reference(pa.segment1) as project_number   --< Here
         , pa.project_currency_code
         , hp.party_id
    ...
    

    This should solve the problem with the CP_PROJECT tag.
    Repeat on the other columns if necessary.

  • ADF pages are displayed as xml

    Hi all

    After I applied the ADF security to my project that the adf pages are displayed as xml without error file, I mean pages adf not make the component and shows only the adf xml tags (f: view, f: document, etc.)

    If I remove the ADF security pages runs correctly.

    Any ideas?

    JDeveloper 11.1.2.2
    WebLogic 10.3.5
    field with adf framework installed

    It works very well, if you set the homepage as /faces/main.jsf (instead of just main.jsf)

    Arun-

  • How to remove underscore in the xml tag

    Hello

    I am using xml data in the model and data are retrieved dynamically. This is why the header in the template contains the xml tag with the underscore as "First_Name", "Second_Name".
    But it doesn't display the header such as "First name", "Second Name". I want to remove the trait of underscore '_' in the header template.
    Can someone help me.

    Thanks in advance

    Try

    
    

    sth

    
    
    
    
  • 'Value not completed for attribute "in the XML tag". (SBL-UIF-00265) »

    To get this message when I change a Web layout for a display in Siebel tools 7.8.2 "unfinished value for the attribute"in the XML tag". (SBL-UIF-00265) «... Anyone has an idea why I get this message?

    Hello

    Check the webtemplate to view file. The WT file may contain a double quote in some tags. Maybe it's the cause of the error. U have changed the SWT file by accident. Refer to ID 1280569.1 Web of Support of Oracle for more information.

    Kind regards
    Joseph

  • Null XML tags

    Hello

    I just want to know how the xml tags are created if it is null then suffix tag xml as shown below:

    {
    example code:
    < GST_NUMBER xmlns: xsi = "http://www.w3.org/2001/XMLSchema-instance" xsi: Nil = "true" / >
    }

    I can create using sql xml tags, if set to null, then it will be produced like this < GST_NUMBER / >, is there a way to sql I can produce xml tag suffixing this kind of info (as shown in the example), if it is a null value.


    Concerning
    Mr. Nagendra

    is it possible in sql I can produce xml tag suffixing this kind of info (as shown in the example), if it is a null value.

    You can build the attribute conditionally by testing the NULLness of the column:

    WITH t AS (
      SELECT NULL as gst_number
      FROM dual
    )
    SELECT xmlelement("root",
             xmlelement("GST_NUMBER",
               xmlattributes(
                 nvl2(gst_number,null,'http://www.w3.org/2001/XMLSchema-instance') as "xmlns:xsi"
               , nvl2(gst_number,null,'true') as "xsi:nil"
               )
             , gst_number
             )
           )
    FROM t
    ;
    

    For clarity and simplicity, it is best to declare the namespace xsi in the root element, so that you don't have to repeat the statement anywhere in the document:

    SQL> WITH t AS (
      2    SELECT NULL as gst_number
      3    FROM dual
      4  )
      5  SELECT xmlserialize(document
      6           xmlelement("root"
      7           , xmlattributes('http://www.w3.org/2001/XMLSchema-instance' as "xmlns:xsi")
      8           , xmlelement("GST_NUMBER"
      9             , xmlattributes(case when gst_number is null then 'true' end as "xsi:nil")
     10             , gst_number
     11             )
     12           )
     13           as clob indent
     14         )
     15  FROM t
     16  ;
    
    XMLSERIALIZE(DOCUMENTXMLELEMEN
    --------------------------------------------------------------------------------
    
      
    
     
    

    Edit:
    For the record, DBMS_XMLGEN can also handle this well, but it is less flexible than the SQL/XML functions:

    SQL> DECLARE
      2
      3   ctx dbms_xmlgen.ctxHandle;
      4
      5  BEGIN
      6
      7   ctx := dbms_xmlgen.newContext('SELECT NULL as gst_number FROM dual');
      8   dbms_xmlgen.setNullHandling(ctx, dbms_xmlgen.NULL_ATTR);
      9   dbms_output.put_line(dbms_xmlgen.getXML(ctx));
     10   dbms_xmlgen.closeContext(ctx);
     11
     12  END;
     13  /
    
    
    
     
      
     
    
    
    PL/SQL procedure successfully completed
     
    

    Edited by: odie_63 APR 12. 2011 20:40

  • Need help to retrieve the value of an xml tag.

    Hi all

    Hello all, I have problem to extract a value from an xml tag. I created an xml schema based on the schema, I created an xmltype table and inserted a value to the table. When I try to extract a value of a particular tag I can't do... Kindly help me to solve this problem. Here by I write all working, I did...

    I use the following client:
    -----------------------------------

    SQL * more: Release 10.2.0.1.0 - Production on Mon 31 Jan 11:44: 59 2011

    Copyright (c) 1982, 2005, Oracle. All rights reserved.


    Connected to:
    Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - Production
    With partitioning, OLAP and Data Mining options


    ////////////////////////////////// XML Schema ///////////////////////

    Start
    () dbms_xmlschema.registerSchema
    "http://www.oradev.com/chipsxml.xsd,"
    ' < scheme xmlns = "http://www.w3.org/2001/XMLSchema".
    targetNamespace = "http://www.oradev.com/chipsxml.xsd."
    xmlns:SAMP = "http://www.oradev.com/chipsxml.xsd".
    version = "1.0" >

    < feature name = 'Field1' >
    < complexType >
    <>sequence
    < element name = "UTI" >
    < complexType >
    <>sequence
    < element name = "U01" type = "string" / >
    < element name = "U02" type = "string" / >
    < element name = "U03" type = "string" / >
    < element name = "U03a" type = "string" / >
    < element name = "U03b" type = "string" / >
    < element name = "U03c" type = "string" / >
    < element name = "U04" type = "string" / >
    < element name = "U05" type = "string" / >
    < / sequence >
    < / complexType >
    < / item >
    < / sequence >
    < / complexType >
    < / item >
    < / schema > ',
    (TRUE, TRUE, FALSE, FALSE);
    end;


    A table that has several column.

    CREATE TABLE chipsxmltable1)
    Identification number, XMLDATA XmlType)
    XMLTYPE XMLDATA STORE AS OBJECT / RELATIONAL
    XMLSCHEMA 'http://www.oradev.com/chipsxml.xsd '.
    ELEMENT 'field1 ';


    Insert the query in chipsxmltable.

    INSERT INTO (VALUES) chipsxmltable
    XmlType.CreateXml ("<?") XML version = "1.0"? >
    < xmlns:samp samp: field1 = "http://www.oradev.com/chipsxml.xsd" >
    < USE >
    No. < U01 > < / U01 >
    Y < U02 > < / U02 >
    Y < U03 > < / U03 >
    < U03a > Y < / U03a >
    < U03b > Y < / U03b >
    < U03c > Y < / U03c >
    Y < U04 > < / U04 >
    Y < U05 > < / U05 >
    < / UTI >
    ((< / samp: field1 > '));


    To display the data in a field with the structure:
    --------------------------------------------

    1. motion:
    ----------
    Select * from chipsxmltable1;

    Output:
    -------


    ID XMLDATA
    ---------- -----------------------------------------------------------------
    1 <? XML version = "1.0"? >
    < xmlns:samp samp: field1 = "http://www.oradev.com/chipsxml.xsd" >
    < USE >
    No. < U01 > < / U01 >
    No. < U02 > < / U02 >
    Y < U03 > < / U03 >
    < U03a > Y < / U03a >
    < U03b > Y < / U03b >
    < U03c > Y < / U03c >
    Y < U04 > < / U04 >
    Y < U05 > < / U05 >
    < / UTI >
    < / samp: field1 >


    2 query: (both the query shows the same result)
    ----------

    SELECT X.xmldata.getClobVal ('XMLDATA' FROM chipsxmltable1 X);

    Select extract (XMLDATA, "/ Field1'") .getstringval ("XMLDATA" chipsxmltable1 x);


    Output:
    --------

    XMLDATA
    -----------------------------------------------------------------
    <? XML version = "1.0"? >
    < xmlns:samp samp: field1 = "http://www.oradev.com/chipsxml.xsd" >
    < USE >
    No. < U01 > < / U01 >
    No. < U02 > < / U02 >
    Y < U03 > < / U03 >
    < U03a > Y < / U03a >
    < U03b > Y < / U03b >
    < U03c > Y < / U03c >
    Y < U04 > < / U04 >
    Y < U05 > < / U05 >
    < / UTI >
    < / samp: field1 >


    To display the data as a single string without structure using "getstringval()":
    ---------------------------------------------------------------------------------

    3 query
    ---------

    Select extract (XMLDATA, "//text()').getstringval()"CHIPS - XML"of chipsxmltable1 x;)

    Output:
    -------

    CHIPS - XML
    ---------------------
    NoNoYYYYYY


    To display the data as a single string without structure using "getclobval()":
    ---------------------------------------------------------------------------------

    4 query
    -------

    Select extract (XMLDATA, "//text()').getClobVal()"CHIPS - XML"of chipsxmltable1 x;)

    Output:
    --------

    CHIPS - XML
    -----------------
    NoNoYYYYYY


    To display the data in a tag with or without structure (which does work) using the function "EXTRACT":
    -------------------------------------------------------------------------------------------------------------

    6.query:
    ---------

    Select extract (XMLDATA, "/Field1/text()').getstringval()"XMLDATA' chipsxmltable1 x;

    Select extract (XMLDATA, "/Field1/UTI').getstringval()"XMLDATA' chipsxmltable1 x;

    Select extract (XMLDATA, "/Field1/UTI/U01').getstringval()"XMLDATA' chipsxmltable1 x;

    Select extract (XMLDATA, "/Field1/UTI/U01/text()').getstringval()"XMLDATA' chipsxmltable1 x;


    Output:
    --------

    CHIPS - XML
    ---------------------------------------



    The queries above are not fetch the value.



    To display the data in a tag with or without structure (which does work) using the function "EXTRACTVALUE":
    ------------------------------------------------------------------------------------------------------------------

    7 query:
    ----------

    Select extractValue (XMLDATA, ' / Field1/UTI ') 'XMLDATA' of chipsxmltable1 x;

    Select extractValue (XMLDATA, ' / U01/UTI/Field1 ') 'XMLDATA' of chipsxmltable1 x;


    Output:
    --------

    X
    -



    The queries above are not fetch the value.


    My question is:
    --------------------
    How to extract the values of xml tag when the value are inserted through xml schema?


    My apologies if the description is not clear. Kindly let me know if further details are required. Thanks a lot for your help.

    Very cordially,
    Godwin Castro C.V.

    Hello

    You must declare the namespace of each element used in the XPath expression, like this:

    SQL> select extractvalue( XMLDATA
      2                     , '/samp:Field1/UTI/U01'
      3                     , 'xmlns:samp="http://www.oradev.com/chipsxml.xsd"' ) "XMLDATA"
      4  from chipsxmltable1 x
      5  ;
    
    XMLDATA
    --------------------------------------------------------------------------------
    No
     
    
    SQL> select extract( XMLDATA
      2                , '/samp:Field1/UTI'
      3                , 'xmlns:samp="http://www.oradev.com/chipsxml.xsd"'
      4                ).getstringval() "XMLDATA"
      5  from chipsxmltable1 x
      6  ;
    
    XMLDATA
    --------------------------------------------------------------------------------
    
      No
      Y
      Y
      Y
      Y
      Y
      Y
      Y
    
     
    

    Please see EXTRACT and EXTRACTVALUE documentation:
    http://download.Oracle.com/docs/CD/B19306_01/server.102/b14200/functions051.htm#i1006712
    http://download.Oracle.com/docs/CD/B19306_01/server.102/b14200/functions052.htm#SQLRF06173

    BTW, 'XMLDATA' is a pseudo-column used by Oracle. I don't know if it will never cause any conflict, but perhaps you need to rename your column.
    http://download.Oracle.com/docs/CD/B19306_01/server.102/b14200/pseudocolumns010.htm#SQLRF00256

    Kind regards.

  • Conditionally display different images in a report

    Hello. I have a simple report. In a column of it, I have a link to another report. Display a picture using the column rather than display the value of the column, text of the link to the column binding property.

    I put in the link text field, a < img src = "#WORKSPACE_IMAGES #my_image.jpg" > tag.

    Works like a charm - on the report that the column displays the images of small icon that can be clicked take the user to another page.

    I would conditionally (based on the real value of the row of the column) show two different images. Think of a green arrow pointing at vs a red down arrow.

    How can I do?

    Or can I at least have the image above display under certain conditions and if the condition is not met, not display anything?

    I noticed that each page an attribute of the column in the report has the conditional display section. How does for a column?

    Thank you
    Boris

    Use an expression box in the query, for example

    ...
    case
      when x <= 50 then 'down.png'
      else 'up.png'
    end icon
    ...
    

    Change the link text field to

    <img src="#WORKSPACE_IMAGES##ICON#" alt=""/>
    
  • My friend cannot display my XML pages correctly, is it a parameter is missing?

    One of my friends wanted an easy way to create a help page for its program written in Java. He didn't get into HTML. I wrote a XSl and XML module where he could add chapters & text. It works fine on my system using FF or IE itself. I'm on V31 FF because I think that my friend's as well.

    When he clicks on the XML file, he gets a page with all run togather as if it doesn't have the XSL file.

    Is there a setting or option I chose in my FF correctly display the XML file allows the present to the past and forgotten thereon?

    Hello

    You can add this to this Firefox will allow you to see the XML files.

    https://addons.Mozilla.org/en-us/Firefox/addon/xmlutils/

  • in firefox does not display of Southern tag Team Championship =""

    in firefox does not display a Southern tag Team Championship = "" link or the photos but in chrome and other browser is displayed. " Why? Where a problem?

    I don't know what you mean.

    Do you mean that you do not see the ToolTip if you place an image or link and this image or link has a title attribute?

    You can check the browser.chrome.toolbar_tips pref on the topic: config page.

    Start Firefox in Safe Mode to check if one of the extensions (Firefox/Firefox/tools > Modules > Extensions) or if hardware acceleration is the cause of the problem (switch to the DEFAULT theme: Firefox/Firefox/tools > Modules > appearance).

    • Do NOT click on the reset button on the startup window Mode without failure.

Maybe you are looking for