How to query an ordinary xml

I have an xml and I want to query for a particular sub element within it. I can't find any help on this in any of the documentation. All I find is the getVariableData but it can only query on xml that is defined to have part names. How to query on an ordinary xml that doesn't have any part defined? For example I want to query for USERNAME in the xml:
<ServiceBean_Header simpleType="false">
<USERNAME>SYSADMIN</USERNAME>
<PASSWORD>SYSADMIN</PASSWORD>
<RESPONSIBILITY_NAME>System Administrator</RESPONSIBILITY_NAME>
<RESPONSIBILITY_APPL_NAME>SYSADMIN</RESPONSIBILITY_APPL_NAME>
<SECURITY_GROUP_NAME>STANDARD</SECURITY_GROUP_NAME>
<NLS_LANGUAGE>AMERICAN</NLS_LANGUAGE>
</ServiceBean_Header>

If the DOM you have was produced using the Oracle XML Developers Kit (XDK) then you can issue XPath statements against it using "selectSingleNode" and "selectNodes".
import java.io.FileReader;
import oracle.xml.parser.v2.DOMParser;
import oracle.xml.parser.v2.XMLDocument;
import org.w3c.dom.Node;
public class Test {
    public static void main(String[] args) throws Exception {
      FileReader reader = new FileReader("YOUR_XML.xml");
      DOMParser parser = new DOMParser();
      parser.parse(reader);
      XMLDocument xmlDocument = parser.getDocument();
      Node resultNode = xmlDocument.selectSingleNode("ServiceBean_Header/USERNAME/text()");
      System.out.println(resultNode.getNodeValue());
}-Blaise

Similar Messages

  • How to query from the xml table a single, specified element.

    I'm quite new in Xml Db. Pleas, can anybody tell me how to query from the xml table below a single element (i.e. the element 'rapportoparentela = NIPOTE' related to the element 'codicefiscale = CRRVNC76R52G337R', or the element 'rapportoparentela = FIGLIO' related to the element 'codicefiscale = CRRRNT51L23G337Q')?
    - <dati xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
    <codiceinterno />
    <codicefiscaleassistito>CRRMNL81R31G337H</codicefiscaleassistito>
    - <famigliare>
    <codicefiscale>CRRVNC76R52G337R</codicefiscale>
    <rapportoparentela>NIPOTE</rapportoparentela>
    </famigliare>
    - <famigliare>
    <codicefiscale>CRRRNT51L23G337Q</codicefiscale>
    <rapportoparentela>FIGLIO</rapportoparentela>
    </famigliare>
    - <famigliare>
    <codicefiscale>CBRPRN15S65E080W</codicefiscale>
    <rapportoparentela>I.S.</rapportoparentela>
    </famigliare>
    - <famigliare>
    <codicefiscale>CRRMNL81R31G337H</codicefiscale>
    <rapportoparentela>NIPOTE</rapportoparentela>
    </famigliare>
    - <famigliare>
    <codicefiscale>BCCCML54C50I845G</codicefiscale>
    <rapportoparentela>NUORA</rapportoparentela>
    </famigliare>
    </dati>
    Using SELECT extractValue(value(t),'/rapportoparentela') into result FROM NF_XMLT X,
    TABLE ( xmlsequence (extract(value(X),'/dati/famigliare/rapportoparentela'))) t
    I get all the elements 'rapportoparentela' and I want to get only one specified.
    Regards.
    Piero

    Piero,
    you can add the condition "CRRVNC76R52G337R" to your xpath-expression like:
    SELECT extractValue(value(t),'/rapportoparentela')
    FROM NF_XMLT x
    ,TABLE ( xmlsequence (extract(value(X),'/dati/famigliare[rapportoparentela="CRRVNC76R52G337R"]'))) tto select only those famigliare-elements that have a child-element rapportoparentela with value "CRRVNC76R52G337R".
    When you stored your XML in an XMLType column in the table, i think the following queries are better:
    SELECT extractValue(x.your_XMLType_column,'/dati/famigliare/rapportoparentela')
    FROM NF_XMLT x
    WHERE extractValue(x.your_XMLType_column,'/dati/famigliare/codicefiscale')
    = 'CRRVNC76R52G337R'or
    SELECT extractValue(x.your_XMLType_column,'/dati/famigliare/rapportoparentela')
    FROM NF_XMLT x
    WHERE existsNode(x.your_XMLType_column,'/dati/famigliare[codicefiscale="CRRVNC76R52G337R"]')
    != 0

  • How to query a simple XML - any example?

    Folks, I have a below XML stored within table, column type XMLTYPE.
    I would like to extract all data from it by using some simple query + later insert returned rows into some dummy table.
    This should be an easy task for somebody who is using XML on daily basis.
    <env:Envelope xmlns:env='http://schemas.xmlsoap.org/soap/envelope/'>
      <env:Header></env:Header>
      <env:Body>
        <ns1:getVehiclesResponse xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:ns1="http://wirelesscar.com/dynafleet/api/types">
          <result>
            <vehicleInfos>
              <displayName>TRUCK 1</displayName>
              <vehicleId>
                <id>15631444</id>
              </vehicleId>
            </vehicleInfos>
            <vehicleInfos>
              <displayName>TRUCK 2</displayName>
              <vehicleId>
                <id>1564652</id>
              </vehicleId>
            </vehicleInfos>
            <vehicleInfos>
              <displayName>TRUCK 3</displayName>
              <vehicleId>
                <id>15634543</id>
              </vehicleId>
            </vehicleInfos>
          </result>
        </ns1:getVehiclesResponse>
      </env:Body>
    </env:Envelope>XML is stored in table TEST_XML column XML_DATA:
    select  ...
               extract(dr.response_env, '//result/vehicleInfos/displayName/text()').getStringVal()
       from TEST_XMLI would like to extract all nodes from <result> through some query.
    Kind regards,
    Tomas

    the "extract" function is deprecated from 11g. You'd be better using XMLTABLE...
    e.g.
    SQL> ed
    Wrote file afiedt.buf
      1  WITH t as (select XMLTYPE('
      2  <RECSET xmlns:aa="http://www.w3.org">
      3    <aa:REC>
      4      <aa:COUNTRY>1</aa:COUNTRY>
      5      <aa:POINT>1800</aa:POINT>
      6      <aa:USER_INFO>
      7        <aa:USER_ID>1</aa:USER_ID>
      8        <aa:TARGET>28</aa:TARGET>
      9        <aa:STATE>6</aa:STATE>
    10        <aa:TASK>12</aa:TASK>
    11      </aa:USER_INFO>
    12      <aa:USER_INFO>
    13        <aa:USER_ID>5</aa:USER_ID>
    14        <aa:TARGET>19</aa:TARGET>
    15        <aa:STATE>1</aa:STATE>
    16        <aa:TASK>90</aa:TASK>
    17      </aa:USER_INFO>
    18    </aa:REC>
    19    <aa:REC>
    20      <aa:COUNTRY>2</aa:COUNTRY>
    21      <aa:POINT>2400</aa:POINT>
    22      <aa:USER_INFO>
    23        <aa:USER_ID>3</aa:USER_ID>
    24        <aa:TARGET>14</aa:TARGET>
    25        <aa:STATE>7</aa:STATE>
    26        <aa:TASK>5</aa:TASK>
    27      </aa:USER_INFO>
    28    </aa:REC>
    29  </RECSET>') as xml from dual)
    30  -- END OF TEST DATA
    31  select x.country, x.point, y.user_id, y.target, y.state, y.task
    32  from t
    33      ,XMLTABLE(XMLNAMESPACES('http://www.w3.org' as "aa"),
    34                '/RECSET/aa:REC'
    35                PASSING t.xml
    36                COLUMNS country NUMBER PATH '/aa:REC/aa:COUNTRY'
    37                       ,point   NUMBER PATH '/aa:REC/aa:POINT'
    38                       ,user_info XMLTYPE PATH '/aa:REC/*'
    39               ) x
    40      ,XMLTABLE(XMLNAMESPACES('http://www.w3.org' as "aa"),
    41                '/aa:USER_INFO'
    42                PASSING x.user_info
    43                COLUMNS user_id NUMBER PATH '/aa:USER_INFO/aa:USER_ID'
    44                       ,target  NUMBER PATH '/aa:USER_INFO/aa:TARGET'
    45                       ,state   NUMBER PATH '/aa:USER_INFO/aa:STATE'
    46                       ,task    NUMBER PATH '/aa:USER_INFO/aa:TASK'
    47*              ) y
    SQL> /
       COUNTRY      POINT    USER_ID     TARGET      STATE       TASK
             1       1800          1         28          6         12
             1       1800          5         19          1         90
             2       2400          3         14          7          5
    SQL>Have a go at applying that to your own XML, passing your own XMLTYPE data into the XMLTABLE and specifying your own Xquery paths
    (I provided you with an example with namespaces in it as they can be tricky too)

  • How to query XML data stored in a CLOB column

    I don't know XMLDB, so I have a dumb question about querying XML data which is saved as CLOB in a table.
    I have a table (OLAP_AW_PRC), with a CLOB column - AW_XML_TMPL_VAL
    This column contains this xml data - [click here|http://www.nasar.net/aw.xml]
    Now I want to query the data using the xml tags - like returning the name of AW. This is where I am having trouble, how to query the data from AW_XML_TMPL_VAL clob column.
    The following query generates error:
    ORA-31011: XML parsing failed.
    ORA-19202: Error occurred in XML processing
    LPX-00229: input source is empty
    SELECT
    extractValue(value(x), '/AW/LongName') as "AWNAME"
    from
    OLAP_AW_PRC,
    table(xmlsequence(extract (xmltype(AW_XML_TMPL_VAL), '/AWXML/AWXML.content/Create/ActiveObject/AW'))) x
    where
    extractValue(value(x) , '/AW/Name') = 'OMCR4'
    - Nasar

    Mark,
    Thanks. This is exactly what I was looking for.
    After doing @Name in both places (SELECT and WHERE clause) it worked.
    Now I have one more question.
    There are multiple DIMENSION tags in my xml, and I want to see the NAME attribute values for all of those DIMENSIONs. The following query returns
    ORA-19025: EXTRACTVALUE returns value of only one node.
    Cause: Given XPath points to more than one node.
    Action: Rewrite the query so that exactly one node is returned.
    SELECT
    extractValue(value(x), '/AW/@Name') as "AW",
    extractValue(value(x), '/AW/Dimension/@Name') as "DIMENSIONS"
    from
    OLAP_AW_PRC,
    table(xmlsequence(extract (xmltype(AW_XML_TMPL_VAL), '/AWXML/AWXML.content/Create/ActiveObject/AW'))) x
    where
    extractValue(value(x) , '/AW/@Name') = 'OMCR4'

  • How do you differentiate IDOC XML format and ordinary XML format

    how do you differentiate IDOC XML format and ordinary XML format since they are used by IDOC adapter and RFC adapter???

    Hi,
    Cremas Structure starts with Header and followed by Segments...
    Normally it begins like this
    <CREMAS03><IDOC BEGIN="1">
    The second node is Idoc in the header..
    Thanks
    Anju

  • How to query for XML-attribute with XPATH

    Hi,
    Isn't there somebody, who can tell me how to query an Attribut of an XML-element correctly ?
    All my trials lead to empty rows. What's worng in my XPATH-expresion ?
    XML-file looks like this:
    <?xml version="1.0" encoding="UTF-8"?>
    <xmlexport>
    <itsystem guid="e51b91d1-ab0f-11db-2cd7-001641105333">
    <field fieldidentifier="currentVersion" />
    <field fieldidentifier="marketdatacosts">0</field>
    I can query fine the elements and sub-elements, but not attribute 'guid' of /xmlexport/itsystem. Here some trials, all lead
    SELECT t.* FROM CORIA."xmlexport156_TAB", xmltable ('/xmlexport/itsystem ' passing object_value COLUMNS
    GUID     VARCHAR2(1000) path '[@guid=*]') t
    various versions for Xpath:
    path '[@guid="*"]'
    path '/[@guid=*]'
    path '[@guid=*]'
    xmltable ('/xmlexport' ...
    path '/itsystem/[@guid=*]'
    ... combinations of part 1 and 2
    thanks for any hint, LaoDe

    You can either get them directly, or fetch the attribute in your xquery and put them in returning xml fragment, then get them like normal element.
    Method #1:
    path '@guid'
    Method #2:
    xmltable(
    let $is := /xmlexport/itsystem
    return <r><guid>{$is/@guid}</guid></r>
    passing object_value
    columns guid varchar2(1000) path '/r/guid')

  • How to send SQL query results to XML ?

    Hey Guys, I am querying a DB with huge amount of traffic. A user select a particular lot and then details of the lot will be displayed in the following page. My concern here is that it takes really LONG to retrieve back the results coz it has to requiry in the following JSP page.
    I was told to use XML to retrieve the dataset and store it. Hence, in the following query it will re-query only from the recordsets in the XML file (...Logically, should be faster rite ? ). Hence, how do parse my recordsets retrieved from the SQL query to an XML file ?
    Any sort of suggestion , help, reference would be deeply appreciated ..Thanks !

    <HTML>
    <BODY>
    <H1>Manufacturing Summary beta </H1><BR>
    <%@ page import="java.sql.*" %>
    <%@ page import="java.lang.*" %>
    <%@ page import="java.text.*" %>
    <jsp:include page="/index.html" flush="true"/>
    <P><B>Returned result<B><BR>
    <B>Query String :</B><%=request.getParameter("date") %>
    <TABLE BORDER=1 cellpadding=0 cellspacing=0>
    <%!
    static double roundDouble(double toBeRounded, int fractionDigits)
    NumberFormat format = NumberFormat.getInstance();
    format.setMaximumFractionDigits(fractionDigits);
    String tempDouble = format.format(toBeRounded);
    return Double.parseDouble(tempDouble);
    %>
    <%
    DriverManager.registerDriver(new oracle.jdbc.driver.OracleDriver());
    Connection conn = DriverManager.getConnection("jdbc:oracle:thin:@klmomnidb:1521:
    OMNIDB","omni","omni");
    Statement stmt = null;
    ResultSet rset = null;
    String S_date = new String();
    String temp = new String();
    String lot_id = new String();
    String result = new String();
    String SQL_String = new String();
    double yield;
    int bad_cnt;
    S_date = request.getParameter("date");
    lot_id = request.getParameter("lot_id");
    temp = request.getParameter("TST_TEMP");
    SQL_String = "SELECT LOT_ID, FLOW_ID, TST_TEMP, MODE_COD, RTST_COD, PART_CNT, GO
    OD_CNT, OPER_NAM, JOB_REV, PROC_ID, START_T, FACIL_ID, TSTR_TYP, NODE_NAM FROM L
    OT where START_T > TO_DATE('"+ S_date + "','MM/DD/YYYY') AND TST_TEMP <='" + tem
    p+"' order by START_T";
    out.println(SQL_String);
    stmt = conn.createStatement();
    rset = stmt.executeQuery (SQL_String);
    out.println("<TR>");
    out.println("<TD> Select Lot(s)</TD>");
    out.println("<TD>Flow </TD>");
    out.println("<TD>Temp </TD>");
    out.println("<TD>Test Mode </TD>");
    out.println("<TD>Retest</TD>");
    out.println("<TD>Total </TD>");
    out.println("<TD>Good</TD>");
    out.println("<TD>Bad</TD>");
    out.println("<TD>Yield </TD>");
    out.println("<TD>UserID</TD>");
    out.println("<TD>Program</TD>");
    out.println("<TD>Mask</TD>");
    out.println("<TD>Start Time </TD>");
    out.println("<TD>Loc </TD>");
    out.println("<TD>Tester</TD>");
    out.println("<TD>System </TD>");
    out.println("</TR>");
    if (! rset.next()) {
    result ="No records found matching seach criteria.";
    while (rset.next()) {
    bad_cnt = Integer.parseInt(rset.getString(6)) - Integer.parseInt(rset.getString(
    7));
    yield = (Double.parseDouble(rset.getString(7)) / Double.parseDouble(rset.getStri
    ng(6))) * 100;
    result= "<TR>";
    result = result + "<TD><a href=coolpage.jsp?LOT_ID=" + rset.getString(1)+ ">" +
    rset.getString(1) + "</A></TD>";
    result = result + "<TD>" + rset.getString(2) + "</TD>";
    result = result + "<TD>" + rset.getString(3) + "</TD>";
    result = result + "<TD>" + rset.getString(4) + "</TD>";
    result = result + "<TD>" + rset.getString(5) + "</TD>";
    result = result + "<TD>" + rset.getString(6) + "</TD>";
    result = result + "<TD>" + rset.getString(7) + "</TD>";
    result = result + "<TD>" + bad_cnt + "</TD>";
    result = result + "<TD>" + roundDouble(yield,2) + "% </TD>";
    result = result + "<TD>" + rset.getString(8) + "</TD>";
    result = result + "<TD>" + rset.getString(9) + "</TD>";
    result = result + "<TD>" + rset.getString(10) + "</TD>";
    result = result + "<TD>" + rset.getString(11) + "</TD>";
    result = result + "<TD>" + rset.getString(12) + "</TD>";
    result = result + "<TD>" + rset.getString(13) + "</TD>";
    result = result + "<TD>" + rset.getString(14) + "</TD>";
    result = result + "</TR>"; %>
    <%=result%>
    <% }
    rset.close();
    stmt.close();
    conn.close();
    %>
    <%=result%>
    </TABLE>
    </BODY>
    </HTML>

  • How to work with Fedex xml request

    Hi Developers,
    In USPS I can send the xml request with http url in the browser and successfully getting the xml response. How can we achieve the same concept in FedEx?
    Is this possible?
    In FedEx site i downloaded the xml-transaction pdf, which contains the multiple xml request. I don't know how to test it with the browser.
    Sample xml request for Fedex which i founded in the above mentioned pdf is shown below:
    <?xml version="1.0" encoding="UTF-8" ?>
    <FDXSubscriptionRequest xmlns:api="http://www.fedex.com/fsmapi" xmlns:xsi="http://www.w3.org/2001/XMLSchemainstance"
    xsi:noNamespaceSchemaLocation="FDXSubscriptionRequest.xsd">
    <RequestHeader>
    <CustomerTransactionIdentifier>String</CustomerTransactionIdentifier>
    <AccountNumber>123456789</AccountNumber>
    </RequestHeader>
    <Contact>
    <PersonName>Jim Smith</PersonName>
    <CompanyName>Creative Widgets</CompanyName>
    <Department>Shipping</Department>
    <PhoneNumber>5405559900</PhoneNumber>
    <PagerNumber>9999999999</PagerNumber>
    <FaxNumber>5405559901</FaxNumber>
    <E-MailAddress>[email protected]</E-MailAddress>
    </Contact>
    <Address>
    <Line1>123 Main Street</Line1>
    <Line2>1st Floor</Line2>
    <City>Anycity</City>
    <StateOrProvinceCode>VA</StateOrProvinceCode>
    <PostalCode>24060</PostalCode>
    <CountryCode>US</CountryCode>
    </Address>
    </FDXSubscriptionRequest>
    and they also provide the sample xml response which is given below:
    <?xml version="1.0" encoding="UTF-8" ?>
    <FDXSubscriptionReply xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:noNamespaceSchemaLocation="FDXSubscriptionReply.xsd">
    <RequestHeader>
    <CustomerTransactionIdentifier>String</CustomerTransactionIdentifier>
    </RequestHeader>
    <MeterNumber>1234567</MeterNumber>
    <SubscribedService>FedEx Express Shipping</SubscribedService>
    </FDXSubscriptionReply>
    I want to know how to send the above mentioned FedEx xml request in the browser to reach the FedEx Server or how to achive the FedEx xml request using java
    code.
    But these concepts is possible in the USPS because we make a connection with http url(provided by usps) and then we will send the xml request, where as in FedEx the http url is inside the xml structure. So how can we achive this?
    Please help me to come out from this problem
    Thanks
    Srinivasan

    You might have to tweak this code some to get it to work, but it should at least lay the groundwork for solving your problem:
    Code Snippet
    /* Declare an XmlNode object and initialize it with the XML response from the GetListItems method. The last parameter specifies the GUID of the Web site containing the list. Setting it to null causes the Web site specified by the Url property to be used.*/
                System.Xml.XmlNode nodeListItems =
                    MyListsService.GetListItems
                    (listName, viewName, query, viewFields, rowLimit, queryOptions, null);
    System.Xml.XmlDocument xd = new System.Xml.XmlDocument();
    xd.LoadXml(nodeListItems.OuterXml);
    System.Xml.XmlNamespaceManager nm = new System.Xml.XmlNamespaceManager(xd.NameTable);
    nm.AddNamespace("rs", "urn:schemas-microsoft-com:rowset");
    nm.AddNamespace("z", "#RowsetSchema");
    nm.AddNamespace("rootNS", "http://schemas.microsoft.com/sharepoint/soap");
    System.Xml.XmlNodeList nl = xd.SelectNodes("/rootNS:listitems/rs:data/z:row", nm);
    foreach(System.Xml.XmlNode listItem in nl)
      listBoxProsjekter.Items.Add(listItem.OuterXml);
    I hope this helps!
    Please look into the following site for more info:
    http://msdn2.microsoft.com/en-us/library/4bektfx9(vs.80).aspx

  • How to query attributes with namespace in xmltable? thanks

    sample schema:
    <xsd:schema elementFormDefault="qualified" targetNamespace="http://www.tse.or.jp/jp/br/tdnet/ed/pt/2006-03-31">
    <xsd:element name="LocationOfHeadOffice" id="tse-ed-pt_LocationOfHeadOffice" type="xbrli:stringItemType" substitutionGroup="xbrli:item" abstract="false" nillable="true" xbrli:periodType="instant"/>
    <xsd:schema>
    My question is how to query the attribute xbrli:periodType using function xmltable.
    My query statement(it's just a part of it and it does not work):
    xmltable(XMLNamespaces('http://www.w3.org/2001/XMLSchema' as xs,
    'http://www.xbrl.org/2003/instance' as xbrli),
    '/xs:schema/xs:element'
    passing a.schema
    columns periodType varchar2(1000) path '@xbrli:periodType') b
    And the error message:
    ORA-31011: XML parsing failed
    ORA-19202: Error occurred in XML processing
    LPX-00601: Invalid token in: '/*/@xs:nillable'
    In fact, with standard xpath "doc("taxonomy.xsd")/xs:schema/xs:element/@xbrli:periodType", we can use the namespace with attributes, but why the xmltable function does not support it?
    And, how can I query this attribute?
    Thanks a lot.

    sorry for the mistake, the error message:
    ORA-31011: XML parsing failed
    ORA-19202: Error occurred in XML processing
    LPX-00601: Invalid token in: '/*/@xbrli:periodType'

  • Output query result in XML format

    folks:
    could anybody provide more information
    about how to generate query result in
    xml format? looks like DBXML is for demo only
    and i have heard that PLSQL XML parser is the way to go; so far i have not found
    a sample yet on how to actually
    do the XML generation; if you know more
    about it, please let me know; thanks in
    advance.
    Bill

    Here are some sample apps that might interest you:
    [list]
    [*][url [URL=http://technet.oracle.com/tech/xml/xsql_servlet/index2.htm?Code&files/ffhome.html]The]http://technet.oracle.com/tech/xml/xsql_servlet/index2.htm?Code&files/ffhome.html]The XML Flight Finder
    [*][url [URL=http://technet.oracle.com/sample_code/tech/xml/xmlb2b/doc/xb2bhome.html]B2B]http://technet.oracle.com/sample_code/tech/xml/xmlb2b/doc/xb2bhome.html]B2B with XML
    [list]
    Enjoy,
    -rh

  • Query resultset to xml using java and XML schema

    Hi,
    I query data using JDBC and I want to store it to an XML file which has a well defined XML schema. I searched a lot in the forum but did not find an answer. Please guide me to create this program.
    I have managed to use JDBC to get result set but I do not know how to export is to XML using XSD and Java.
    Please help.
    Regards,
    Ravi

    I have managed to use JDBC to get result set but I do
    not know how to export is to XML using XSD and Java.Export using XSD? Schemas are for validation.
    Iterate through the result set, and build up the XML stream by creating an entry for each row.
    Another way to do it is to load the ResultSet into a Java object and serialize that to XML using something like XStream.
    %

  • SQL query validation with XML?

    Hi
    Is there anything out there that will validate an SQL statement (validate meaning the SQL statement 'will run') using XML?
    I want to make a servlet that takes SQL and adds it to a java class that will in turn do a bunch of magical things. However
    I need the SQL to be validated before it gets written to the class.
    XML seems like it would be a useful tool to accomplish this but I fear the
    document would be friggen huge and run slow as hell.
    I guess in essence it would be like creating an SQL compiler completely
    out of XML.
    Does something like this exist or is this solution just to broad to realistically consider?

    There is no kind of relashionship between SQL and XML. Moreover, with RDBMs having different flavors of SQL, how can you expect an XML parser to be able to tell you that your query will run on Oracle but non on SQL Server?

  • How to Output Nodes from XML web service to a FLV?

    Hi
    I've used AS3 to query a web service and obtain the resulting XML.  I need to parse the result down to just a few nodes for a given location.  I can tackle that separately.  I am wondering how I output the parsed XML to a flash video file (.flx)?  The video has place holders for the XML node values.  What do I need to do to place the XML results in the video?
    Thanks,
    Sid

    Andrei1 wrote:
    What is a content of XML nodes? I am not sure what you mean by "inserting nodes". Do you mean that you want to display some information over the video?
    And yes, encoders do take XMLs to inject metadata into video. But this is metadata only.
    OSML = Open Source Media Framework:
    http://www.opensourcemediaframework.com/
    By inserting nodes, I mean that the XML web service returns data for each city, which needs to be parsed to just high temp, low temp and current condition.  Those 3 values needed to be dispalyed over, or woven into, the video at each city location.  My thought was that AS3 could somehow recognize the 3 placeholders for each city and insert the high temp, low temp and condition icon into each placeholder.  However, when I import the FLV file into Flash, there are no elements into which I can infuse this data.

  • How Do i Call An xml publissher and a jsper report from ADF pages

    Hi All
    How Do i Call An xml publissher and a jsper report from ADF pages

    I used the above links to create XML's and from there a formatted report of data from the database. I accomplish this by connecting to the database inside the XMLPublisher.java file. I also have my query hard-coded inside the DataTemplate.xml to extract the info from the database. This limits my ability on what the user can accomplish with the system.
    Is it possible to run my reports based on an iterator within Jdeveloper, as opposed to having to manually enter the query and connect to the database within the XMLPublisher.java file and the template.xml?
    Thanks.

  • How to create/call dynamic XML feed from CFC - HELP PLEASE!!

    Hi All,
    First off I'm a newb to web services.  I'm trying to create the invoke a web service on a CFC for a XML feed.  When I call the CFC directly all looks fine and is correctly formatted etc:
    http://www.prevu.tv/cfc/xyzTest.cfc?method=listPlant
    Am I correct in outputting it in this way?  What if I output as a string instead......would others be able to consume it?
    When I try to invoke it as a web service I am getting an error I do not understand.  I am trying to call it using (user/pass not required in CFC):
    <cfinvoke webservice="test" method="listPlant" returnvariable="foo">
    <cfinvokeargument name="username" value="abc">
    <cfinvokeargument name="password" value="123">
    </cfinvoke>
    <cfoutput><cfdump var="#foo#"></cfoutput>
    Here is my CFC code:
    <cfcomponent>
        <cffunction name="listPlant" access="remote" returntype="xml" output="no">
        <cfargument name="username" type="string" required="no">
        <cfargument name="password" type="string" required="no">
            <cfquery datasource="#request.dsn#" name="getPlant">
            SELECT                *
            FROM                  plant
            INNER JOIN        plantaddress ON plant.plantID = plantaddress.plantID
            WHERE              icePlantID IS NULL
            AND                   categoryID NOT IN (9,10,11)
            AND                   statusID = 1
            AND                   activePlantList = 1
            ORDER BY        plant.plantID LIMIT 5
            </cfquery>
            <!---Convert Query to xml--->
            <cfprocessingdirective suppresswhitespace="Yes">
            <cfcontent type="text/xml; charset=utf-8">
            <cfxml variable="xmlobject">
            <PrevuPlant>
                <cfoutput query="getPlant">
                <Plant>
                    <PlantID>#plantID#</PlantID>
                    <PlantName>#XmlFormat(plantName)#</PlantName>
                    <Street>#XmlFormat(street)#</Street>
                    <Suburb>#XmlFormat(suburb)#</Suburb>   
                    <City>#XmlFormat(city)#</City>
                    <State>#XmlFormat(state)#</State>
                    <Country>#XmlFormat(country)#</Country>
                    <PostCode>#XmlFormat(postcode)#</PostCode>
                    <Latitude>#XmlFormat(latitude)#</Latitude>
                    <Longitude>#XmlFormat(longitude)#</Longitude>
                    <CountryCode>#XmlFormat(countryCode)#</CountryCode>
                    <AreaCode>#XmlFormat(areaCode)#</AreaCode>
                    <Phone>#XmlFormat(phone)#</Phone>
                    <Fax>#XmlFormat(fax)#</Fax>
                </Plant>
                 </cfoutput> 
            </PrevuPlant>
            </cfxml>
            <!---Convert back to a string--->
            <cfset myvar=toString(xmlobject)>
            </cfprocessingdirective>
        <cfreturn myvar>
        </cffunction>
    </cfcomponent>
    Can anyone please tell me where I am going wrong, or how the output for a XML feed called from a CFC should look in a browser etc?
    Thanks

    Hey Dan....thanks for the prompt reply.
    I added the wsdl and this is what I get when I call the service from this cfm page: http://www.prevu.tv/xyzTest.cfm
    Have never seen output like this.  Is this correct?
    The web service I'm writing is also for some .net developers so it may be that I need to output as string also - this discussion has not taken place yet.

Maybe you are looking for

  • Ipod not recognized by windows, itunes, and will not charge with pc.

    yesterday, when i went to sync some new music onto my 1gen nano, it did not work (duh). i plugged it in 3 times: -1st, it displayed the "do not connect screen" for one second, and itunes flashed the screen it shows when your ipod is connected, but th

  • How To set Header and Footer in MIDlet screen

    Hi Friends, How can i set header and footer in my screens . My need is that in header part ,my company's name shuld be display and in footer section "any thing". How can i achieve this things plz advice me. karan

  • Why are my icloud apps not updating?

    Whether or not my iCloud LISTS or CALENDARS update across all of my app devices they are supposed to is a hit or miss deal. Sometimes they do quickly, sometimes it takes forever, sometimes not at all. Why??

  • How do I delete a problem email?

    I have isolated an email that is causing my email system problems.  It cannot delete it.  Every time I do, it disappears and appears back, and to make things worse recreates it many times, and mulitple copies appear in the mail box. How to stop this?

  • Nokia 5300 battery

    I am having real problem with the Nokia 5300 battery life. I have never expect this type of problem with Nokia phones. I usually encounter this type of problem with Motorola phones. I've bought this phone for 2 weeks and already have to buy a spare b