XML tutorial or Help

Does anyone have a good tutorial for Labview XML schema.  I have created an INI file in LV XML format through flattne to XML string and save to XML file, but every time you write to an XML file it overwrites evertyhing in the file.  I wanted to extract the string and search for data to replace, replace it and store it again, but this seems to be introducing new formatting parameters, that throw everything off.
Any help appreciated.
p.s. I do know how to use basic LV XML vi's, so if something has some indepth knowlege of overwriting specific nodes in the XML, while keeping the format and syntax of everything else the same is what I am looking for.  Also ways of sorting the data within XML file, without letting LV choose where in the file it wants to store the data?
Thanks

rather than editting the XML directly (which can be done but is twitchy as you've found out) you're probably better off unflattening back to you original INI file text, editing that, and then re-flatten to the XML file.  

Similar Messages

  • Problem with XML and XSLT, help...

    Okay, I have this XML doc (called stocks.xml):
    <?xml:stylesheet type="text/xsl" href="stocks.xsl" version="1.0" encoding="UTF-8"?>
    <portfolio>
    <stock>
    <symbol> SUNW </symbol>
    <name> Sun Microsystem </name>
    <price> 12.95 </price>
    </stock>
    <stock>
    <symbol> HPW </symbol>
    <name> Hewlet Packard </name>
    <price> 53.50 </price>
    </portfolio>
    And I have this XSLT doc (called stocks.xls):
    ?xml version="1.0"?>
    <xsl:stylesheet version="1.0" xmlns:xls="http://www.w3.org/TR/WD-xsl">
    <xsl:template match="/">
    <html>
    <head>
    <title> Stocks </title>
    <body bgcolor="#ffffcc">
    <xsl:apply-template />
    </body>
    </head>
    </html>
    </xsl template>
    <xsl:template match="portfolio">
    <table border="2">
    <tr>
    <th> Stock Symbol </th><th> Company Name </th><th> Price </th>
    </tr>
    <xsl:for-each select="stock">
    <tr>
    <td>
    <i><xsl:value-of select="symbol" /></i>
    </td>
    <td>
    <xsl:value-of select="price" />
    </td>
    </tr>
    </xsl:for-each>
    </table>
    </xsl template>
    </stylesheet>
    When I try to retrieve the stocks.xml document with
    IE, the browser said, there is an error on line 2, can not
    recognize xsl:
    The XML page cannot be displayed
    Cannot view XML input using XSL style sheet. Please correct the error and then click the Refresh button, or try again later.
    Reference to undeclared namespace prefix: 'xsl'. Error processing resource 'http://localhost:8080/examples/jsp/stocks/stocks.xsl'. Line 2, Position 71
    <xsl:stylesheet version="1.0" xmlns:xls="http://www.w3.org/TR/WD-xsl">
    I just follow this from an example of XML tutorial.
    Please help, what is it that I miss? Seems everything
    I have is okay....??
    Thanks,
    Ted.

    Thanks you all!
    You have spotted that mistyped.
    However, turns out Internet Browser that I have does not permit the use of XSL. After I fixed the file, I got this
    message:
    The XML page cannot be displayed
    Cannot view XML input using XSL style sheet. Please correct the error and then click the Refresh button, or try again later.
    Keyword xsl:apply-template may not be used here.
    Oh well...
    Anybody knows, if IE can or can not be used to view the
    XML that reference XSL??
    Thanks,
    Ted.

  • XML Tutorial doesn't work

    I tried the one xml tutorial listed under http://otn.oracle.com/sample_code/tutorials/xml.html and I got the error:
    XMLNormalization.java:1: Package oracle.xml.parser.v2 not found in import.
    import oracle.xml.parser.v2.*;
    ^
    .\MyDocumentBuilder.java:2: Package oracle.xml.parser.v2 not found in import.
    import oracle.xml.parser.v2.*;
    ^
    .\MyDocumentBuilder.java:4: Superclass DocumentBuilder of class MyDocumentBuilde
    r not found.
    public class MyDocumentBuilder extends DocumentBuilder
    ^
    3 errors
    I believe the problem is that it can't find xmlparserv2.jar, which seems to be packed up in an ext directory as xmlparserv2.jar!_1076361799.ojpd. Must be some proprietary compression format. Let me know when you have something that works with java or an example that explains how to unpack your proprietary format.
    Regards

    Yes, you are true : the xmlparserv2.jar is missing from CLASSPATH in your environment.
    If you have installed Oracle9i JDeveloper, then the xmlparserv2.jar is available at JDEV_HOME\lib\ directory.
    If you are not using Oracle9i JDeveloper, then you need to download Oracle XDK for Java at location http://otn.oracle.com/software/tech/xml/xdk_java/content.html
    This is specified in Required Software Section of the tutorial. After downloading the Oracle XDK (xdk_java_9_2_0_5_0.zip for windows or similar for windows), unzip/unjar the zip file.
    You can find xmlparserv2.jar file as part of the unzipped version of xdk_java_9_2_0_5_0.zip or similar equivalent on Unix.
    You need to embed xmlparserv2.jar as part of the CLASSPATH.
    Please let me know if you need any other help.
    Thanks
    -- Umesh

  • Can anyone that works wirth xml in InDesign help me

    I am trying to create a schema to get an Excel workbook into xml so I can take that information and make a member list in inDesign CS6 so I don't have to type it by hand. This is the schema:
    <?xml version="1.0"?>
    <schema xmlns:xsd="http://www.w3.org/2001/XMLSchema-instance">
    <element name="memberList">
        <member>
            <lastname>LastName</lastname>
            <firstname>FirstName</firstname>
            <phone>555-555-5555</phone>
            <streetaddress>streetaddress</streetaddress>
            <city>City</city>
            <state>State</state>
            <zipcode>Zip code</zipcode>
            <email>email</email>           
        </member>
    </element>
    </schema>
    When I bring the schema into Excel, everything seems to be fine except that the top of the tree is wrong in excel. memberList is nott at the top ot the tree. When I pull it over to populate the cells I get no names but when i click on the cell it highlights the proper name in the tree.
    Schema
         element
              name
         member
              lastname
              firstname
              phone
              streetaddress
              city
              state
              zipcode
              email
    Can anyone that works wirth xml in inDesign help me

    I typically get XML from a database, or an Excel sheet without the troublesome XML mapping. Once I simply received an Access database. Access spits out XML in a mostly usable state.
    I use an XML editor that converts the Excel sheet to XML, do any needed transformations, search and replaces, etc in the editor, then save it as an XML I use in ID. The editor is XML Blueprint. I often do other manipulations using UltraEdit as I have long used it for programming and am comfortable with it.
    I did a test in Excel's requisite mapping and found it so cumbersome I didn't successfully get it to export in the 20 minutes it took me to try it. I suspect I could do it with more head scratching but I don't have much hair left.
    But I'll give it another try later today or tonight and see if I can help in the way you want to go about it.
    Take care, Mike

  • I want to display the number of Passed / failed tests in Testtand xml report , please help me

    Hi, I want to display the number of Passed / failed tests in Testtand xml report , please help me.
    My requirement is later i should be able to display these number of passed/failed test in report header too.
    Solved!
    Go to Solution.

    I have attached a sequence to give you an idea of how to get the Result count (I didn't check it's working ), I have used "SequenceFilePostResultListEntry" callback to calculate the Result Count,
    and the Result Count is passed to the "ModifyReportHeader" through File Globals,  where you can edit the XML file to show it in the Repot (follow the link in my previous post).
    Hope this helps
    AshwiN,
    Attachments:
    Get Result Count.seq ‏8 KB

  • Loading data from xml file - please help

    Hi, I am new to attempting to get data from an xml file load
    in flash. I followed a tutorial in a new fla and it seemed to work
    fine, I then tried to adapt it to my own needs which worked fine.
    But then when trying to implement this into my news section it
    doesn't seem to work.
    I am trying to make a news section, that displays the date
    and news article. This is in within a movie clip, I even tried
    putting it in the timeline of the scene but still nothing.
    - I have 2 dynamic text boxes, date_txt and news_txt
    - The xml file is named news.xml,
    - both the fla and the xml are in the same folder
    This is the actionscript I am using:
    function loadXML(loaded) {
    if (loaded) {
    _root.thedate =
    this.firstChild.childNodes[0].childNodes[0].firstChild.nodeValue;
    _root.thenews =
    this.firstChild.childNodes[0].childNodes[1].firstChild.nodeValue;
    date_txt.text = _root.thedate;
    news_txt.text = _root.thenews;
    } else {
    trace("file not loaded!");
    xmlData = new XML();
    xmlData.ignoreWhite = true;
    xmlData.onLoad = loadXML;
    xmlData.load("news.xml");
    This is what I have in the xml document:
    <?xml version="1.0"?>
    <news>
    <article>
    <date>date</date>
    <news>newentry.</news>
    </article>
    <article>
    <date>Doug Engelbart</date>
    <news>Invented the mouse at the Stanford Research
    Institute</news>
    </article>
    </news>
    Does anyone perhaps have any ideas of what the problem could
    be?
    Help much appreciated.

    Hi
    _root refers to the Main Timeline, if your date_txt and
    news_txt are in a movieclip ie: news_mc
    then your path should read _root.news_mc.date_txt.text and
    _root.news_mc.news_txt.text
    You will also need to embed the characters you wish to use
    inside your dymanic text for it to show.
    Hope it helps

  • Advice on ADDT Export Recordset as XML Tutorial

    Hello all,
    I recently had a situation where I needed to use ADDT's "Export Recordset as XML" behavior. However, the "Export Recordset as XML" behavior creates a php page that generates the XML when the php script is run and the resulting XML is published to the browser.
    Unfortunately, I needed the php page to not publish to the browser, but to write the generated XML to a real XML file. I looked for help in the forums, but I was unable to find any information regarding this and it seemed some people had been looking for this ability.
    I was able to figure out how to use ADDT's "Export Recordset as XML" to write the XML to a file when the ADDT created Export XML php page is run.
    I want to share a brief description on how I did this. However, I had to modify the ADDT file "XMLExport.class.php" to get this to work. The modifications are are very simple and easy. You just have to comment out a few lines and change an echo to a return in the "XMLExport.class.php" file.
    Before I take the time to write this up, I wanted to be sure it's ok to explain in these forums how to edit ADDT files. I know the license agreement allows me to modify the code for my own use. But does the license agreement allow me tell other's how to modify the code?
    At the top of the Adobe "XMLExport.class.php" page you see this:
    Adobe permits you to use, modify, and distribute this file in accordance with the terms of the Adobe license agreement accompanying it.
    Rather than try and decipher a license agreement, I thought someone, probably Gunter :), might be able to let me know before I go to the trouble.
    Thanks,
    Shane

    Hi Shane,
    But does the license agreement allow me tell other's how to modify the code?
    As this snenario isn´t explicitely mentioned respectively prohibited, I don´t see any problem at all with telling folks how to modify an ADDT "includes" file, though I´m not sure about the "distribution" aspect, as - to my understanding - an original or modified ADDT file can´t be offered for download or sent to others per email or whatever else might qualify as "distribution".
    My suggestion for remaining on the safe side :: just write a tutorial and tell folks how to modify whatever file, because merely providing an information about a modification certainly doesn´t tangent the "use, modify, and distribute" definition of the license at all -- however, it´s the reader of your tutorial who´s having to decide whether the suggested modification is in accordance with the terms of the Adobe license agreement, though this shouldn´t be a problem as well, as they´re going to modify the code for their own use :-)
    Cheers,
    Günter Schenk
    Adobe Community Expert, Dreamweaver

  • Look for XML Tutorial

    Hello,
    I am looking for a tutorial on laoding external images using
    XML. I created a menu with flash that lists catagories for products
    and a marketing banner with in the fash movie.
    I need to take those images and place them outside of the
    flash movie so the client can update the products or the image for
    the banner and also to reduce the size of the Flash .swf.
    I am not having anyluck finding a tutorial that will help me
    with this. I have downlaoded the XML basics from gotoand learn.com
    but it just was not what I am looking for.
    Thanks for your help in advanced,
    invtech

    Ok, I don't yet see the underlying algorithm, but I am still
    looking.
    Tracy

  • XML Tutorial download

    Hi, I've seen the page http://java.sun.com/xml/tutorial_intro.html where I can find the XML basic tutorial. I wanted to download that but couldn't find the download link. Can anybody help me download that as I need to give it to my fellow developers who don't have internet access. It's very important for us.
    -suresh

    I followed the "Downloads" link from the page you referenced and it eventually led to this:
    http://java.sun.com/xml/downloads/javaxmlpack.html#tutorial

  • Polulate Text frames with XML content - PLEASE help me.

    Hi guys,
    I'm trying to import some xml data to an indesign file. Here are the steps I'm doing:
    1- create new document
    2- create master page
    3- create empty text fields in the master to be tagged
    4- import tags from xml
    5- import xml
    then it simply don't auto populate the text fields wiith the xml content.
    I've already spent about 10 hours trying to figure out what can be the problem...
    My structure in indesign (BEFORE importing XML):
    businesscards
    Card
    employeeName
    employeePosition
    employeeAddressln1
    employeeAddressln2
    employeePhone
    employeeEmail
    My structure in indesign (AFTER importing XML):
    businesscards
    Card <!-- has dropdown arrow with xml content inside -->
    Card <!-- has dropdown arrow with xml content inside -->
    Card <!-- has dropdown arrow with xml content inside -->
    Card <!-- has dropdown arrow with xml content inside -->
    employeeName
    employeePosition
    employeeAddressln1
    employeeAddressln2
    employeePhone
    employeeEmail
    But it doesn't populate the text frames...
    I've already tried to write text in the text frames and tagged them, so I can see those colored brackets. But it doesn't work and makes a mess in the structure.
    Please, can someone help me, do you know a good step by step tutorial online? What am I doing wrong?
    <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
    <businesscards>
    <Card>
    <!-- contents of Suzan Reed -->
    <employeeName>Suzan Reed</employeeName>
    <employeePosition>Director of Marketing</employeePosition>
    <employeeAddressln1>506 SE 72nd Avenue</employeeAddressln1>
    <employeeAddressln2>Portland, Oregon 97215</employeeAddressln2>
    <employeePhone>503-481-5858 direct</employeePhone>
    <employeeEmail>[email protected]</employeeEmail>
    </Card>
    <Card>
    <!-- contents of Gabriel Powell -->
    <employeeName>Gabriel Powell</employeeName>
    <employeePosition>Senior Training Director</employeePosition>
    <employeeAddressln1>25 NW 23rd Place, Suite 6-122</employeeAddressln1>
    <employeeAddressln2>Portland, Oregon 97210</employeeAddressln2>
    <employeePhone>503-515-5404 direct</employeePhone>
    <employeeEmail>[email protected]</employeeEmail>
    </Card>
    <Card>
    <!-- contents of Dale Erwing -->
    <employeeName>Dale Erwing</employeeName>
    <employeePosition>Trainer</employeePosition>
    <employeeAddressln1>5131 Buffalo Ave. #20</employeeAddressln1>
    <employeeAddressln2>Sherman Oaks, CA 91423</employeeAddressln2>
    <employeePhone>310-795-8943 cell</employeePhone>
    <employeeEmail>[email protected]</employeeEmail>
    </Card>
    <Card>
    <!-- contents of Jim Conner -->
    <employeeName>Jim Conner</employeeName>
    <employeePosition>Trainer</employeePosition>
    <employeeAddressln1>25 NW 23rd Place, Suite 6-122</employeeAddressln1>
    <employeeAddressln2>Portland, Oregon 97210</employeeAddressln2>
    <employeePhone>503-515-2376 cell</employeePhone>
    <employeeEmail>[email protected]</employeeEmail>
    </Card>
    </businesscards>
    Thanks in advance

    It worked! thanks ... But...
    But only if I don't apply to the Master when I apply to the master all the other cards have the same content as the first of the XML. :(
    Even when I try to create multiple pages (cards) with no Master page (too time consuming), I can't figure out a way of having the other cards filed with the remaining data of the XML. :(
    I don't want to drag the elements one by one to every single card (they are so many...)
    Is there a way of having the structure organized in a way to have indesign auto populate and auto create pages?
    thanks for any kind of advice.

  • XML Publisher CLOBS Help !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

    Can someone please help ..
    I am trying to display a clob field that contains just random text but when i run my xml definition on concurrant manager xdodtexe the field is displayed as blank,
    Does anyone know how i can display this clob field on my report template or is there a way to display it through my xml template using some kind of function... in the sql
    I am just selecting 4 Clob fields from a oracle table.
    xml publisher 5
    Oracle Apps 11
    Cheers
    Sharky

    Yeah simple select in xml definition file as below - Im getting a error when using getclobval()
    Error Not an object or Ref - Code Ora-22806
    Any Ideas
    -- start of code
    <?xml version = '1.0' encoding = 'UTF-8'?>
    <dataTemplate name="VAC_ADVERTISED" version="1.0">
    <parameters/>
    <dataQuery>
    <sqlStatement name="Q1">
    <![CDATA[SELECT   iv.vacancy_name,
    pv.attribute_category vacancy_type,
             iv.professional_area,
             iv.number_of_openings,
             iv.grade_name,
             TO_CHAR (pra.date_start, 'DD-MON-RRRR') VACANCY_START_DATE,
             TO_CHAR (pra.date_end, 'DD-MON-RRRR') VACANCY_END_DATE,
             ipcv.job_title, ipcv.org_name,
             hra.derived_locale LOCATION,
             hl.meaning route_area_teri,
             hl2.meaning grade_band,
             iv.recruiter_name,
             iv.manager_name
            , ipcv.org_description.getClobval() DEP_DESC
            , ipcv.brief_description.getClobval() BRF_DESC
            ,ipcv.detailed_description.getClobval() DET_DESC
             ,ipcv.additional_details.getClobval() HTAI
        FROM ircfv_vacancies iv,
             per_vacancies pv,
             per_positions pp,
             per_position_definitions ppd,
             per_jobs pj,
             per_job_definitions pjd,
             per_recruitment_activity_for praf,
             per_recruitment_activities pra,
             irc_all_recruiting_sites iars,
             irc_posting_contents_vl ipcv,
             per_recruitment_activity_for praf_ext,
             per_recruitment_activities pra_ext,
             irc_all_recruiting_sites iars_ext,
             irc_search_criteria isc,
             hr_lookups hl,
             hr_lookups hl2,
             hr_lookups hl3,
             hr_locations_all hra
       WHERE iv.vacancy_status = 'Approved'
         AND pp.position_id(+) = iv.position_id
         AND ppd.position_definition_id(+) = pp.position_definition_id
         AND pj.job_id(+) = iv.job_id
         AND pjd.job_definition_id(+) = pj.job_id
         AND praf.vacancy_id = iv.vacancy_id
         AND praf.recruitment_activity_id = pra.recruitment_activity_id
         AND pra.recruiting_site_id = iars.recruiting_site_id
         AND pra.posting_content_id = ipcv.posting_content_id
         AND iars.internal = 'Y'
         AND praf_ext.vacancy_id = iv.vacancy_id
         AND praf_ext.recruitment_activity_id = pra_ext.recruitment_activity_id
         AND pra_ext.recruiting_site_id = iars_ext.recruiting_site_id
         AND iars_ext.EXTERNAL = 'Y'
         AND iv.vacancy_id = isc.object_id(+)
         AND isc.object_type(+) = 'VACANCY'
         AND isc.attribute1 = hl.lookup_code(+)
         AND hl.lookup_type(+) = 'NR_RECRUIT_AREAS'
         AND iv.vacancy_id = isc.object_id(+)
         AND isc.object_type(+) = 'VACANCY'
         AND isc.attribute2 = hl2.lookup_code(+)
         AND hl2.lookup_type(+) = 'NR_RECRUIT_GRADE_BAND'
         AND isc.object_type(+) = 'VACANCY'
         AND isc.attribute3 = hl3.lookup_code(+)
         AND hl3.lookup_type(+) = 'NR_RECRUIT_JOB_TYPE'
         AND pv.vacancy_id(+) = iv.vacancy_id
         AND iars.site_name = 'iRecruitment Internal Site'
         AND iars_ext.site_name = 'iRecruitment External Site'
         AND pv.location_id = hra.location_id
    and  trunc(PRA.date_start) between trunc(sysdate,'IW') and TRUNC(SYSDATE)]]>
    </sqlStatement>
    </dataQuery>
    <dataStructure>
    <group name="VACANCY_INFO" source = "Q1">
    <element name="VACANCY_NAME" value ="VACANCY_NAME"/>
    <element name="PROFESSIONAL_AREA" value ="PROFESSIONAL_AREA"/>
    <element name="ORG_NAME" value ="ORG_NAME"/>
    <element name="LOCATION" value ="LOCATION"/>
    <element name="RECRUITER_NAME" value ="RECRUITER_NAME"/>
    <element name="MANAGER_NAME" value ="MANAGER_NAME"/>
    <element name="DEP_DESC" value ="DEP_DESC"/>
    <element name="BRF_DESC" value ="BRF_DESC"/>
    <element name="DET_DESC" value ="DET_DESC"/>
    <element name="HTAI" value ="HTAI"/>
    </group>
    </dataStructure>
    </dataTemplate>
    -- end of xml file

  • Emailing Form in PDF format instead on xml? -need help!-

    I have a webpage that has a link that directs customers to a pdf form I created with Adobe Designer 7.0 and when the customer is done filling out their information in the form and click's the submit email button. It comes to my inbox in an .xml! is there a way I can have it to where the file comes as a .pdf or can I jus convert the .xml into a word .doc or .pdf?
    -Thank You SOoo Much!-

    Hi Rochelle,
    The forums are here to help all those in need, but Daniel has a point - this specific question has been posed countless times, and a search would have revealed that. None the less, I hope you find this helpful:
    In your form, do as follows:
    Add a button (not the email submit button, just the "button").
    Set the Control type to 'Submit' (under your Object tab).
    On the Submit tab (under your Object tab), add "mailto:[email protected]" in the Submit to URL box.
    Change the 'Submit As' drop down to 'PDF' (your other options are XML, XDP and FDF).
    Save the form.
    Zoe

  • How to load XML files ? HELP!

    Hi folks.
    We have an old Oracle database 7.3..
    So we need to load XML files into its tables.
    As we understand Oracle Loader doesn't help us.
    Is the way to load that files?
    Thanks in advance
    Alex

    I know you realize 7.3 is old but this is sort of like trying trying to view a DVD when you only have a VCR. Simple answer would be buy a DVD player, i.e. upgrade to a more recent version of Oracle where you will get many features to handle XML.
    How do you want the XML loaded, all as a single object? That could be a CLOB column if 7.3 had them, I am not sure. You would probably have to write PL/SQL and something with UTL_FILE (if 7.3 had that) to load it.
    If you want to put it multiple columns based on its tags, you would be better off parsing it using PERL (or something) into a CSV and loading that in SQL*Loader.
    I assume as this is using XML it is a reasonably recent design, combining that with an ancient version of the database is just going to lead to endless headaches.

  • Problem with xml table, please help

    hello everyone,
    can you help me please , i need to read an xml file from the sap directory into  an L_XML_TABLE  declared as follow :
    TYPES: BEGIN OF t_xml_line,
            data(256) TYPE x,
    END OF t_xml_line.
    TYPE-POOLS: ixml.
    DATA: l_ixml TYPE REF TO if_ixml,
          l_streamfactory TYPE REF TO if_ixml_stream_factory,
          l_parser TYPE REF TO if_ixml_parser,
          l_istream TYPE REF TO if_ixml_istream,
          l_document TYPE REF TO if_ixml_document,
          l_node TYPE REF TO if_ixml_node,
          l_xmldata TYPE string.
    DATA: l_elem TYPE REF TO if_ixml_element,
          l_root_node TYPE REF TO if_ixml_node,
          l_next_node TYPE REF TO if_ixml_node,
          l_name TYPE string,
          l_iterator TYPE REF TO if_ixml_node_iterator.
    DATA: l_xml_table TYPE TABLE OF t_xml_line,
          l_xml_line TYPE t_xml_line,
          l_xml_table_size TYPE i.
    when i try the READ DATASET of my file into the table it gives me the error message
    L_XML_TABLE cannot be a table,a reference, a string or contain any of this objects.
    is there a solution , it's important.
    thank you very much

    You know that READ DATASET reads a line at a time, not the whole table? 
    What code do you have for actually reading the file?

  • XML - PL/SQL help

    Hello,
    I am having a query as a part of my procedure block that extracts the following xml and stores it into a variable that is of xmltype:
    <FeatureRoot>
    <Feature>
    <FeatureName>qaz</FeatureName>
    <FeatureAction>Add</FeatureName>
    </Feature>
    <Feature>
    <FeatureName>wsx</FeatureName>
    <FeatureAction>Remove</FeatureAction>
    </Feature>
    </FeatureRoot>
    Now what i want to do is loop through this variable (which is of xmltype) and print the values of the tags <FeatureName> and <FeatureAction> for every Feature.
    (ie)
    qaz Add
    wsx Remove
    Can you please tell me how i can loop through to extract the values?
    Many Thanks,
    Kalyani

    user11912174 wrote:
    Hello,
    Thank you. The solutions may hold good on a normal context. What my problem is I want to run a loop through an anonymous block in pl/sql where I am already using a cursor where each record contains an xml value as above. So i need to be extracting for each run in a cursor. So i need to be extracting the <FeatureName> and <featureaction> values in each cursor run. Any help on this?
    ThanksCan you not incorporate it as part of the cursor itself?
    It can return the values as part of the data from the cursor rather than using PL/SQL extracts on the XML to do it.
    SQL> ed
    Wrote file afiedt.buf
      1  with myxml as
      2    (select xmltype('<FeatureRoot>
      3                       <Feature>
      4                         <FeatureName>qaz</FeatureName>
      5                         <FeatureAction>Add</FeatureAction>
      6                       </Feature>
      7                       <Feature>
      8                         <FeatureName>wsx</FeatureName>
      9                         <FeatureAction>Remove</FeatureAction>
    10                       </Feature>
    11                     </FeatureRoot>') myxml from dual union all
    12     select xmltype('<FeatureRoot>
    13                       <Feature>
    14                         <FeatureName>aaa</FeatureName>
    15                         <FeatureAction>Add</FeatureAction>
    16                       </Feature>
    17                       <Feature>
    18                         <FeatureName>bbb</FeatureName>
    19                         <FeatureAction>Remove</FeatureAction>
    20                       </Feature>
    21                     </FeatureRoot>') from dual)
    22  select extractvalue(VALUE(t),'/Feature/FeatureName') featurename
    23  ,      extractvalue(VALUE(t),'/Feature/FeatureAction') featureaction
    24  from   myxml x
    25* ,      table(xmlsequence(extract(x.myxml,'/FeatureRoot/Feature'))) t
    SQL> /
    FEATURENAME     FEATUREACTION
    qaz             Add
    wsx             Remove
    aaa             Add
    bbb             Remove
    SQL>

Maybe you are looking for

  • Touchsmart series and lack of hdmi in/out

    I signed up to this forum after searching around for info on hdmi in/out. I have not purchased an HP in about 5 years, I saw a touchsmart at costco and thought very nice. HOWEVER, as I google around there seems to be a general lack of HDMI support :

  • Creating materail in non sap system when it is create in sap

    Hi, As with the help of IDOC  we can perform the activity in multiple sap server,  like creation of material master if it is created in one system it can be created in other,  I have one requirement , we are suing one non sap systems there we are per

  • EXPORT/IMPORT 에 관하여 (2)

    제품 : ORACLE SERVER 작성날짜 : 2003-11-19 Q> 테이블 LEVEL EXPORT 방법의 종류가 하나 이상 있습니까? ▶▶ 말씀드리자면 대답은 그렇기도 하고 아니기도 합니다. 테이블 export는 두 가지 방법 중 하나가 될 수 있습니다. --- 사용자가 그 소유한 테이블을 export 한다. exp donald/duck tables=huey, dewey, louie --- SYSTEM/MANAGER 같은 DBA가 사용자의

  • How to convert my .psd into .pdf in cs4

    Help! I cannot convert or save my file as a .pdf in adobe photoshop cs4. It wont allow it on the format options in save as. I looked up online and a website said to convert it through the print setup page but it seems as if i cannot even get to the p

  • Creating Single TreeTable from two self linking VOs

    Hi, Lets say, I want to show the organization structure in TreeTable in following format NOTE: I am sorry, I am not able to get the indentation. Every row in below layout is indented one level compared to above row Continent Country AreaHead Employee