Generation of XML Document

Dear all

I have a requirement to generate the XML data as shown in the light of the definition of XML schema. I did it by using oracle developer report to generate put them in the xml document.

My question is that it is important to attribute sequences for example

XSD has attribute
------------------------
Name
Address
phoneno
------------------------

But when I generate the XML using oracle report developer he changes the order of the attributes like this

-------------------------
phoneno
address
name
------------------------


Please guide this poor sequence of attribute have a problem during the validation of xml with xsd document.

Concerning

XML 1.0 specification:

http://www.w3.org/TR/REC-xml/#sec-StartTags

The name the start end-tags and gives the type of the element. [Definition: the name-AttValue pairs are referred to as the specification of attribute of the element], [definition: with the name in each pair referred to as the attribute name] and [definition: the content of the AttValue (the text between the "or"delimiters) as the attribute value.] Note that the order of specification of attribute in a start tag or empty element tag is not significant.

Tags: Oracle Development

Similar Questions

  • Is it safe to remove the date in the name of the xml document?

    Hi, the iTunes library xml document is titled "iTunes Library" 2015-07-11. Is this correct and problems can occur if l remove the name date?

    L ask because my Sonos system has trouble with importing iTunes playlists and they are suggesting that the document name length perhaps the question.

    Thank you

    This file is a copy of the database (.itl) iTunes created by iTunes, during an update.  The XML version of the library is always called iTunes Library.xml.  Is there is no basis for comment by Sonos, that it may be related to the length of the absolute path of the XML file - where it is on your system?

  • Error unhandled exception has occurred in a component in your application. There is an error in XML document (0 0).

    Original title: Microsoft.NET Framework

    I got a message saying that the unhandled exception has occurred in a component in your application. There is an error in XML document (0 0). What should I do?

    Hello

    1. which version of the Windows operating system is installed on the computer?

    2. Once you get the error message?

    3. What is the exact error message you get?

    4 did you last modified the software on the computer?

    I suggest you go through the steps mentioned in the link. What version of the operating system Windows am I running?

    http://Windows.Microsoft.com/en-us/Windows7/help/which-version-of-the-Windows-operating-system-am-i-running

    Step 1:

    I suggest to start your computer in safe mode and check if the problem persists.

    Start your computer in safe mode

    http://Windows.Microsoft.com/en-us/Windows7/start-your-computer-in-safe-mode

    Step 2:

    I also suggest you to perform a clean boot to safe mode and check.

    Clean boot:

    This could happen if one of the substantive programmes is in conflict with the proper functioning of your computer. To help resolve the error and other messages, you can start Windows 7 by using a minimal set of drivers and startup programs. This type of boot is known as a "clean boot". A clean boot helps eliminate software conflicts.

    How to troubleshoot a problem by performing a clean boot in Windows Vista or Windows 7 http://support.microsoft.com/kb/929135

    Note: when you are finished troubleshooting, follow step 7 article to start the computer to a normal startup.

  • How to use CAPICOM to digitally sign an xml document given a certifcate security uses the RSA-SHA256 algorithm

    We have an old VB6 application that uses CAPICOM to digitally sign an xml document?  The certificate of the previous guest set implemented the RSA-SHA1 algorithm.

    New client certificate using RSA-SHA256.  Can I use CAPICOM2 or .NET to use the new certificate to accomplish the same function?

    Hello

    Your question of Windows is more complex than what is generally answered in the Microsoft Answers forums. It is better suited for the IT audience Pro on MSDN. Please post your question in the MSDN forum. You can follow the link to your question:

    http://social.msdn.Microsoft.com/forums/en-us/categories/

  • Impossible to analyze the xml.aspx contained in the main.js.Iam get the following error"could not obtain XML document, and the connection has failed: status 500

    Impossible to analyze the xml.aspx contained in the main.js.Iam get the following error"could not obtain XML document, and the connection has failed: status 500

    My main.js resembles

    xmlDataSource var = {}
     
    URL: 'dcds. - symbianxml.aspx", etc. (sample).
     
    init: function() {}
    URL, successful reminder, the reminder of failure
    This.Connect (this.) (URL, this.responseHandler, this.failureHandler);
    },
     
    /**
    * Analyzes the XML document in an array of JS objects
    @param xmlDoc XML Document
    * @returns {table} array of objects of the device
    */
    parseResponse: {function (xmlDoc)}
        
    var chElements = xmlDoc.getElementsByTagName ("channel");
       
    channels of var = [];
      
    Console.log (chElements.Length);
      
    for (var i = 0; i)< chelements.length;="">
        
    var channel = {};
       
    for (var j = 0; j)< chelements[i].childnodes.length;="">
        
    var node = Sublst.ChildNodes(1).ChildNodes(0) chElements [i] [j];
                
    If (node.nodeType! = 1) {//not an element node}
    continue;
    }
           
    Channel [node. TagName] = node.textContent;
    }
       
    Channels.push (Channel);
    }
    Console.log (Channels.Length);
    return the strings;
    },
     
    /**
    Manages the response and displays the data from device web app
    @param xmlDoc
    */
    responseHandler: {function (xmlDoc)}
      
    var channel = this.parseResponse (xmlDoc);
    var markup = "";
       
    for (i = 0; i< channels.length;="">
       
    markup += this.generateHTMLMarkup (i, channels [i]);
    }
    document.getElementById("accordian").innerHTML = mark-up;
    },
     
    /**
    Generates HTML tags to insert in to the DOM Web App.
    * @index i, index of the device
    @param device, device object
    */
    /*
    generateHTMLMarkup: function (i, channel) {}
      
    var str ="";
    "Str += '.


    ' onclick =-"mwl.setGroupTarget ('#accordian ',' #items_" + i + "', 'ui-show ',' ui - hide');" + ".
    "mwl.setGroupTarget ('#accordian ',' item_title_ #" + i + "', 'ui-open', 'ui-farm'); Returns false; \ » > » ;
    "" Str += "" + channel ['name'] + ' ";
    "Str += '.
    ";
    "Str += '.
    ";
    "Str += '.
    "+" id: "+ channel ['id'] +" ' "
    ";
    "Str += '.
    "+" type: "+ channel ['type'] +" ' "
    ";
    "Str += '.
    "+" language: "+ channel ['language'] +" ' "
    ";
    "Str += '.
    «+ "bandwidth:" + "fast" channel + "»»
    ";
    "Str += '.
    "+" cellnapid: "+ channel ["cellnapid"] +". "
    ";
    "Str += '.
    «+ ' link: '+'start the video »»
    ";
    "Str += '.
    ";
    return str;
    },*/
    generateHTMLMarkup: function (i, channel) {}
       
    var str ="";
    "Str += '.
    ";
    str +=  "" +
    "" + channel ['name'] + ""+""
    ";
    "Str += '.
    «+ ' link: '+'start the video »»
    ";
         
    return str;

    },
     
    failureHandler: {function (reason)}
    document.getElementById("accordian").innerHTML = "could not get XML document.
    '+ reason;
    },
     
    /**
    Retrieves a resource XML in the given URL using XMLHttpRequest.
    @param url URL of the XML resource to retrieve
    @param called successCb, in the XML resourece is recovered successfully. Retrieved XML document is passed as an argument.
    @param failCb called, if something goes wrong. Reasons, in text format, is passed as an argument.
    */

    Connect: {function (url, successCb, failCb)
      
    var XMLHTTP = new XMLHttpRequest();
      
    XMLHTTP. Open ("GET", url, true);

    xmlhttp.setRequestHeader("Accept","text/xml,application/xml");
    xmlhttp.setRequestHeader ("Cache-Control", "non-cache");
    xmlhttp.setRequestHeader ("Pragma", "non-cache" "");
      
    var that = this;
    XMLHTTP.onreadystatechange = function() {}
       
    If (xmlhttp.readyState == 4) {}
        
    If (XMLHTTP. Status == 200) {}
         
    {if (!) XMLHTTP.responseXML)}
    try {}
    If server has not responded with good an XML MIME type.
    var domParser = new DOMParser();
    var xmlDoc = domParser.parseFromString(xmlhttp.responseText,"text/xml");
           
    successCb.call (that, xmlDoc);
           
    } catch (e) {}
    failCb.call (, "answer was not in an XML format.");
    }
              
    } else {}
    successCb.call (that, xmlhttp.responseXML);
    }
    } else {}
    failCb.call (this, "connection failed: status"+ xmlhttp.status ");
    }
    }
    };
    XMLHTTP. Send();
    }
    };

    Please see the content in main.js is fully analyzed.

    Forward for the solution to my request all members of the community...

  • XSL file to format XML Document

    Hey programmers,.

    This thread is referring to this one (http://supportforums.blackberry.com/t5/Java-Development/Reading-XML-document/m-p/512637) which was resolved yesterday.

    A little history: I ripped with success of XML from a server in response to a post message, I was able to put it inside a document using InputStream and was able to read the text content of this XML on the Blackberry screen.

    Now I would use a .xsl file to format the XML document and then display it on the screen as HTML. Is this possible? How would I go to do this?

    I found this piece of code on the internet (java, not specific to the blackberry associated):

    public class CreationHTML {}
    public static void createHTML (xml, xsl string string, string html) bird Exception {}
    Create the source of DOM
    DocumentBuilderFactory FabriqueD = DocumentBuilderFactory.newInstance ();
    DocumentBuilder builder = fabriqueD.newDocumentBuilder ();
    File fileXml = new File (xml);
    Document document = builder.parse (fileXml);
    Source source = new DOMSource (text);

    Creation of the output file
    File fileHtml = new File (html);
    Result result = new StreamResult (fileHtml);

    Configuration of the transformer
    FabriqueT TransformerFactory = TransformerFactory.newInstance ();
    StreamSource stylesource = new StreamSource (xsl);
    Transformer transformer = fabriqueT.newTransformer (stylesource);
    transformer.setOutputProperty (OutputKeys.METHOD, "html");
            
    Transformation
    transform. Transform (source, result);
    }
    Public Shared Sub main (String [] args) {}
    try {}
    createHTML ("Annuaire.xml", "Annuaire.xsl", "Annuaire.html");
    } catch (Exception e) {e.printStackTrace () ;}
    }
    }

    But actually I have a .xsl, not a string file, do you think that I could adapt it to meet my needs?

    Many thanks for any help!

    If you implement TransformerFactory on blackberry: sure, no problem.

    In the opposite case: rather not.

  • How to create an XML Document and convert it into a string? (send through wireless network)

    Hello

    I am now able to post data to a web server by using Blackberry JDE (medical use).

    Now, instead of display the plain text, I would like to send an XML file.

    I am able to do it using this code on a 'normal ': Java application

    import java. IO;
    Org.w3c.dom import. *;
    Import javax.xml.parsers. *;
    Javax.xml.transform import. *;
    Javax.xml.transform.dom import. *;
    Javax.xml.transform.stream import. *;

    public class {XML
    Public Shared Sub main (String [] args) {}
    try {}
    DocumentBuilderFactory plant = DocumentBuilderFactory.newInstance ();
    DocumentBuilder builder = factory.newDocumentBuilder ();
    Doc document = builder.newDocument ();
               
    Root element = doc.createElement ("root");
    doc.appendChild (root);
               
    Child element = doc.createElement ("child");
    child.setAttribute ("name", "value");
    root.appendChild (child);

    Add a text element to the child
    Text = doc.createTextNode ("text");
    child.appendChild (text);

    implement a transformer
    TRANSFAC TransformerFactory = TransformerFactory.newInstance ();
    Transformer trans = transfac.newTransformer ();
    trans.setOutputProperty (OutputKeys.OMIT_XML_DECLARATION, 'yes');
    trans.setOutputProperty (OutputKeys.INDENT, 'yes');

    create the string of the xml tree
    StringWriter sw = new StringWriter();
    StreamResult result = new StreamResult (sw);
    DOMSource source = new DOMSource (doc);
    TRANS. Transform (source, result);
    String xmlString = sw.toString ();
    System.out.println (xmlString);
    } catch (Exception e) {}
    make error management
    }
    }
    }

    However, on the Blackberry JDE, many functions is not recognized.

    I saw the class DocumentBuilderFactory (net.rim.device.api.xml.parsers.DocumentBuilderFactory), the DocumentBuilder (net.rim.device.api.xml.parsers.DocumentBuilder) class and the interface of Document in the docs of Blackberry Java (4.2.1).

    So, I'm able to create an XML Document... but I don't know how to convert to a string?

    How can I do this? The TransformerFactory class doesn't seem to exist... and I did not find an alternative yet.

    At the present time, here is the code I use to publish data:

    String coord = lat + ";" + LNG; post data
    con = (HttpConnection) Connector.open (url); Open the connection URL
    con.setRequestMethod (HttpConnection.POST); POST method
    con.setRequestProperty ("Content-Type", "application/x-www-formulaires-urlencoded");
    out = con.openOutputStream (); display the results in a stream
    out. Write (Coord.GetBytes ());

    responseCode = con.getResponseCode (); Send data and receive the response code
    If (responseCode! = HttpConnection.HTTP_OK) {}
    System.out.println ("HTTP STATUS CODE: 404"); error
    } else {}
    System.out.println ("HTTP STATUS CODE: 200"); successful
    }
    If (con! = null) con. Close; close the connection to the URL

    As mentioned, rather than display a string with a delimiter between each value (there will be a lot more than two values finally), I would like to publish an XML.  It will be more "elegant" and easier to parse by my code on the web server.

    Maybe I don't have to convert it to a string?

    In other words, how can I convert my XML Document to send it via the wireless network?

    Thanks for your help!

    TransformerFactory does not exist in the BlackBerry API.  As far as I can tell, you need to implement yourself.  You can do this by walking the DOM and the output of channels.  They have an example of the market of the DOM in the XMLDemo, but they view as fields, you just need to write strings.

  • Select start_with - connect in XML document (it looks like a bug in 11.2 g)

    Hello

    I really have no idea of what is the difference between these two cases and why one does not return anything. I have an xml document:

    <?xml version="1.0" encoding="UTF-8" standalone="yes"?><dirObjects>
        <DIR_OBJECT>
            <ABSOLUTE_PATH>/home/pavel/Templates</ABSOLUTE_PATH>
            <OBJ_ID>0</OBJ_ID>
            <TREE_LEVEL>0</TREE_LEVEL>
            <OBJ_NAME>Templates</OBJ_NAME>
            <PARENT_ID>-1</PARENT_ID>
            <OBJ_TYPE>D</OBJ_TYPE>
        </DIR_OBJECT>
        <DIR_OBJECT>
            <ABSOLUTE_PATH>/home/pavel/Templates/test.txt</ABSOLUTE_PATH>
            <OBJ_ID>1</OBJ_ID>
            <TREE_LEVEL>1</TREE_LEVEL>
            <OBJ_NAME>test.txt</OBJ_NAME>
            <PARENT_ID>0</PARENT_ID>
            <OBJ_TYPE>F</OBJ_TYPE>
        </DIR_OBJECT>
    </dirObjects>
    
    

    and if I run the select statement of the following

    with
    xml_result as (
    select xtab.ABSOLUTE_PATH  ABSOLUTE_PATH
         , xtab.OBJ_TYPE
         , to_number(xtab.PARENT_ID) PARENT_ID
         , xtab.OBJ_NAME
         , to_number(xtab.TREE_LEVEL) TREE_LEVEL
         , to_number(xtab.OBJ_ID) OBJ_ID
      from apex_collections c,
              XMLTable('/dirObjects/DIR_OBJECT' passing xmltype001
                COLUMNS ABSOLUTE_PATH PATH 'ABSOLUTE_PATH'
                      , OBJ_TYPE PATH 'OBJ_TYPE'
                      , PARENT_ID PATH 'PARENT_ID'
                      , OBJ_NAME PATH 'OBJ_NAME'
                      , TREE_LEVEL PATH 'TREE_LEVEL'
                      , OBJ_ID PATH 'OBJ_ID'
              ) xtab
    where c.collection_name = 'P9_DOREST_RESULTS'
    )
    select ABSOLUTE_PATH,OBJ_TYPE,PARENT_ID,OBJ_NAME,TREE_LEVEL,OBJ_ID
    from
    xml_result
    --start with PARENT_ID =-1 connect by prior OBJ_ID=PARENT_ID
    
    

    He returned these 2 files

    Result:

    ABSOLUTE_PATH Obj_type PARENT_ID OBJ_NAME TREE_LEVEL OBJ_ID
    / Home/Pavel/templatesD-1Templates00
    /Home/Pavel/templates/test.txtF0test.txt11

    but when I Uncomment the last row, it returns nothing.

    When I insert exactly the same values in a normal table that looks like this:

    Name of Type Null

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

    ABSOLUTE_PATH VARCHAR2 (4000)

    OBJ_TYPE VARCHAR2 (4000)

    PARENT_ID NUMBER

    OBJ_NAME VARCHAR2 (4000)

    NUMBER OF TREE_LEVEL

    OBJ_ID NUMBER

    After the statement select returns the same result as the previous

    SELECT ABSOLUTE_PATH ,OBJ_TYPE ,PARENT_ID ,OBJ_NAME ,TREE_LEVEL ,OBJ_ID
    FROM dir_objects
    --START WITH parent_id    =-1 CONNECT BY prior obj_id =parent_id
    
    

    Result:

    ABSOLUTE_PATH Obj_type PARENT_ID OBJ_NAME TREE_LEVEL OBJ_ID
    / Home/Pavel/templatesD-1Templates00
    /Home/Pavel/templates/test.txtF0test.txt11

    but when I Uncomment the last row (START WITH parent_id = - 1 CONNECT BY prior obj_id = parent_id), it always returns 2 records

    Result:

    ABSOLUTE_PATH Obj_type PARENT_ID OBJ_NAME TREE_LEVEL OBJ_ID
    / Home/Pavel/templatesD-1Templates00
    /Home/Pavel/templates/test.txtF0test.txt11

    Any idea what is the difference and why the first select statement returns no that anything would be much appreciated.

    Best regards

    Pavel

    The solution to this nasty bug and arresting the optimizer doing a rewrite buggy was to use a scalar subquery via dual and expose the XML in this way.

    Select ABSOLUTE_PATH, OBJ_TYPE,

    PARENT_ID, OBJ_NAME,

    TREE_LEVEL, OBJ_ID

    from (select xtab. ABSOLUTE_PATH ABSOLUTE_PATH,

    xtab. OBJ_TYPE,

    TO_NUMBER (xtab. PARENT_ID PARENT_ID),

    xtab. OBJ_NAME,

    TO_NUMBER (xtab. TREE_LEVEL TREE_LEVEL),

    TO_NUMBER (xtab. OBJ_ID OBJ_ID)

    from (select (select xmltype001

    of apex_collections c

    where c.collection_name = 'P9_DOREST_RESULTS') as xmltype001

    the double) c,.

    XMLTable)

    ' / dirObjects/DIR_OBJECT.

    passage xmltype001

    COLUMNS

    ABSOLUTE_PATH PATH "ABSOLUTE_PATH."

    OBJ_TYPE PATH "OBJ_TYPE."

    PARENT_ID PATH "PARENT_ID"

    OBJ_NAME PATH "OBJ_NAME,"

    TREE_LEVEL PATH "TREE_LEVEL."

    OBJ_ID PATH "OBJ_ID.

    ) xtab

    )

    Start by PARENT_ID = - 1

    Connect prior OBJ_ID = PARENT_ID

  • "Error loading XML Document from saw.dll./answers/saw.selections.xml?fmapId=RRxCfQ. "The answer was: ' when you access analytic dashboards

    During these months, we were faced with an error "" error when loading XML Document saw.dll./answers/saw.selections.xml?fmapId=RRxCfQ. "The answer was: ' when you access analytical dashboards OBIEE.

    It is a global problem, and users cannot access any dashboard in OBIEE analytics.

    We used weblogicPlugin 1.1 to configure the reverse proxy for our 64-bit using IIS 7.5 weblogic server. WebLogic Server Version: 10.3.6.0. We see the error "resolveRequest: application ' / analytics/saw.dll/answers/saw.selections.xml' has not been sent." Found OR '?', or ';' in URI "in the IIS Proxy log.

    This question is regardless of the browser and get to each broser we tested. Users should click on the error message loading XML Web page pop for about 20 times to see the dashboard.


    No idea how to solve this problem?

    By Oracle Support suggestion, I installed Oracle HTTP server (OHS) and the problem is solved. For now, the problem is solved but SITEMINDER SSO and Siebel IFRAMES should be tested with OSH being the web server now.

  • several items taken from repetition of XML document

    Oracle 11.1.0.7 Enterprise Edition version

    Solaris 10 Sparc 64-bit

    Hello all,.

    I hope you can help me because I was able to find a useful solution through research and good old fashioned trial and error!

    I have an XML document that I loaded successfully and is stored as an xmltype in a table "GetWOAFinishingPigsRe1711_TAB" (the name of the generated System) and who has nested, picking up items (below) - excuse the object! :

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

    < tns:GetWOAFinishingPigsResponse xmlns:tns ="Http://localhost: 8085/WS_WoaFinishingPigs_GetAllData" > ""

    - < WS_ResultWoaFinishingPigs >

    < ReasonsForNotCompleting > not_correct_weight </ ReasonsForNotCompleting >

    < TotalPigsOnFarm > 0 < / TotalPigsOnFarm >

    < TotalDrySowsFinishingPigsOnFarm > 0 < / TotalDrySowsFinishingPigsOnFarm >

    < SowsOrPigs > Finishing_pigs </ SowsOrPigs >

    < PercentageDeathBatch > 0.0 < / PercentageDeathBatch >

    < PercentageCullsBatch > 0.0 < / PercentageCullsBatch >

    < PercentageDeath12Months > 0.0 < / PercentageDeath12Months >

    < PercentageCulls12Months > 0.0 < / PercentageCulls12Months >

    < BatchStartAge > 0 < / BatchStartAge >

    < BatchStartWeight > 0 < / BatchStartWeight >

    < BatchEndWeight > 0 < / BatchEndWeight >

    < UndockedPigsPresent > fake </ UndockedPigsPresent >

    < EarBiting > fake </ EarBiting >

    < FlankBiting > fake </ FlankBiting >

    < FurtherCare > 0 < / FurtherCare >

    < NoLame > 0 </ NoLame >

    < NoSkinCondition > 0 < / NoSkinCondition >

    < NoBodyWounds > 0 < / NoBodyWounds >

    < NumberTraumaticInjury > 0 < / NumberTraumaticInjury >

    < TooDirtyToAssess > 0 < / TooDirtyToAssess >

    < ManureScore0 > 0 < / ManureScore0 >

    < LegSwellingScore0 > 0 < / LegSwellingScore0 >

    < SkinScore0 > 0 < / SkinScore0 >

    <SkinTooDirtyToAssess>0< /SkinTooDirtyToAssess>

    < Lameness > 0 </ Boiterie >

    < TailLesionsNone > 0 < / TailLesionsNone >

    < WoaID > 4198 </ WoaID >

    < VisitType > Inspection </ VisitType >

    < FFRegNo > 0541.0068 < / FFRegNo >

    < Producer > Farm Hyatt hotel </ Producer >

    < VisitDate > 2014-10 - 08T 23: 00:00.000Z </ VisitDate >

    < CompletionDate > 2014-10 - 28 T 00: 00:00.000Z </ CompletionDate >

    < SpeciesType > Pigs </ SpeciesType >

    < RenewalDate > 2015-12 - 01 T 00: 00:00.000Z </ RenewalDate >

    < CompletingWOA > no </ CompletingWOA >

    < WantsAdvice > fake </ WantsAdvice >

    < AgreesToThirdPartyDataUse > fake </ AgreesToThirdPartyDataUse >

    < Completed > fake </ Completed >

    < ModifiedAfterCompletion > fake </ ModifiedAfterCompletion >

    < Imported > fake </ Imported >

    - < WOA_SpeciesType >

    - < SpeciesType >

          < SpeciesTypeDescription > Pigs </ SpeciesTypeDescription >

       </ SpeciesType >

    </ WOA_SpeciesType >

    < WOA_Units >

        - < Units of >

              < UnitDescription > Pig farm unit </ UnitDescription >

          </ Units of >

    </WOA_Units>

    - < WOA_AssessorMonitor >

         - < AssessorMonitor >

              < E-mail > m[email protected]< / Email >

              < Phone > 01798 742863 </ Phone >

              < Mobile > 07797 121289 </ Mobile >

              < FullASName > Mike Church </ FullASName >

          </ AssessorMonitor >

    < / WOA_AssessorMonitor >

      - < Assessments_WOA >

        - < Assessments >

             < AssessmentID > 127561 < / AssessmentID >

             < AssessmentType > Renewal </ AssessmentType >

             < AssessmentDueDate > 2014-07 - 29 T 23: 00:00.000Z </ AssessmentDueDate >

             < FLORequestTimeframe > 0 < / FLORequestTimeframe >

             < Revisits > fake </ Revisits >

             < RevisitRequestTimeframe > 0 < / RevisitRequestTimeframe >

             < LastMembershipAssessment > 2013-04 - 29 T 23: 00:00.000Z </ LastMembershipAssessment >

             < ProducerName > Farm Hyatt hotel </ ProducerName >

       - < Assessments_AssessmentStatus >

            - < AssessmentStatus >

              < Description > The evaluator allocated </ Description >

              </ AssessmentStatus >

         </ Assessments_AssessmentStatus >

      </ Assessments >

    < / Assessments_WOA >

    < / WS_ResultWoaFinishingPigs >

    + < WS_ResultWoaFinishingPigs >

    + < WS_ResultWoaFinishingPigs >

    + < WS_ResultWoaFinishingPigs >

    + < WS_ResultWoaFinishingPigs >

    < / TNS:GetWOAFinishingPigsResponse >

    I can interrogate pieces of data, for example the following will give me a list of all producers of each repeated item (5 in total)

    Extractvalue SELECT (value (x), ' / producer ') producer

    DE P "GetWOAFinishingPigsRe1711_TAB."

    TABLE (XMLSequence (EXTRACT of(p.object_value, ' tns:GetWOAFinishingPigsResponse/WS_ResultWoaFinishingPigs/producer', ' xmlns:tns ="Http://localhost: 8085/WS_WoaFinishingPigs_GetAllData" ' ""))) x

    My question is, can I adapt the code above to include several items? If I could go back to tell the producer and the visitdate? I tried with the following text:


    Extractvalue SELECT (value (x), ' / producer ') producer.

    ExtractValue (value (y), ' / VisitDate') dated

    DE P "GetWOAFinishingPigsRe1711_TAB."

    TABLE (XMLSequence (EXTRACT of(p.object_value, "tns:GetWOAFinishingPigsResponse/WS_ResultWoaFinishingPigs/producer" ', ' xmlns:tns = 'Http://localhost: 8085/WS_WoaFinishingPigs_GetAllData"'"))) x,.

    TABLE (XMLSequence (EXTRACT (p.object_value, ' tns:GetWOAFinishingPigsResponse/WS_ResultWoaFinishingPigs/VisitDate', ' xmlns:tns = "Http://localhost: 8085/WS_WoaFinishingPigs_GetAllData"'))),

    But I get the following results:

    Hyatt Hall Farm2014 07-16 T 23: + 00:00 00:00.000000
    Hyatt Hall Farm2014-10 - 05T 23: + 00:00 00:00.000000
    Hyatt Hall Farm2014 09-30 T 23: + 00:00 00:00.000000
    Hyatt Hall Farm2014 10-23 T 23: + 00:00 00:00.000000
    Hyatt Hall Farm2014-10 - 08T 23: + 00:00 00:00.000000
    Farm Redishill2014 07-16 T 23: + 00:00 00:00.000000
    Farm Redishill2014-10 - 05T 23: + 00:00 00:00.000000
    Farm Redishill2014 09-30 T 23: + 00:00 00:00.000000
    Farm Redishill2014 10-23 T 23: + 00:00 00:00.000000
    Farm Redishill2014-10 - 08T 23: + 00:00 00:00.000000
    Hokeham real estate2014 07-16 T 23: + 00:00 00:00.000000
    Holkham estate2014-10 - 05T 23: + 00:00 00:00.000000
    Hokeham real estate2014 09-30 T 23: + 00:00 00:00.000000
    Hokeham real estate2014 10-23 T 23: + 00:00 00:00.000000
    Hokeham real estate2014-10 - 08T 23: + 00:00 00:00.000000
    Avon farm2014 07-16 T 23: + 00:00 00:00.000000
    Avon farm2014-10 - 05T 23: + 00:00 00:00.000000
    Avon farm2014 09-30 T 23: + 00:00 00:00.000000
    Avon farm2014 10-23 T 23: + 00:00 00:00.000000
    Avon farm2014-10 - 08T 23: + 00:00 00:00.000000
    Newtown2014 07-16 T 23: + 00:00 00:00.000000
    Newtown2014-10 - 05T 23: + 00:00 00:00.000000
    Newtown2014 09-30 T 23: + 00:00 00:00.000000
    Newtown2014 10-23 T 23: + 00:00 00:00.000000
    Newtown2014-10 - 08T 23: + 00:00 00:00.000000

    How can I refine the code so that I get a producer and it is own visitdate?

    Any help would be appreciated.

    Thank you

    JP

    Hello

    The usefulness of the TABLE/XMLSEQUENCE is specifically to target the repetitive elements, but in your attempt, you are targeting a node without issue.

    Just stop the path to WS_ResultWoaFinishingPigs:

    SELECT extractvalue(value(x), '/WS_ResultWoaFinishingPigs/Producer') Producer
         , extractvalue(value(x), '/WS_ResultWoaFinishingPigs/VisitDate') Dated
    FROM "GetWOAFinishingPigsRe1711_TAB" p
        , TABLE(
             XMLSequence(
                EXTRACT( p.object_value
                       , 'tns:GetWOAFinishingPigsResponse/WS_ResultWoaFinishingPigs'
                       , 'xmlns:tns="http://localhost:8085/WS_WoaFinishingPigs_GetAllData"'
                       )
                )
          ) x
    ;
    

    Although not discouraged in your version, XMLSequence extractvalue and like are 11.2.

    If you start with XMLTable. I'm sure that you will find it much easier and easier to maintain:

    SELECT x.*
    FROM "GetWOAFinishingPigsRe1711_TAB" p
        , XMLTable(
            XMLnamespaces('http://localhost:8085/WS_WoaFinishingPigs_GetAllData' as "tns")
          , '/tns:GetWOAFinishingPigsResponse/WS_ResultWoaFinishingPigs'
            passing p.object_value
            columns producer  varchar2(30)              path 'Producer'
                  , visitdate timestamp with time zone  path 'VisitDate'
          ) x
    ;
    

    BTW, since you're apparently using object-relational storage, I also suggest that you rename the xmltype table using an identifier without quotes of your choice.

  • What is the difference between Facelets and JSP XML document?

    Hello

    When you create a new page, in the dialog box "Create a JSF Page" it is a choice called 'Type of Document' to select "Facelets" or "the JSP XML".

    May be he one please tell me what is the difference between them. And what should I choose if I want to include ajax code in my page.

    Thanks in advance

    Facelets creates a facelets page

    JSP creates a JSP page

    Facelets - is default and the official display for JSF, compact JSP pages Manager has been used to view JSF pages but don't bear all component Facelets comes in picture under open source APACHE license. It supprts all components used by JSF (Java Server Faces) user interface.

    Facelets has been developed by Jacob Hookom in 2005.

    If you create a Facelets fragment in taskflow bounded, taskflow must be abandoned in a JSF (the parent page) page not in the .jspx (JSP XML) page.

    If you try to deposit in the JSP XML page-

    JSP, XML - jspx is Variant XML of the JSP (Java Server Pages) to support XML document. The JSP XML fragments are used in ADF inorder to support the XML document and more powerful techniques of page validation.

    If you create xml jsp fragments in taskflow bounded, taskflow must be abandoned in a JSP XML (.jspx) (the parent page) page not in the JSF page.

  • Display the error when the xml document is not valid against the schema

    Hello

    I'm using isChemaValid() in a way that, to determine if the xml document is valid against the xml schema.

    This function returns only 0 or 1, and I want to display the error and the line number if the xml is not valid.

    How can I achieve this?

    Thanks in advance,

    Elad

    Use the XMLType schemaValidate() method. It will throw an exception whose message contains the validation error.

    Get a number of 'line' is not sensible as XML is concerned.

  • UPS delivery mistake – [10001] XML document in the is not well formed

    Hello

    When choosing from the inverter to the delivery option, this error below the checkbox "address is residential.

    [10001] XML document is not well-formed


    If anyone has encountered this before?  I have an access key and credentials entries MyUPS correctly in the CMS.

    Thanks for any input.

    Jeff

    Thanks for the comments.  I'll submit a ticket in British Colombia.

  • Insert the XML document with values of characters &lt; or &gt;

    Hello world

    Used Oracle: version 11.2.0.3.0

    I want to insert an XML document in a binary XML field. But for an element, the value includes characters such as > or <.

    Here's an example query:

    Update / * + no_xml_query_rewrite * / ms2 set mstag = XMLQuery (' copy $tmp: = .modify (for $i in $tmp/tags/fields[@id="MS"]))

    back insert nodes (< value > TEST\n & lt; Address1 & gt; < / value >) in $i) return $tmp' from mstag content back) where psid = 5900;

    But because we're using the character & in a SQL query, this request has failed. We invited to specify the 2 values.

    So, what is the way of giving the < Address1 > value to the value of the element in the example?

    Thanks in advance

    The command is not really "fail" in itself. It is just the tool that you are using recognizes '&' characters and treats the following identifiers as replacement variables.

    What tool do you use?

    For example, in SQL * Plus you can disable this behavior through the SET DEFINE OFF or SET SCAN OFF command.

  • ORA-19030: invalid method for the schema not based XML Documents

    Hi everyone can u help me please when I am trying to execute query below his throw errror

    DECLARE

    doc xmltype.

    BEGIN

    SELECT

    XMLAGG (XMLElement ("employee",

    XMLAttributes)

                      ' http://www.Oracle.com/emp_simple.xsd ' AS 'xmlns',

                      ' http://www.w3.org/2001/XMLSchema-instance ' AS ' xmlns: xsi ",

                      ' http://www.Oracle.com/emp_simple.xsd

    http://www.oracle.com/emp_simple.xsd'

    AS "xsi: schemaLocation").

    XMLForest (e.employee_id LIKE "EmployeeId",

    Select AS "name."

    e.job_id AS "Job."

    e.manager_id "MANAGER."

    e.hire_date AS "Hire Date"

    e.Salary AS "wages."

    e.commission_pct AS 'The Commission',

    XMLForest)

    d.department_id AS "DeptNo."

    d.department_name AS "DeptName",.

    d.location_id AS 'Place') AS 'Dept')))

    in the doc

    E employees, departments d

    WHERE e.department_id = d.department_id;

    doc.schemaValidate ();

    END;

    /

    The error I get is following

    ORA-19030: invalid method for the schema not based XML Documents

    Yes, Odie meant something like that.

    
        
            
                
                    
                        
                            
                                
                                
                                
                                
                                
                                
                                
                                
                                    
                                        
                                            
                                            
                                            
                                        
                                    
                                
                            
                        
                    
                
            
        
    
    

    See how the employee node can now occur more than once in the employees node.

Maybe you are looking for