How do I represent "LESS THAN" using Oracle XMLDOM Package

I am creating a xml file using Oracle XMLDOM package.
I am creating a Text node with value "<". Following is the code that creates text node
CRRuleoptext := xmldom.createTextNode(MDRDocVal,var_mdr_rule_oper_flag);
The var_mdr_rule_oper_flag is coming from a table and its value is "<"
But once the XML file is created I see
<RULEOP>&;#38;lt;</RULEOP>
instead of
<RULEOP>&#38;lt;</RULE>
How do I get &#38;lt; instead of &;#38;lt; using Oracle XMLDOM Package?

Just create a text node with a literal less-than sign "<", this will get serialized either as &;lt; or as &;XX; (where XX is the unicode value for less-than).

Similar Messages

  • How do I represent "LESS THAN"

    I am creating a xml file using Oracle XMLDOM package.
    I am creating a Text node with value "&#38;lt;". Following is the code that creates text node
    CRRuleoptext := xmldom.createTextNode(MDRDocVal,var_mdr_rule_oper_flag);
    The var_mdr_rule_oper_flag is coming from a table and its value is "&#38;lt;"
    But once the XML file is created I see
    <RULEOP>&;#38;lt;</RULEOP>
    instead of
    <RULEOP>&#38;lt;</RULE>
    How do I get < instead of < using Oracle XMLDOM Package?

    See: http://technet.oracle.com:89/ubb/Forum11/HTML/004535.html
    null

  • How to Unpivot, Crosstab, or Pivot using Oracle 9i with PL/SQL?

    How to Unpivot, Crosstab, or Pivot using Oracle 9i with PL/SQL?
    Here is a fictional sample layout of the data I have from My_Source_Query:
    Customer | VIN | Year | Make | Odometer | ... followed by 350 more columns/fields
    123 | 321XYZ | 2012 | Honda | 1900 |
    123 | 432ABC | 2012 | Toyota | 2300 |
    456 | 999PDQ | 2000 | Ford | 45586 |
    876 | 888QWE | 2010 | Mercedes | 38332 |
    ... followed by up to 25 more rows of data from this query.
    The exact number of records returned by My_Source_Query is unknown ahead of time, but should be less than 25 even under extreme situations.
    Here is how I would like the data to be:
    Column1 |Column2 |Column3 |Column4 |Column5 |
    Customer | 123 | 123 | 456 | 876 |
    VIN | 321XYZ | 432ABC | 999PDQ | 888QWE |
    Year | 2012 | 2012 | 2000 | 2010 |
    Make | Honda | Toyota | Ford | Mercedes|
    Odometer | 1900 | 2300 | 45586 | 38332 |
    ... followed by 350 more rows with the names of the columns/fields from the My_Source_Query.
    From reading and trying many, many, many of the posting on this topic I understand that the unknown number or rows in My_Source_Query can be a problem and have considered working with one row at a time until each row has been converted to a column.
    If possible I'd like to find a way of doing this conversion from rows to columns using a query instead of scripts if that is possible. I am a novice at this so any help is welcome.
    This is a repost. I originally posted this question to the wrong forum. Sorry about that.

    The permission level that I have in the Oracle environment is 'read only'. This is also be the permission level of the users of the query I am trying to build.
    As requested, here is the 'create' SQL to build a simple table that has the type of data I am working with.
    My real select query will have more than 350 columns and the rows returned will be 25 rows of less, but for now I am prototyping with just seven columns that have the different data types noted in my sample data.
    NOTE: This SQL has been written and tested in MS Access since I do not have permission to create and populate a table in the Oracle environment and ODBC connections are not allowed.
    CREATE TABLE tbl_MyDataSource
    (Customer char(50),
    VIN char(50),
    Year char(50),
    Make char(50),
    Odometer long,
    InvDate date,
    Amount currency)
    Here is the 'insert into' to populate the tbl_MyDataSource table with four sample records.
    INSERT INTO tbl_MyDataSource ( Customer, VIN, [Year], Make, Odometer, InvDate, Amount )
    SELECT "123", "321XYZ", "2012", "Honda", "1900", "2/15/2012", "987";
    INSERT INTO tbl_MyDataSource ( Customer, VIN, [Year], Make, Odometer, InvDate, Amount )
    VALUES ("123", "432ABC", "2012", "Toyota", "2300", "1/10/2012", "6546");
    INSERT INTO tbl_MyDataSource ( Customer, VIN, [Year], Make, Odometer, InvDate, Amount )
    VALUES ("456", "999PDQ", "2000", "Ford", "45586", "4/25/2002", "456");
    INSERT INTO tbl_MyDataSource ( Customer, VIN, [Year], Make, Odometer, InvDate, Amount )
    VALUES ("876", "888QWE", "2010", "Mercedes", "38332", "10/13/2010", "15973");
    Which should produce a table containing these columns with these values:
    tbl_MyDataSource:
    Customer     VIN     Year     Make     Odometer     InvDate          Amount
    123 | 321XYZ | 2012 | Honda      | 1900          | 2/15/2012     | 987.00
    123 | 432ABC | 2012 | Toyota | 2300 | 1/10/2012     | 6,546.00
    456 | 999PDQ | 2000 | Ford     | 45586          | 4/25/2002     | 456.00
    876 | 888QWE | 2010 | Mercedes | 38332          | 10/13/2010     | 15,973.00
    The desired result is to use Oracle 9i to convert the columns into rows using sql without using any scripts if possible.
    qsel_MyResults:
    Column1          Column2          Column3          Column4          Column5
    Customer | 123 | 123 | 456 | 876
    VIN | 321XYZ | 432ABC | 999PDQ | 888QWE
    Year | 2012 | 2012 | 2000 | 2010
    Make | Honda | Toyota | Ford | Mercedes
    Odometer | 1900 | 2300 | 45586 | 38332
    InvDate | 2/15/2012 | 1/10/2012 | 4/25/2002 | 10/13/2010
    Amount | 987.00 | 6,546.00 | 456.00 | 15,973.00
    The syntax in SQL is something I am not yet sure of.
    You said:
    >
    "Don't use the same name or alias for two different things. if you have a table called t, then don't use t as an alais for an in-line view. Pick a different name, like ordered_t, instead.">
    but I'm not clear on which part of the SQL you are suggesting I change. The code I posted is something I pieced together from some of the other postings and is not something I full understand the syntax of.
    Here is my latest (failed) attempt at this.
    select *
      from (select * from tbl_MyDataSource) t;
    with data as
    (select rownum rnum, t.* from (select * from t order by c1) ordered_t), -- changed 't' to 'ordered_t'
    rows_to_have as
    (select level rr from dual connect by level <= 7 -- number of columns in T
    select rnum,
           max(decode(rr, 1, c1)),
           max(decode(rr, 2, c2)),
           max(decode(rr, 3, c3)),
           max(decode(rr, 4, c3)),      
           max(decode(rr, 5, c3)),      
           max(decode(rr, 6, c3)),      
           max(decode(rr, 7, c3)),       
      from data, rows_to_have
    group by rnumIn the above code the "select * from tbl_MyDataSource" is a place holder for my select query which runs without error and has these exact number of fields and data types as order shown in the tbl_MyDataSource above.
    This code produces the error 'ORA-00936: missing expression'. The error appears to be starting with the 'with data as' line if I am reading my PL/Sql window correctly. Everything above that row runs without error.
    Thank you for your great patients and for sharing your considerable depth of knowledge. Any help is gratefully welcomed.

  • How to change too less than 4seconds...

    I have more recordings,
    they are less than 4 seconds,
    When i want to make a cd of it,  it doesn't work,
    Because these recordings have to be more than 4 seconds in length.
    How can i change this?

    Many thanks for the useful info from both, Bob Howes & Ryclark
    Date: Thu, 4 Nov 2010 09:22:05 -0600
    From: [email protected]
    To: [email protected]
    Subject: How to change too less than 4seconds...
    Ryclark is, alas, spot on.
    In the bad old days I used to use CD to playback sound effects in the theatre and many of these were less than 4 seconds duration.  I used to have to edit in a few seconds silence at the end of all the short effects to keep the CD format happy.
    Bob
    >

  • How to connect from java without using oracle client installation

    hi ,
    Please tell me how to connect from java without using oracle client
    Thanks & Regars

    http://www.orafaq.com/wiki/JDBC#Thin_driver

  • How do I include DOCTYPE in my XMLfile using Oracle XMLDOM or XMLParser Package

    I am creating a XML file using Oracle XMLDOM and XMLPARSER package. But I am not able to include
    <!DOCTYPE XYZ SYSTEM ABC.DTD!>
    in the second line of my XML file.
    How do I include DOCTYPE in my xmlfile using Oracle xmldom or xmlparser package?

    XML Parser for PL/SQL 9.0.0.0A (Beta) release has the setDoctype() procedure that takes an xmldom.DOMDocument and the string for the System and Public ID's to set.

  • How can I represent more than one plot in an only one chart?

    Hello everyone,
    i got a code where I don't understand how to represent more than two plots, with different scales each, in the same waveform chart.
    As brief review:
    * 2 adquisition data wired to Bundle
    * wire from Bundle to waveform chart.
    * options of th chart: stack plots.
    I've tried to expand the Bundle but the problem is that I'm wiring a 3 element cluster to a 2element cluster chart. I don't understand how to upgrade the chart...
    (there's the two plots in each chart)
    (there's the code, where I've already tried expanding any bundle and wiring other signals, then wiring the bundle's output to the chart)
    I think if I could add more scales, it will be possible to plot three plots on the same chart.
    Thank you for your time
    Marcelo A J

    Since you are dealing with waveforms already, I think you actually want to have an array of waveforms to go into your chart.  You also need to map the plots to the scale that you want to use.  You can do that in the plot tab of the properties window.
    There are only two ways to tell somebody thanks: Kudos and Marked Solutions
    Unofficial Forum Rules and Guidelines

  • How can I return multiple values using Oracle 9i Web Services ?

    Hi, Is it possible to return multiple parameters using WebServices in general ? And if yes, how do we do it using Oracle 9i WebServices ?
    At my client usually I call
    return_value = SoapClient.MehtodName(param1, param2, param3)
    If i need more than one return_value...how do we handle that ?
    Thanks,
    -Krishna

    Anyone has any ideas about this ?
    And also if i want a collection in one of the input parameters...how to do that ?
    Does Oracle WS have any such support ? Or we have devise our own way like sending it by separators or something like that ?
    Thanks,
    Krishna

  • Greater Than or Less Than using String Variables

    I seem to have a problem when trying to sort an ALPHABETIC LIST, seeing if one text field is greater tan or less than another.
    i.e. Lets say my variables are called FirstLetter and SecondLetter.
    FirstLetter="A", SecondLetter="B"
    So as an example and a test....Can I ask ...
    IF SecondLetter>FirstLetter Then
            Textwindow.WriteLine(SecondLetter + "  >" + FirstLetter)
    Else
            Textwindow.WriteLine(FirstLetter + " >= " + SecondLetter)
    Endif
    I seem to be fine and program working well with numeric values in variables but the '> & <' feature does not seem to work with Text ?
    Any help really appreciated
    Thanks
    Dave

    We gotta get their ASCII/UNICODE value before comparing them:
    firstLetter = "A"
    secondLetter = "B"
    If Text.GetCharacterCode(firstLetter) > Text.GetCharacterCode(secondLetter) Then
    Textwindow.WriteLine(FirstLetter + " > " + SecondLetter)
    ElseIf Text.GetCharacterCode(firstLetter) < Text.GetCharacterCode(secondLetter) Then
    Textwindow.WriteLine(SecondLetter + " > " + FirstLetter)
    Else
    Textwindow.WriteLine("They're the same " + FirstLetter + " letter!")
    EndIf
    Click on "Propose As Answer" if some post solves your problem or "Vote As Helpful" if some post has been useful to you! (^_^)

  • How to design Forms and Reports using Oracle workflow 2.6

    Is it possible to design Forms & Reports for Data Entry and
    reporting purposes using oracle workflow standalone version?
    if so how?.
    Please helpme!! is veri urgent.

    Con este apellido seguro que entiendes el Espaqol.
    Mi empresa esta iniciando un proyecto con la tecnologia que
    estas buscando, es decir, Utilizar Forms y Reports para manejar
    las APIS de WorkFlow Server, hemos encontardo muchos problemas,
    el principal es que la API de WorkFlow es demasiado pequeqa para
    manipular todos los procesos de WorkFlow por este motivo nos
    hemos visto obligados a acceder a tablas y vistas del modelo de
    datos de WorkFlow.
    Saludos.

  • How to Create three dimentional graph using Oracle Discoverer

    Hi,
    How can I plot four numeric values against the time period using three axes in oracle discoverer. e.g. If I want to plot unit cost, total cost, total sale, and total profit for a given period. I am using oracle discoverer 10.1.2.0.0
    Any help is appreciated!
    Thanks

    What is the one message you are trying to get your graph to convery? Personally, I think the key thing is to keep it simple, just because your data has many dimensions it does mean that you should overload users with information. I would stick to a simple dual aixs combo graph where total cost and total sales are shown as bars against Y1 and total profit is shown as a line against Y2.
    You have total cost so adding unit cost is unlikely to provide additional information and it just adds clutter and confusion to your graph.
    One graph type that might help provide a more powerful message is the bubble-chart which is used to perform quadrant analysis. We have provided a smalla rticl on the benefits of using bubble graphs on the BI Blog:
    Making more of BI Graphs....
    http://oraclebi.blogspot.com/2005/10/making-more-of-bi-graphs.html
    More on the bubble graph
    http://oraclebi.blogspot.com/2005/10/more-on-bubble-graph.html
    Hope this helps,
    Keith
    Oracle Business Intelligence Product Management
    BI on Oracle: http://www.oracle.com/bi/
    BI on OTN: http://www.oracle.com/technology/products/bi/
    BI Beans http://www.oracle.com/technology/products/bib/index.html
    Discoverer: http://www.oracle.com/technology/products/discoverer/
    BI Software: http://www.oracle.com/technology/software/products/ias/devuse.html
    Documentation: http://www.oracle.com/technology/documentation/appserver1012.html
    BI Samples: http://www.oracle.com/technology/products/bi/samples/
    Blog: http://oraclebi.blogspot.com/

  • Need help on how to create the simple mapping using ORACLE DATA INTEGRATOR

    Hi guys,
    am new to learn odi.. please share me or steps how to develop the simple mapping using ODI...

    Hi,
    I am a newbie to Oracle Data Integrator as well. You should have a look here first; http://www.business-intelligence-quotient.com/?p=379
    Try to play around with ODI and then come back if you have specific questions. You should better move to this ODI-forum; Data Integrator
    Good Luck,
    Daan Bakboord
    http://obibb.wordpress.com

  • How to make new database connection using Oracle BI Interactive Dashboards

    Hi,
    I install Oracle BI Intelligence on my system.
    I am using Oracle BI Interactive Dashboard. Here we have default database connection.
    but now i want to use it for my own database. Can any body give me guideline how to
    make a new data base connection using this s/w or how to connect to my database so
    that i can make my own reports.
    I am using
    http://www.oracle.com/technology/obe/obe_bi/bi_ee_1013/saw/saw.html
    this link.
    i make odbc connection which is fine.
    but
    Restoring the Business Intelligence Presentation Catalog and Updating Metadata
    The third point blow above heading is not clear.
    Thanks

    Umesh - in order to build Answers and Dashboard content you must first setup a Physical model, then a Business model, followed by a Presentation Catalog/Subject Area.
    All these tasks are carried out using the Repository Administration Utility.
    1) Import your physical tables using OCI/ODBC into the physical layer.
    2) Build your model
    3) Deploy
    Then you're ready to start building answers/dashboards.
    Good Luck.

  • How to index ORDSYS.orddoc type using Oracle Text?

    Dear All,
    I am very new to Oracle Text and Oracle intermedia ORDSYS.orddoc type.
    As what I know it is impossible to index ORDSYS.orddoc using Oracle Text, so
    may I know is there anyway alternative to index ORDSYS.orddoc type using Oracle Text?
    I am using ORDDOC type due to my application need to allow user to upload various type of media file such as audio, video, word document etc...
    Please help as I need it to do full text search for those uploaded document, thanks in advanced.
    Best Regards,
    Chin

    Dear All,
    I am very new to Oracle Text and Oracle intermedia ORDSYS.orddoc type.
    As what I know it is impossible to index ORDSYS.orddoc using Oracle Text, so
    may I know is there anyway alternative to index ORDSYS.orddoc type using Oracle Text?
    I am using ORDDOC type due to my application need to allow user to upload various type of media file such as audio, video, word document etc...
    Please help as I need it to do full text search for those uploaded document, thanks in advanced.
    Best Regards,
    Chin

  • How to get value less than 0 = 0

    I am trying to get a formula to do two operation in one field something like:
    form1.#subform[0].yes1.qn1::calculate - (JavaScript, client)
    (p1-s1)
    then if the value is less than "0" the the value = "0"
    what I have so far is not working, any help is greatly appreciated.
    if
    (this.rawValue < 0) this.rawValue
    = 0;
    Thank you.

    Srini,
    Thanks for the reply, although I still cannot get this to work.
    I changed the fields to numeric and it still is not working.

Maybe you are looking for

  • Getting parsing SP error while migrating SQL Sever 7 to Oracle 8.1.7

    Hello, I migrate SQL Sever 7 database to Oracle 8.1.7 using latest Migration Workbench + sqlsever7 plugin. I captured the source database and created Oracle model but some of straight forward enough stored procuderes didn't pass. I try manually corre

  • I am unable to change my Country to UK. For some reason it keeps coming up that I am from canada??

    I am trying to buy the personal year plan but I am unable to as the price keeps coming up as dollars. When I went to look, I realised that I have been set to being from Canada and am unable to change it please help.

  • Connecting my ipad to itunes, how to get the columns there

    hi all! I'm sure its been discussed before but couldnt find the topic with a quick search, so I'll start a new one, sorry for that. My problem is quite simple, when I connect my ipad mini on itunes, I can't show the columns browser (artist, album etc

  • Old reports / views should be deactivated (not to run)

    Hi Experts,     We have set of reports in production which are not optimized for performance. So now we have created new set of reports and transported to production. Now we want to de-activate all old reports and views, so that business will run onl

  • Request Dispatcher

    Hi, I am trying to forward information from a servlet to a jsp, but the servlet fails with an exception, java.lang.OutOfMemoryError: unable to create new native thread This is what i am doing in my servlet.... String msg = "test"; req.setAttribute("m