Conditions in XML files using

Hi all

That's what I want to do in my dashboard where I show all the ills happening;

I want to show total VMs that have high CPU ready, so I created a list with a filter. What I want to do is to make it more Visual than just a list, I have a box of Red dashboard with the total number of virtual machines that have high CPU ready. How to do this? I thought that in view of the distribution, but it's blue... great metric I can not specify the value of the metric or set a filter, I don't know if it is possible to be implemented in XML with If else?

Thank you so much in advance.

OK got are

A heatmap will be perfect

1 create a new type of Group (under content) in my case one called it CPU ready

2 create a new group customized (under environment) once again I called him CPU ready (change your highest % of what you want)

3 create your heatmap set your max value to what you put in your custom group, and the lower min value that the group. The boxes will never be as it changes from red because you checked keep updated group membership the heat map should change on each interval collection and in the filter to select the custom group below what you call the group type.

Plus the loan plus box and will be limited to the virtual machines in the custom group.

Tags: VMware

Similar Questions

  • HP Officejet 6700 desktop program installed displays text xml files using

    Afer, install the drivers and the printer software on 64 bit Windows 7 Pro, the shortcut on the desktop and start menu entry "HP Officejet 6700' returns the text for the XML files .  When the icon is first you click a window asked me to choose which installed printer, and then displays the two xml files.  The first file is called 'HPSPProgress' the second 'HPSolutionPortal' using windows Notepad.

    The shortcut pointing to the following text:

    "C:\Program HP HP Officejet Officejet 6700.exe 6700\Bin\HP" - launch UDCDevicePage

    Web and print based access drivers will work perfectly, and the HP Scan program office works very well also. All the functions of the printer work properly. But this program installed a desktop will not work.

    I uninstalled, rebooted and reinstalled several times as an administrator and with various parameters compatibility without success.  I tried to install the CD as well as on the internet with the same result.

    Advice please.

    Hey,.

    I would recommend running the fix for the patch posted by Kyle_W in the 4th message from the thread linked below.

    http://h30434.www3.HP.com/T5/notebook-operating-systems-e-g-Windows-8-and-software/officejetpro-8600-solution-Portal-Displays-HTML-code-in/TD-p/2489011

    Let me know if this solves your problem,

    Jason

  • Creation of XML file using blackberry waterfalls

    Hi all

    I use blackberry stunts to create a xml file, which will consist of data QMessage.

    The code that I am by train is as below: -.

       foreach (const Message &message, inboxMessages) {
    
        // Creating QVariant Map for each Message object
    
        QVariantMap messageMap;
        messageMap["address"] = QVariant();
        messageMap["date"]
        messageMap["subject"] = QVariant(message.subject());
        messageMap["body"] = ...........
    
        / Adding this object to Qvariant List
        QVariantList messageList= QVariantList() << QVariant(messageMap);
    
        }  // end of for each loop
    
    QVariantMap topLevelMessageMap;
    topLevelMessageMap[".root"] = QVariant("messages");
    topLevelMessageMap["message"] = QVariant(messageList);
    QVariant myData = QVariant(topLevelMessageMap);
    
    // Retrieve the working directory, and create a temporary .xml file in that
    // location
    QDir home = QDir::home();
    QTemporaryFile file(home.absoluteFilePath("myXMLFile.xml"));
    
    // Open the file that was created
    if (file.open()) {
        // Create an XmlDataAccess object and save the data to the file
        XmlDataAccess xda;
        xda.save(myData, &file);
    

    IN the above code, I create mannualy xml tags using the QVariant class.

    However is it possible where xml schema can be used from xslt/xsd and it may be analyzed to generate xml data with data to fill the Message class in accordance with the business logic.

    Please suggest

    What would you win? in my opinion this isn't a valid usecase for xslas you must complete all the values manually in any case.
    You can use xsl with qxmlquery xmldataaccess has no support in his favor.

  • Create an xml file using the .xsd file

    Hi guys,.

    Version of DB: Oracle 11g

    I was wondering if I had any package that can create a xml file based on a (built-in) .xsd file. I searched but did not find any resource on the internet specific to my problem. Let's say I have an .xsd file. It is possible to load a schema and generate the XML that conform to the .xsd file using sql? If so, I want to store in a CLOB variable.

    Please point me to the right direction.

    Thank you.

    Hello

    No, there is no such functionality yet.

    To build the XML "manually", according to the XSD, for example using SQL/XML functions (XMLElement, XMLAttributes, and XMLAgg etc.).

  • Creating XML file using data from database table

    I have to create an xml file by using the data in the table of multiples. The problem that I face is data are huge it's millions, so I was wondering is it possible efective for the creation of an XML of this type.

    It would be great if you can suggest an approach to achieve my requirement.

    Thank you
    -Vinod

    An example of the forum: Re: how to generate the XML from the database table

    Published by: Marco Gralike on 18 October 2012 21:41

  • How can I parse the XML file using the Oracle's Sql query.

    Hi all
    I have an XML file that must analyze and display the result according to the following example
    Can you please recommend me an approach to get the result.

    For example, here is my XML:

    <? XML version = "1.0" encoding = "UTF-8"? >
    < xmlns:pi = "urn:com.workday / picof pi: Extract_Employees" >
    < IP: employee >
    < Additional_Information: pi > < pi: pi function: PriorValue = "" > Intern - masteri¿½s < / pi: function >
    < / pi: Additional_Information >
    < / pi: employee >
    < / pi: Extract_Employees >

    Databases:

    Oracle Database 10 g Enterprise Edition release 10.2.0.3.0 - production

    SQL > SELECT * FROM NLS_DATABASE_PARAMETERS;

    NLS_LANGUAGE AMERICAN
    NLS_TERRITORY AMERICA
    NLS_CURRENCY $
    NLS_ISO_CURRENCY AMERICA
    NLS_NUMERIC_CHARACTERS.,.
    WE8ISO8859P1 NLS_CHARACTERSET
    NLS_CALENDAR GREGORIAN
    NLS_DATE_FORMAT DD-MON-RR
    NLS_DATE_LANGUAGE AMERICAN
    NLS_SORT BINARY
    NLS_TIME_FORMAT HH.MI. SSXFF AM
    NLS_TIMESTAMP_FORMAT-DD-MON-RR HH.MI. SSXFF AM
    NLS_TIME_TZ_FORMAT HH.MI. SSXFF AM TZR
    NLS_TIMESTAMP_TZ_FORMAT DD-MON-RR HH.MI. SSXFF AM TZR
    NLS_DUAL_CURRENCY $
    BINARY NLS_COMP
    NLS_LENGTH_SEMANTICS BYTES
    NLS_NCHAR_CONV_EXCP FAKE
    NLS_NCHAR_CHARACTERSET AL16UTF16
    NLS_RDBMS_VERSION 10.2.0.3.0



    The Xml file above with UTF-8 character sets which is multi bytes.

    But in my character database is WE8ISO8859P1 for example ISO-8859-1 (single-byte character set)

    SQL > SELECT extractValue (Value (x) ', ' / pi:Employee/pi:Additional_Information/pi:Job_Title','xmlns:pi="urn:com.workday/picof ' ')
    TABLE (XMLSequence (extract (XMLType (bfilename('XMLDIR','XML_Issue_227176.xml'), nls_charset_id ('AL32UTF8')),'/ pi: Employee ',' xmlns:pi="urn:com.workday/picof"'))) x;)))


    which gives the following error:

    Error:
    ORA-31011: XML parsing failed
    ORA-19202: an error has occurred in the processing of XML
    LPX-00200: could not convert from UTF-8 encoding to ISO-8859-1
    Error on line 1
    ORA-06512: at "SYS." XMLTYPE", line 295
    ORA-06512: at line 1

    Also I tried with this
    SQL > SELECT convert (extractValue (Value (x), ' / pi:Employee/pi:Additional_Information/pi:Job_Title','xmlns:pi="urn:com.workday/picof"'),'WE8ISO8859P1 ', 'UTF8'))
    TABLE (XMLSequence (extract (XMLType (bfilename('XMLDIR','XML_Issue_227176.xml'), nls_charset_id ('AL32UTF8')),'/ pi: Employee ',' xmlns:pi="urn:com.workday/picof"'))) x;)))

    The same error is according to the above error message.

    Please help in this regard.

    Thank you and best regards,
    Sandrine

    You know the code of real character behind "" or you receive the file like that?

    For the record, "" is the wildcard of UTF-8 (0xEFBFBD), so that the original character of the means has already been replaced and that very probably the file was not coded properly in the first place.

    With respect to the resolution of the problem, try another method to read the file:

    SQL> select value from nls_database_parameters where parameter = 'NLS_CHARACTERSET';
    
    VALUE
    ----------------------------------------
    WE8ISO8859P15
    
    SQL> SELECT x.*
      2  FROM XMLTable(
      3         XMLNamespaces(default 'urn:com.workday/picof')
      4       , '/Extract_Employees/Employee'
      5         passing xmltype(
      6                   dbms_xslprocessor.read2clob(
      7                     'COP_DIR'
      8                   , 'XML_Issue_227176.xml'
      9                   , nls_charset_id('AL32UTF8')
     10                   )
     11                 )
     12         columns job_title varchar2(30) path 'Additional_Information/Job_Title'
     13       ) x
     14  ;
    
    JOB_TITLE
    ------------------------------
    Intern -  Master¿s
     
    
  • How to treat an XML file that uses html characters?

    I need to shoot a userlist to my web application, and which means to invoke a web service on the authentication server.  I managed to do exactly that, but the XML file, that I give myself to face looks like this:

    <?xml version="1.0" encoding="UTF-8"?>
    <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><ns1:getAllUserInfoResponse soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xmlns:ns1="http://web.ws">
    <getAllUserInfoReturn xsi:type="soapenc:string" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/">
    &lt;?xml version = '1.0'?&gt;
    &lt;USER&gt;
    &lt;ROW num=&quot;1&quot;&gt;
    &lt;USER_ID&gt;25214&lt;/USER_ID&gt;
    &lt;LOGIN_ID&gt;JDOE&lt;/LOGIN_ID&gt;
    &lt;NAME_LAST&gt;JOHN&lt;/NAME_LAST&gt;
    &lt;NAME_FIRST&gt;DOE&lt;/NAME_FIRST&gt;
    &lt;NAME_MI&gt;Q&lt;/NAME_MI&gt;
    &lt;NAME_FI&gt;A&lt;/NAME_FI&gt;
    &lt;EMAIL&gt;[email protected]&lt;/EMAIL&gt;
    &lt;OFFICE_PHONE&gt;5551212&lt;/OFFICE_PHONE&gt;
    &lt;OFFICE_STREET1&gt;123 Main Street&lt;/OFFICE_STREET1&gt;
    &lt;/ROW&gt; &lt;/USER&gt; 
    ( etc )
    </getAllUserInfoReturn>
    </ns1:getAllUserInfoResponse>
    </soapenv:Body>
    </soapenv:Envelope> 
    

    I need to loop over that and get usernames, ID, rights, etc., but with her looking like that, I have my work cut out for me (I think).  I don't know if there is an easy way to replace the entities in an XML file (the docs seem to be down), and if there is, I don't know about it.

    Any ideas?

    BreakawayPaul wrote:

    I need to loop over that and get usernames, ID, rights, etc., but with her looking like that, I have my work cut out for me (I think).  I don't know if there is an easy way to replace the entities in an XML file

    Assuming that you already have the XML file using something like , then the following single line of code is sufficient:

    <,>"') (, false) >.

    Note, however, that your XML file will then contain an error. The processing instruction.", occurs twice.

  • Creating Oracle's XML files in a directory

    Hi all

    I was going through the concepts Oracle XMLDB and discovered that we can create an XML file using the instructions normal select.

    Now, I create an Oracle Directory that points to the remote Unix computer.

    I want to know if we can create this XML file in the directory that points to the remote Unix directory.

    I don't want to use here the concepts of coil or UTL_FILE.


    Receive your answer on that.

    Thank you
    Madhu K.

    I'm not sure of your condition. However, here are a few example file writing Oracle's XML to disk.

    SQL> drop table test_clob;
    
    Table dropped.
    
    SQL> CREATE TABLE test_clob (id INTEGER,clob_col CLOB);
    
    Table created.
    SQL> ed
    Wrote file afiedt.buf
    
      1  INSERT INTO test_clob VALUES(1,'
      2  
      3  
      4  AAA
      5  godknows
      6  xyz
      7  
      8  
      9  BBB
     10  something
     11  zbc
     12  
     13  
     14  CCCC
     15  whoknows
     16  mon
     17  
     18* ')
    SQL> / 
    
    1 row created.
    
    SQL> commit;
    
    Commit complete.
    
    SQL> DECLARE
      2   v_xml                 XMLTYPE ;
      3    v_doc                 XMLDOM.DOMDocument;
      4    v_dir                 VARCHAR2(2000);
      5    v_file                VARCHAR2(2000);
      6  BEGIN
      7    v_dir := 'TEST_DIR';
      8    v_file := 'emp.xml'; -- name of the output file
      9    SELECT xmltype(clob_col)
     10    INTO v_xml
     11    FROM test_clob
     12    WHERE id=1;
     13    v_doc := DBMS_XMLDOM.NEWDOMDOCUMENT(v_xml);
     14    DBMS_XMLDOM.WRITETOFILE(v_doc, v_dir||'\'||v_file, 'UTF-8');
     15    DBMS_XMLDOM.FREEDOCUMENT(v_doc);
     16  END;
     17  / 
    
    PL/SQL procedure successfully completed.
    
    SQL>
    

    - and the generated file:

    C:\>type emp.xml
    
    
      
        AAA
        godknows
        xyz
      
      
        BBB
        something
        zbc
      
      
        CCCC
        whoknows
        mon
      
    
    
    C:\>
    

    Another way:

    ---------------------------------------------------------
    SQL> DECLARE
      2    v_clob   CLOB := EMPTY_CLOB;
      3    v_amount INTEGER;
      4    /*** Curtesy to odie_63 ***/
      5    CURSOR cur_crl IS
      6      SELECT xmltype(response_file, nls_charset_id('CHAR_CS')).getclobval() rfile
      7               FROM clarity_response_log;
      8   /***************/
      9  BEGIN
     10    dbms_lob.createtemporary(v_clob, TRUE);
     11    FOR i IN cur_crl LOOP
     12      v_amount := DBMS_LOB.GETLENGTH(i.rfile);
     13      Dbms_LOB.WRITEAPPEND(v_clob, v_amount, i.rfile);
     14      v_amount := DBMS_LOB.GETLENGTH(CHR(10));
     15      Dbms_LOB.WRITEAPPEND(v_clob, v_amount, CHR(10)); --This is for Line break.
     16    END LOOP;
     17
     18    DBMS_XSLPROCESSOR.CLOB2FILE(cl      => v_clob,
     19                                flocation => 'TEST_DIR',
     20                                fname     => 'response.xml',
     21                                csid      => 0);
     22  END;
     23  / 
    
    PL/SQL procedure successfully completed.
    
    SQL>
    
  • [JS] Write an xml file.


    Hello.


    I want to write xml file using JavaScript only. (Without the xml in the document tag.)


    I tried to code below, but error.


    Please any advice for me.


    Thank you.

    main()
    function main()
    {
        var myDocument = app.activeDocument;
        var myDocumentSize = myDocument.documentPreferences.pageSize;
        var myDocumentWidth = myDocument.documentPreferences.pageWidth;
        var myDocumentHeight = myDocument.documentPreferences.pageHeight;
        
        var tfCount = myDocument.textFrames.count();
    
        var tfContentsArr = new Array(tfCount);
        var tfGeometricArr= new Array(tfCount);
    
        for(var i=0; i<tfCount; i++)
        {
            tfContentsArr[i] = myDocument.textFrames.item(i).contents;
            tfGeometricArr[i] = myDocument.textFrames.item(i).geometricBounds;
        }
        var tagRoot = new XML("<Info>");
        tagRoot[0].DocInfo[0].DocSize[0] = myDocumentSize;
        tagRoot[0].DocInfo[0].DocWidth[0] = myDocumentWidth;
        tagRoot[0].DocInfo[0].DocHeight[0] = myDocumentHeight;
    
        for(var i=0; i<tfCount; i++)
        {
            tagRoot[0].ItemInfo[0].Story[i].contents[0] = tfContentsArr[i];    // error point.   If the <Story>tag two or more.
            tagRoot[0].ItemInfo[0].Story[i].GeometricBounds[0] = tfGeometricArr[i];
        }
    
        alert(tagRoot.toXMLString());
    
        var settingsFile = File(Folder.desktop + "/CompleteDocumentXML.xml");
        settingsFile.open ("w");  
        settingsFile.write ("<?xml version='1.0'?>\r" + tagRoot);
        settingsFile.close ();  
    }
    
    
    
    
    
    
    

    The output I want:

    < info >

    < DocInfo >

    Size of < DocSize > < / DocSize >

    Width of < DocWidth > < / DocWidth >

    Height of < DocHeight > < / DocHeight >

    < / DocInfo >

    < ItemInfo >

    < Story >

    < content > content < / summary >

    < GeometricBounds > GeometricBounds < / GeometricBounds >

    < / history >

    < Story >

    < content > content < / summary >

    < GeometricBounds > GeometricBounds < / GeometricBounds >

    < / history >

    .....

    < / ItemInfo >

    < / info >

    No, sorry, I see now how to enter the code in this forum.

    In line 26, you try to write about history [i] .silence before story [i] even exist.

    If you create story [i] first of all, you should have no problem.

    that is, precede the line 26 with:

    tagRoot [0]. ItemInfo [0]. History [i] = ' to the ';

  • How Business Service (file protocol) can read the location of the server XML file


    Hi Experts,

    I have a use case where I have to expose a Web service and as a response, I send a large xml (size max would be 18 MB).

    Customer <>- ProxyService (exposed as a Web service) <>- BusinessService (File protocol) < - read - > File.xml

    Here the xml response must be stored in the "SomeName.xml" file in the directory of the same server share path.

    So when the Client calls ProxyService, inturn would call it BS, where BS inturn would have read the contents of the xml file and pass it back as a response to the customer via PS

    Challenge is here using Protocol of file I can't do BS to read the xml file, instead his writing in a new file with conent as input message.

    Can someone let me know is it possible to read a xml file using business service.

    Note: I know that the PS can read a file using the Protocol of files, but my BS need use cases to read the contents of the file.

    Any quick response is more significant.

    Thank you

    Deba

    Cannot use the OSB in this case file adapter, you need to use a file in OSB JCA adapter. Specifically, what is called a 'synchronous reading' JCA adapter type file. Can be created in JDeveloper and then pulls in EPCO, can then be invoked as you want to extract the contents of a file synchronously in a proxy stream.

  • How can I query the XML file that is stored as a CLOB data?

    Hi people,

    Please see below the example XML file, which is stored in 'os_import_docs', 'document' as a CLOB column.

    I would like to ask this XML file using some select SQL.


    How can I query form below XML?
    <?xml version="1.0" encoding="UTF-8"?>
    <etd>
      <header>
        <AR>000000000</AR>
        <AW>0</AW>
        <CT>S</CT>
        <CU>H</CU>
        <CZ>SS48</CZ>
        <BU>4</BU>
        <CH>0032</CH>
        <CK>2012-11-01</CK>
        <CL>21:18</CL>
        <CW>225</CW>
        <CX>0</CX>
        <CF>SS-CZL18</CF>
        <DV>2</DV>
      </header>
      <account_group id="234">
        <account id="234">
          <invoice id="000742024">
            <da>
              <AR>000742024</AR>
              <AW>0</AW>
              <CT>D</CT>
              <CU>A</CU>
              <CH>0032</CH>
              <BY>31-10-2012</BY>
              <CA>25-10-2012</CA>
              <AB>234</AB>
              <AA>234</AA>
              <BS>88754515</BS>
              <AD>Mike Tyson</AD>
              <AC>Mike Tyson</AC>
              <AZ>CZ6521232465</AZ>
              <AE/>
              <CG>A</CG>
              <AL>A</AL>
              <BZ>.</BZ>
              <AH>Some street</AH>
              <AI/>
              <AF>Some city</AF>
              <AK>Kraj</AK>
              <AG>CZ</AG>
              <AJ>885 21</AJ>
              <CR>21-11-2012</CR>
              <AY>602718709</AY>
              <AV>800184965</AV>
              <AP/>
              <AO/>
              <AQ/>
              <AN/>
            </da>
            <da>
              <AR>000742024</AR>
              <AW>0</AW>
              <CT>D</CT>
              <CU>A</CU>
              <CH>0032</CH>
              <BY>31-10-2012</BY>
              <CA>25-10-2012</CA>
              <AB>234</AB>
              <AA>234</AA>
              <BS>88754515</BS>
              <AD>Mike Tyson</AD>
              <AC>Mike Tyson</AC>
              <AZ>CZ6521232465</AZ>
              <AE/>
              <CG>A</CG>
              <AL>L</AL>
              <BZ>Mike Tyson</BZ>
              <AH>Some street</AH>
              <AI/>
              <AF>Some city</AF>
              <AK>Kraj</AK>
              <AG>CZ</AG>
              <AJ>885 21</AJ>
              <CR>21-11-2012</CR>
              <AY/>
              <AV>800184965</AV>
              <AP/>
              <AO/>
              <AQ/>
              <AN/>
            </da>
            <detaildc CH="0032" AB="234" BS="11888954" BB="32" BA="CZ" AT="" CI="7077329000002340342" AU="" DU="1Z48395" CB="CZK">
              <dc>
                <AW>0</AW>
                <CT>D</CT>
                <CU>C</CU>
                <BY>31-10-2012</BY>
                <CA>25-10-2012</CA>
                <CV>8151</CV>
                <BT>12111</BT>
                <CJ>1</CJ>
                <AM>0</AM>
                <DR>PC</DR>
                <DS/>
                <DO>25-10-2012</DO>
                <DQ>18:42</DQ>
                <CE>1</CE>
                <BH>8151</BH>
                <CY>8151 SHELL MALKOVICE P</CY>
                <DP>049336</DP>
                <DT/>
                <BQ/>
                <BR>500000</BR>
                <CN>30</CN>
                <CM>030</CM>
                <BO>160,00</BO>
                <BF>38,900</BF>
                <BC>6224,00</BC>
                <BI>32,417</BI>
                <CD>B</CD>
                <BG>0,600</BG>
                <BK>31,817</BK>
                <BJ>0,000</BJ>
                <DI>8</DI>
                <BP>20,00%</BP>
                <CC>CZK</CC>
                <BM>5090,67</BM>
                <BN>1018,13</BN>
                <BL>6108,80</BL>
                <BD>5090,67</BD>
                <BE>1018,13</BE>
                <DW>6108,80</DW>
                <CO>Nafta</CO>
              </dc>
            </detaildc>
            <dt>
              <AR>000742024</AR>
              <AW>0</AW>
              <CT>D</CT>
              <CU>T</CU>
              <CH>0032</CH>
              <BY>31-10-2012</BY>
              <CA>25-10-2012</CA>
              <AB>234</AB>
              <AA>234</AA>
              <BS>11888954</BS>
              <BB/>
              <BA>CZ</BA>
              <DG>1</DG>
              <CN>30</CN>
              <CM>030</CM>
              <DF>160,00</DF>
              <DH>litr</DH>
              <DJ>20,00%</DJ>
              <DD>5090,67</DD>
              <DE>1018,13</DE>
              <DC>6108,80</DC>
              <DB>CZK</DB>
              <DA>P</DA>
              <AX/>
              <CQ/>
              <CP/>
            </dt>
            <dt>
              <AR>000742024</AR>
              <AW>0</AW>
              <CT>D</CT>
              <CU>T</CU>
              <CH>0032</CH>
              <BY>31-10-2012</BY>
              <CA>25-10-2012</CA>
              <AB>234</AB>
              <AA>234</AA>
              <BS>11888954</BS>
              <BB/>
              <BA>CZ</BA>
              <DG>2</DG>
              <CN/>
              <CM/>
              <DF>160,00</DF>
              <DH>litr</DH>
              <DJ/>
              <DD>5090,67</DD>
              <DE>1018,13</DE>
              <DC>6108,80</DC>
              <DB>CZK</DB>
              <DA/>
              <AX/>
              <CQ/>
              <CP/>
            </dt>
            <dt>
              <AR>000742024</AR>
              <AW>0</AW>
              <CT>D</CT>
              <CU>T</CU>
              <CH>0032</CH>
              <BY>31-10-2012</BY>
              <CA>25-10-2012</CA>
              <AB>234</AB>
              <AA>234</AA>
              <BS>11888954</BS>
              <BB/>
              <BA>CZ</BA>
              <DG>19</DG>
              <CN/>
              <CM/>
              <DF/>
              <DH/>
              <DJ/>
              <DD>5090,67</DD>
              <DE>1018,13</DE>
              <DC>6108,80</DC>
              <DB>CZK</DB>
              <DA/>
              <AX/>
              <CQ/>
              <CP/>
            </dt>
            <dt>
              <AR>000742024</AR>
              <AW>0</AW>
              <CT>D</CT>
              <CU>T</CU>
              <CH>0032</CH>
              <BY>31-10-2012</BY>
              <CA>25-10-2012</CA>
              <AB>234</AB>
              <AA>234</AA>
              <BS>11888954</BS>
              <BB/>
              <BA>CZ</BA>
              <DG>8</DG>
              <CN/>
              <CM/>
              <DF/>
              <DH/>
              <DJ/>
              <DD>5090,67</DD>
              <DE>1018,13</DE>
              <DC>6108,80</DC>
              <DB>CZK</DB>
              <DA/>
              <AX/>
              <CQ/>
              <CP/>
            </dt>
          </invoice>
        </account>
      </account_group>
      <footer>
        <AR>999999999</AR>
        <AW>0</AW>
        <CT>S</CT>
        <CU>T</CU>
        <CZ>SS48</CZ>
        <BU>4</BU>
        <CH>0032</CH>
        <CK>2012-11-01</CK>
        <CL>23:04</CL>
        <CW>225</CW>
        <BX>1</BX>
        <CS>7</CS>
        <BW>0000000000000610880</BW>
      </footer>
    </etd>
    example - does not:
        select  x.*
        from os_import_docs d
             ,XMLTABLE('/etd/header'
                        PASSING httpuritype(d.document).getXML()
                        COLUMNS 
                           response_status varchar2(50) PATH 'AR'
                        )  x
       where d.object_id = 2587058
         and rownum = 1;  
    
     
    ORA-22835: Buffer too small for CLOB to CHAR or BLOB to RAW conversion (actual: 6196, maximum: 4000)
    Thank you very much
    Tomas

    No error on my side.

    I just put in the comments the two columns:

    SQL> SELECT h.AR
      2       , h.CK
      3       , h.CF
      4       , i.AR4
      5       , i.AD
      6       , ddc.*
      7       --, i.AR5
      8       --, i.DG
      9       , ddn.*
     10       , h.CZ
     11       , h.BU
     12       , h.CH
     13       , h.CK7
     14       , h.CL
     15  FROM os_import_docs d,
     16       XMLTable(
     17         '/etd'
     18         PASSING xmlparse(document d.document)
     19         COLUMNS
     20           AR        varchar2(10) PATH 'header/AR'
     21         , CK        varchar2(10) PATH 'header/CK'
     22         , CF        varchar2(10) PATH 'header/CF'
     23         , CZ        varchar2(10) PATH 'footer/CZ'
     24         , BU        varchar2(10) PATH 'footer/BU'
     25         , CH        varchar2(10) PATH 'footer/CH'
     26         , CK7       varchar2(10) PATH 'footer/CK'
     27         , CL        varchar2(10) PATH 'footer/CL'
     28         , invoices  xmltype      PATH 'account_group/account/invoice'
     29       ) h
     30     , XMLTable(
     31         '/invoice'
     32         PASSING h.invoices
     33         COLUMNS
     34           AR4       varchar2(10) PATH 'da/AR'
     35         , AD        varchar2(20) PATH 'da/AD'
     36         --, AR5       varchar2(10) PATH 'dt/AR'
     37         --, DG        varchar2(10) PATH 'dt/DG'
     38         , detaildc  xmltype      PATH 'detaildc'
     39         , detaildn  xmltype      PATH 'detaildn'
     40       ) i
     41     , XMLTable(
     42         '/detaildc'
     43         PASSING i.detaildc
     44         COLUMNS
     45           DU        varchar2(10) PATH '@DU'
     46         , CB        varchar2(10) PATH '@CB'
     47         , DO        varchar2(10) PATH 'dc/DO'
     48         , CY        varchar2(20) PATH 'dc/CY'
     49         , BM        varchar2(10) PATH 'dc/BM'
     50         , CO        varchar2(30) PATH 'dc/CO'
     51       ) (+) ddc
     52     , XMLTable(
     53         '/detaildn'
     54         PASSING i.detaildn
     55         COLUMNS
     56           CI        varchar2(20) PATH '@CI'
     57         , BY_       varchar2(10) PATH 'dn/BY'
     58         , BM6       varchar2(10) PATH 'dn/BM'
     59       ) (+) ddn
     60  ;
    
    AR         CK         CF         AR4        AD                   DU         CB         DO         CY                   BM         CO                             CI                   BY_        BM6        CZ         BU         CH         CK7        CL
    ---------- ---------- ---------- ---------- -------------------- ---------- ---------- ---------- -------------------- ---------- ------------------------------ -------------------- ---------- ---------- ---------- ---------- ---------- ---------- ----------
    000000000  2012-10-31 SS-CZL19   EI08P4993  ING. ANTONIN GURICA, 1Z48395    EUR        16-10-2012 ASFINAG POST_MAUT    1940,60    Dalnicni znamka                                                           SS47       4          0032       2012-10-31 01:25
    000000000  2012-10-31 SS-CZL19   EI08P4993  ING. ANTONIN GURICA, 1Z48395    EUR        17-10-2012 ASFINAG POST_MAUT    1328,10    Dalnicni znamka                                                           SS47       4          0032       2012-10-31 01:25
    000000000  2012-10-31 SS-CZL19   EI08P4993  ING. ANTONIN GURICA, 1Z48395    EUR        23-10-2012 ASFINAG POST_MAUT    1831,80    Dalnicni znamka                                                           SS47       4          0032       2012-10-31 01:25
    000000000  2012-10-31 SS-CZL19   EI08P4993  ING. ANTONIN GURICA, 1Z48395    EUR        24-10-2012 ASFINAG POST_MAUT    867,30     Dalnicni znamka                                                           SS47       4          0032       2012-10-31 01:25
    000000000  2012-10-31 SS-CZL19   EI08P4993  ING. ANTONIN GURICA, 1Z48396    EUR        23-10-2012 ASFINAG POST_MAUT    2749,00    Dalnicni znamka                                                           SS47       4          0032       2012-10-31 01:25
    
    
    
    000000000  2012-10-31 SS-CZL19   EI3496334  ING. ANTONIN GURICA, 1Z48397    HUF        29-10-2012 ALLAMI AUTOPALYAKEZE 233,50     Dalnicni znamka                                                           SS47       4          0032       2012-10-31 01:25
    000000000  2012-10-31 SS-CZL19   EI4DG3954  ING. ANTONIN GURICA,            EUR        22-10-2012 1047061              24267,70   Dalnicni znamka                                                           SS47       4          0032       2012-10-31 01:25
    000000000  2012-10-31 SS-CZL19   EI4E34269  ING. ANTONIN GURICA,            EUR        23-10-2012 TBS VIACARD          5671,60    Dalnicni poplatek                                                         SS47       4          0032       2012-10-31 01:25
    000000000  2012-10-31 SS-CZL19   EI8QF1520  ING. ANTONIN GURICA, 1Z48395    EUR        29-10-2012 LAMAIN               200,10     Dalnicni znamka                                                           SS47       4          0032       2012-10-31 01:25
    
    78 rows selected
     
    
  • Reading an XML file and write the content in another file xml in java

    Hello

    I'm new to xml parsing. My requirement is that I get a message (xml) using ibm MQ in the ByteArrayInputStream format. I read this xml message and write to another file.

    To do this, I create a CEP.

    First of all, I used simple reading and writing concept, but the output is "java.io.FileInputStream@3e25a5".
    Example of xml file
    -< customer >
    < > 1234 ClientId < / ClientId >
    STechnology < ClientName > < / ClientName >
    < DTU_ID > 567 < / DTU_ID >
    < ClientStatus > ACTIVE < / ClientStatus >
    -< LEAccount >
    < Customer > 678989 < / customer >
    < > 56743 LEId < / LEId >
    -< account >
    < AccountNumber > 9876543678 < / account number >
    < / account >
    < / LEAccount >
    -< Service >
    Y2Y < Cindicator > < / Cindicator >
    < PrefCode > 980 < / PrefCode >
    < BSCode > 876 < / BSCode >
    < MandatoryContent > MSP < / MandatoryContent >
    < / service >
    < / customer >

    Code:


    import java.io.ByteArrayInputStream;
    import java.io.FileInputStream;
    to import java.io.FileOutputStream;
    import java.io.IOException;
    import java.io.InputStream;
    import java.io.OutputStream;

    public class ByteArrayInputStreamToXml {}

    Public Shared Sub main (String [] GIS) throws IOException {}

    InputStream inputStream = new FileInputStream("C:\\soft\\test2\\sample1.xml");
    currentXMLBytes Byte = inputStream.toString () .getBytes ();
    ByteArrayInputStream byteArrayInputStream = new ByteArrayInputStream (currentXMLBytes);

    OutputStream out = new FileOutputStream("C:\\soft\\test\\data.xml");
    int read = 0;
    ubyte bytes [] = new byte [1024];

    While ((read = byteArrayInputStream.read (bytes))! = - 1) {}
    out. Write (bytes, 0, read);
    out. Write ("\n");
    }

    inputStream.close ();
    out. Flush();
    out. Close();

    System.out.println ("new file created!");

    }

    }

    Please suggest me how can I use DOM/SAX parser, I see several code on the net to read the xml file using SAX/DOM parser, but write an xml file after reading using ByteArrayInputStream I don't get. Assistance through some link examples will also be useful for me.

    Thank you
    Sumit

    Published by: user8687839 on April 30, 2012 02:37

    Published by: user8687839 on April 30, 2012 02:43

    user8687839 wrote:
    But the file is coming thanks to a queue and byte format. Must read the byte, and write to a file. So, how I tried to read the byte using the code above. Please suggest me the correct way.

    Simply write the bytes of the contents of the queue directly to a FileOutputStream. Still no need to SAX or DOM!

    Pseudo-code-

    Open a FileOutputStream .
    
    Until all the bytes of the queue have been read
        read some bytes from the queue.
        wite these bytes to the FileOutputStream.
    
    Close the FileOutputStream.
    

    Published by: sabre150 on April 30, 2012 11:30

  • Need help to read the xml file and place it in a table.

    Nice day!

    Here is the configuration. I have a xml file from another source which will call a stored procedure in my database (which I am supposed to create). This is a first for me, I've never done development pl/sql or worked with xml. :(

    That's what I hoped to accomplish, if there is a better way, that I am open to him.
    In short, to have a stored procedure that takes the xml file (transmitted by third parties via the call, no url must be a file), creates a temporary table and populates the two columns needed. Then, the SP will make a select join with the temporary table and other data available in another schema. Once the completed table selection will be truncated and dropped. SP farm.

    Details:
    DB: Oracle 11.2.0.1 RAC.
    Charset: AL32UTF8
    Example of XML: (nearly 10,000 lines like this in production)
    "< MerchantID report =" "#" name = 'Conversion detail report' ReportStartDate = '2011-09-27 12:00:00GMT' ReportEndDate = '2011-09-27 21:38:13GMT"Version ="1.1"> < Conversion = '1234567891234567 D' MerchantReferenceNumber Convertingdate =" 2011-09-27 13:39:02 "RequestID ="1234567891234567891234"> < OriginalDecision > REVIEW < / OriginalDecision > < NewDecision > ACCEPT < / NewDecision > < Reviewer > testusr < / examiner > < ReviewerComments > no reason to reject. < / ReviewerComments > < Notes > < Note Date = "2011-09-27 13:39:02" AddedBy = "testusr" comment = "Took possession" / > < / Notes > < queue > Digital Review < / queue > < profile > Digital orders QA < / profile > < / Conversion > "
    ...
    < / report >

    What I tried.
    I found a tutorial: http://it.toolbox.com/blogs/oracle-guide/oracle-and-xml-in-action-a-real-world-example-5319 I tried and was able to make it work. But I could not duplicate the results with my xml file. So I looked away and have had no success. :( I'm not a developer, so I'm really bad...

    I found a note of support: (how to load an XML file into a Database Table using DBMS_XMLSave unaided Bfile [227476.1 ID]) and couldn't make it work.

    I found some online then Odie son xml and tried these but slipped and couldn't get my versions of these great answers to work for me.

    Then... I'm here now and hoping that someone could walk me through this.


    I tinkered this SP (it doesn't have to be that way, the suggestions are greatly appreciated)

    create or replace procedure xml_to_table (call_1 call_2) as

    Start
    run immediately "CREATE GLOBAL TEMPORARY TABLE XMLType IMRPT
    --(clé primaire contrainte-imrpt_pk (MerchantReferenceNumber))
    XmlType store as xml binary basicfile
    -(high compression)
    virtual columns
    (MerchantReferenceNumber as (xmlcast (xmlquery ('/ Conversion/MerchantReferenceNumber ' from object_value content back) as VARCHAR2 (32))))
    , NewDecision as (xmlcast (xmlquery ('/ Conversion/NewDecision ' from object_value content back) as VARCHAR2 (10)))
    )
    -ON COMMIT PRESERVE ROWS

    run immediately 'save xml as a file on the local system?'

    insert into IMRPT (MerchantReferenceNumber, NewDecision)

    run immediately "join select statement.
    run immediately 'truncate table IMRPT.
    run immediately "drop table IMRTP.

    end;
    /

    On my last test, I tried to select just in the xml file using this:

    DECLARE
    indomdoc DBMS_XMLDOM. DOMDocument;
    innode DBMS_XMLDOM. DOMNode;
    myParser DBMS_XMLPARSER.parser;
    buf VARCHAR2 (2000);
    BEGIN
    myParser: = DBMS_XMLPARSER.newParser;

    DBMS_XMLPARSER.setBaseDir (myparser, 'XML_DIR');
    DBMS_XMLPARSER. Parse (myParser, "test.xml");

    indomdoc: = DBMS_XMLPARSER.getDocument (myParser);

    -just to test content
    innode: = DBMS_XMLDOM.makeNode (indomdoc);
    DBMS_XMLDOM.writeToBuffer (innode, buf);
    Dbms_output.put_line (BUF);

    dbms_xmldom.freeDocument (indomdoc);
    dbms_xmlparser.freeParser (myParser);
    END;
    /

    It was another accident and burn.

    Any help would be appreciated.

    Thank you

    Like I said:

    Here is an example using a REF CURSOR variable ( you will need to declare a plus for your actual procedure )

    Your procedure has two parameters, you must declare two variables to hold the two REF CURSOR ;)

    DECLARE
    
      v_filename      VARCHAR2(50) := 'DMReport.xml';
      v_rc1            SYS_REFCURSOR;
      v_rc2            SYS_REFCURSOR;
    
      v_order_name       VARCHAR2(100);
      v_reason_text      VARCHAR2(100);
    
    BEGIN
    
      xml2table(v_filename, v_rc1, v_rc2);
    
      commit;
    
      loop
        fetch v_rc1 into v_order_name;
        exit when v_rc1%notfound;
        dbms_output.put_line('ORDER_NAME='||v_order_name);
      end loop;
    
      close v_rc1;
    
      loop
        fetch v_rc2 into v_order_name, v_reason_text;
        exit when v_rc2%notfound;
        dbms_output.put_line('ORDER_NAME='||v_order_name||', REASON_TEXT='||v_reason_text);
      end loop;
    
      close v_rc2;
    
    END;
    /
    

    If you test this in SQL * Plus, do not forget to SET SERVEROUTPUT ON to see the result.

  • Web services with xml file

    Hello

    How read xml file using web services?

    Here's my cfc web services: (I just want to see how to read the xml file)

    < cfproperty >

    < name cffunction = "getBooks" access = "remote" returntype = "string" output = "no" >

    < cfargument "xmlObject" type = name = "xml" required = "yes" >

    < cfset BookResponse = "" > "".

    < cfset var arrIndx = "" > "".

    < cftry >

    < = cfloop '1' to = "#ArrayLen (arguments.xmlObject.XmlChildren)" # "index ="arrIndx">"

    < cfset BookResponse = arguments.xmlObject.XmlChildren [arrIndx]. XmlName >

    < / cfloop >

    < cfcatch type = "any" >

    < cfset BookResponse = ' #cfcatch.message # #cfcatch.detail # ' >

    < / cfcatch >

    < / cftry >

    < cfreturn BookResponse >

    < / cffunction >

    < / cfproperty >

    Here my code to test web services:

    1. define the XML

    <!-installation of the XML to work with->

    < cfsavecontent variable ="XMLFile"><? XML version ="1.0"? >

    < root >

    < header >

    < user > 1 < / user >

    < / header >

    < book >

    0321330110 < isbn >< / isbn >

    < title > Macromedia ColdFusion MX 7 Certified Developer Guidestudy / < /title >

    < author > BenForta / < / author >

    < / book >

    < header >

    < user > 2 < / user >

    < / header >

    < book >

    0596004206 < isbn >< / isbn >

    < title > Learning XML, secondedition / < /title >

    < author > ErikRay / < / author >

    < / book >

    < header >

    < user > 3 < / user >

    < / header >

    < book >

    0782140297 < isbn >< / isbn >

    < title > ColdFusion Developer's GuideMX / < /title >

    < author > RaymondCamden / < / author >

    < / book >

    < / root >

    < / cfsavecontent >

    2 call web services

    < cfinvoke

    method = "getBooks".

    returnvariable = "rawXMLBookList."

    " webservice =" http://localhost/Hoteleria/WebServices/books.cfc?wsdl "> "

    < name cfinvokeargument = "xmlObject" value = "#XMLFile #" >

    < / cfinvoke >

    <!-< cfset XMLDocResult = XmlParse (rawXMLBookList) >

    < cfdump var = "#XMLDocResult #" >-->

    < cfdump var = "#rawXMLBookList #" >

    3 error: Element XMLOBJECT. XMLCHILDREN is undefined in ARGUMENTS.

    I also try using XMLParse without success.

    Any ideas?

    Thank you

    Sorry about that. It worked for me!

    What about doing it on the basis of chains, as follows:

    Books.CFC

    #arguments.xmlString #.

    testPage.cfm


    1

    0321330110

    Certified Macromedia ColdFusion MX 7 Developer Study Guide

    Ben Forta

    2

    0596004206

    Learning XML, second edition

    Erik Ray

    3

    0782140297

    ColdFusion MX Developer's Handbook

    Raymond Camden

    <>

    method = "getAuthors".

    returnvariable = "authorList.

    "WebService ="http://localhost/Hoteleria/webServices/books.cfc?wsdl ">

  • Grouping data in xml file problem

    Hi all

    Here is an example of xml file used as input source in my BEEP stand-alone report:

    rowset <>
    < SAMPLE_ROW >
    < ID > 1234 / < ID >
    < Code > < CODE > A1
    FIRST YEAR < TEXT > < / TEXT >
    B1 < CODE > < code >
    SECOND YEAR < TEXT > < / TEXT >
    < / SAMPLE_ROW >
    < SAMPLE_ROW >
    < ID > 6789 / < ID >
    < Code > < CODE > C1
    THIRD YEAR < TEXT > < / TEXT >
    B1 < CODE > < code >
    SECOND YEAR < TEXT > < / TEXT >
    < / SAMPLE_ROW >
    < / LINES >


    The expected output should be:

    ID # 1234
    Categories: A1
    FIRST YEAR
    B1
    SECOND GRADE

    ID # 6789
    Categories: C1
    THIRD YEAR
    B1
    SECOND GRADE

    And design that I created is:

    <? for-each-group: SAMPLE_ROW; / ID? >
    ID # <? ID? >
    Categories: <? CODE of? >
    <? TEXT? >
    <? end for each group -? >

    I could only show partial result but not able to reach my desired output. Please guide.

    Thank you.

    Ideally, what you want is:


         
              1234
              
              A1
              FIRST YEAR
              

              
              B1
              SECOND GRADE
              

         

         
              6789
              
              C1
              THIRD YEAR
              

              
              B1
              SECOND GRADE
         

         

    With this structure without having to regroup but only for each.
    Your third can reorganize?

    Jorge

Maybe you are looking for

  • constant anti virus reports when using firefox

    I constantly receive anti alerts of virus using firefox I was not do this with the Explorer, it seems to be related to the "search request". I get this message "windows cannot find"C:\Users\FAMILY-1\App Data\Local\Temp\NEW26A4.tmp.exe". Make sure you

  • Location of the slots of RAM on my Satellite M100-152

    Hi people!First of all, sorry for my English :). I want to upgrade my memory from 1 GB to 4 GB, the maximum capacity (2 modules with 2 GB each). I already have the new RAM, but I'm not really sure of its specifications: My motherboard supports 667 Mh

  • x 64 printer ethernet 8700

    I can not connect my HP photosmart 8700 printer to my new computer pro 64-bit Windows.  The printer is connected via Ethernet USB not.  It seems that there is no 64-bit driver available.  What should I do next?

  • How to use the fp file in my project

    In my project, I used an ini and toolbar functions, these functions are included in inifile.fp and toolbar.fp. Recently I found that my routine released .exe userly got runtime error. And I've changed CVI compilation environment as below: 1. add thes

  • By connecting to Window Vista is errro ' configuration data for this product is damaged contact the support staff.

    1. I get this error before moving on to the windows vista login ' configuration data for this product is damaged contact the support staff "I tried repairing the system by using the Windows disk installation and chkdsk/f/r and none of the steps helpe