How to parse all the data of the particular tag in the xml file

Hi All,
I have a xml file, which have tags like, code,rev_num,type...volunteer.I want to parse the xml and save the all data(code,rev_num...) of the tag <type>unknown </type>in a text file. I tried to use a Match node vi but I not geting the output i need.attach is my attempt , can anyone suggest me or help me out.(Sorry Cant attach the xml hence i saved it as an text file.)
Thanks,
Ankit G
Solved!
Go to Solution.
Attachments:
teeth.txt ‏385 KB
Xml parse.vi ‏22 KB

TailOfGon wrote:
Do you want to extract all the data with type='unknown'?
Then try the XPath like this: 
resource[type='unknown']/code
Hi,
Yes I want to extract all the data of the type = "unknown", I tried Xpath resource[type='unknown']/code but it didnt work , I still getting all other data of different type .
Thanks,
Ankit G

Similar Messages

  • How to move the data of a table from sqlplus to XML file

    Hi,
    Could you pls guide me how to move the data of a table from sqlplus to XML file.
    i want to do it from sqlplus rather than toad.pls help
    Thanks

    Oh..I'm in 9i.
    Try this out..and let me know.
    DECLARE
    CTX DBMS_XMLGEN.CTXHANDLE ;
    XML CLOB ;
    F UTL_FILE.FILE_TYPE;
    XMLC VARCHAR2(32767);
    BEGIN
    CTX := DBMS_XMLGEN.NEWCONTEXT('SELECT * FROM department1 ') ;
    XML := DBMS_XMLGEN.GETXML(CTX) ;
    XMLC:=TO_CHAR(XML);
    SHOW_ENVELOPE(XMLC);
    F := UTL_FILE.FOPEN('ATTACH_FILES','DEPT.XML', 'W');
    UTL_FILE.PUT_LINE(F,XML);
    UTL_FILE.FCLOSE(F);
    END ;
    Good luck!!!
    Bhagat
    null                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

  • Limit the data on a particular column with the corresponding column

    Hi,
    I had a report.
    id   submitdate        informationdate                  information
    10    06/7/10           07/07/10    10.12             submitted
    10     06/07/10        07/11/10    12.12             delivered to highleevel
    10     06/07/10          07/13/10   15.13             Resolved
    I just want to limit the data on a information date with the latest entry and along with its corresponding information.I mean to say only 3rd row  I need.,
    I applied Max( <Inofrmationdate>). Then ok with this function.I am trying to put the information object.Then I am nt geting the relevant data.
    The report contains only one data provider.
    Please can you suggest me with possible solutions.
    Thanks,

    Hi,
    Here you are using max(<Inofrmationdate>) and you will not get relevant result because in the backend at database end the query will be generated with group by clause and the remaining objects as group. Please check the query that is generated at the database end.
    Go to edit query -
    > SQL -->> check SQL query and validate it by running at backend
    Or You can use different functions using Rank, place rank field in information date and make report to populate only with highest or lowest rank (based on the ranking you decide)
    Please let me know if you need more information.
    Regards,
    Chitha.

  • I have forgotten my password for icloud, have an invalid email address and do not know my security answers. How can I transfer all my data from my old iphone to the new one?

    I have forgotten my password for icloud, have an invalid email address and do not know my security answers. How can I transfer all my data from my old iphone to the new one?

    In this case you won't be able to do that?

  • Hi...i bought the new iphone 4 and would like to ask how can i transfer all my data from my old iphone to the new one?  If I will do "synchronization" through itunes with the old phone and the plug in the new one will that be the case?

    Hi...i bought the new iphone 4 and would like to ask how can i transfer all my data from my old iphone to the new one?  If I will do "synchronization" through itunes with the old phone and the plug in the new one will that be the case?

    Follow the instructions in this article to transfer your info: iPhone: Transferring information from your current iPhone to a new iPhone

  • My Macbook pro was stolen 09/12, the police just returned it to me. I want to remove all the data and start over. Format the drive's etc. I have windows 7 on 1 partion and mountain lion OSX on the apple partition. How is the best way to do this?

    My Macbook pro was stolen 09/12, the police just returned it to me. I want to remove all the data and start over. Format the drive's etc. I have windows 7 on 1 partion and mountain lion OSX on the apple partition. How is the best way to do this?

    Have a look here...
    what-to-do-when-your-hard-drive-is-full.html

  • HT203167 I have just downloaded the latest itunes version (11.0.1). All my data cannot now be located, though the library is showing all the correct content.The data is stored on an external hard drive. How do I tell the library where to find it's data?

    I have just downloaded the latest itunes version (11.0.1). All my data cannot now be located, though the library is showing all the correct content.The data is stored on an external hard drive. How do I tell the library where to find it's data?

    The iTunes application should be installed on the system drive. You may need to repair iTunes to fix that error regarding a missing .exe.
    To organize your library properly see Make a split library portable.
    If you don't have a working version of the library that can be transformed into a portable shape I have tools and techniques that can repair the broken links.
    tt2

  • My phone when attached to the charger boots up reaches the password screen, i enter my password and it goes to home screen then shuts itself off and reboots. is my phone possessed or how can i fix it? can i get the data off of it even if the phone is gone

    my phone when attached to the charger boots up reaches the password screen, i enter my password and it goes to home screen then shuts itself off and reboots. is my phone possessed or how can i fix it? can i get the data off of it even if the phone is not salvageable? thank you so much in advance for your help!

    Make sure you have the Current Version of iTunes Installed on your computer
    iTunes free download from www.itunes.com/download
    Then see Here  >  http://support.apple.com/kb/HT1808
    You may need to try this More than Once...  Be sure to Follow ALL the Steps...
    Take your time... Pay particular attention to Steps 3 and 4.
    After you have Recovered your Device...
    Re-Sync your Content or Restore from the most recent Backup...
    Restore from Backup  >  http://support.apple.com/kb/ht1766
    Note.  Once the Device is asking to be Restored with iTunes... it is too late to save anything... and you must continue with the Recovery...

  • How to fetch the Date column(or Month column) from the file name from the specified path in ODI 11g

    Hi ALL,
    Can any one help us regarding How to fecth the Date column(or month column) from the file name specified in the path in a generalized way .
    For example :
    file name is :subscribers (Cost) Sep13.csv is specified in the below path
      E:\Accounting\documents\subscribers (Cost) Sep13.csv
    here I need to fetch the "Sep13" as a Date column in the ODI 11g in the generalized way.
    Can any one help us in this case as early as possible.

    I would suggest using a piece of Jython code for this.  Something like this...
    import os
    import os.path
    filelist  = os.listdir(E:\Accounting\documents\)
    for file in filelist:
    datestr = file[19:-4]
    You'd need to work out what to do with datestr next...  perhaps write it to a table or update an ODI variable with it.
    Hope this is of some help.

  • How to get the dates a user has logged into the portal??

    I need to know all the times and the dates a user has loggin to the portal? Do you know any way to do this? I was trying to use "successfullogoncount" from UME_STRING of the PCD database but it doesn't say anything about the dates. I also try to use "lastsuccessfulllogon" from the sama table but, as the name says, it just give me the last date of logon... Please help!!!

    Hi Pablo,
    probably you could work with Portal activity reports.
    This can generate reports on activity in the portal, either reports on how many users were logged on to the portal or reports on the most popular pages and iViews.
    look out on this weblog at
    https://www.sdn.sap.com/sdn/weblogs.sdn?blog=/pub/wlg/1242. [original link is broken] [original link is broken] [original link is broken]
    From this you can know which user has logged on at which date and time.
    If you are not looking for Portal activity reports try this:
    You can  get this information in the Visual Administrator of the J2EE Engine.
    Goto  Security Provider Service -> Runtime -> Login (Sessions).
    This would return a table showing the users along with the logging in start date&time, (if logged out) log out date&time, user-Ids, etc.
    Hope this helps,
    Regards,
    Uma.
    Message was edited by: Uma Thirugnanam

  • I am receiving the data through the rs232 in labview and i have to store the data in to the word file only if there is a change in the data and we have to scan the data continuasly how can i do that.

    i am receiving the data through the rs232 in labview and i have to store the data in to the word or text file only if there is a change in the data. I have to scan the data continuasly. how can i do that. I was able to store the data into the text or word file but could not be able to do it.  I am gettting the data from rs232 interms of 0 or 1.  and i have to print it only if thereis a change in data from 0 to 1. if i use if-loop , each as much time there is 0 or 1 is there that much time the data gets printed. i dont know how to do this program please help me if anybody knows the answer

    I have attatched the vi.  Here in this it receives the data from rs232 as string and converted into binery. and indicated in led also normally if the data 1 comes then the led's will be off.  suppose if 0 comes the corresponding data status is wrtten into the text file.  But here the problem is the same data will be printed many number of times.  so i have to make it like if there is a transition from 1 to o then only print it once.  how to do it.  I am doing this from few weeks please reply if you know the answer immediatly
    thanking you 
    Attachments:
    MOTORTESTJIG.vi ‏729 KB

  • HT1382 how can I restore my back up files from my laptop? i want to see the dates and time that I backed up  my files. is it posssible?

    how can I restore my back up files from my laptop? i want to see the dates and time that I backed up  my files. is it posssible?

    What backed up files?
    Available backups for an iOS device can be found in Edit > Preferences > Devices.

  • How can I find out the date of a movie I am trying to pre-order if the date is not available/showing in the "manage pre-order" section?

    How can I find out the date of a movie I am trying to pre-order if the date is not available/showing in the "manage pre-order" section?

    Thanks so much for your reply King_Penguin. No, sadly there is not indication of the expected release date on the film, it's no where to be found. I have also tried to look in other places online, but no luck. I guess your latter statement jives more with my situation, that  being the studio/rights-holder hasn't feel inclined to provide the date.

  • HT201269 how can I transfer the data of my old iphone to the new one?

    I have skipped the setup part of the new iphone, how can I transfer the data of my old iphone to the new one?

    iOS: Transferring information from your current iPhone, iPad, or iPod touch to a new device - http://support.apple.com/kb/HT2109

  • I scanned an old photo but the date displayed is today, I want the date to be the date the photo was taken.  How do I change the date of the photo in iPhoto 11?

    I scanned an old photo but the date displayed is today, I want the date to be the date the photo was taken.  How do I change the date of the photo in iPhoto 11?

    There are two kinds of metadata involved when you consider jpeg or other image file.
    One is the file data. This is what the Finder shows. This tells you nothing about the contents of the file, just the File itself.
    The problem with File metadata is that it can easily change as the file is moved from place to place or exported, e-mailed, uploaded etc.
    Photographs have also got both Exif and IPTC metadata. The date and time that your camera snapped the Photograph is recorded in the Exif metadata. Regardless if what the file date says, this is the actual time recorded by the camera.
    Photo applications like iPhoto, Aperture, Lightroom, Picasa, Photoshop etc get their date and time from the Exif metadata.
    When you export from iPhoto to the Finder new file is created containing your Photo (and its Exif). The File date is - quite accurately - reported as the date of Export.
    However, the Photo Date doesn't change.
    The problem is that the Finder doesn't work with Exif.
    So, your photo has the correct date, and so does the file, but they are different things. To sort on the Photo date you'll need to use a photo app.

  • How can i transfer the data from my computer onblock to the NI 6534 ?

    i have a NI 6534 and want to programm it for an application.so, to tranfer the data onblock from my pc to the card and configure the divisor for the set/shift signal for 1/12 clock.
    thank you.
    Armand Kom.

    You should be able to find a basic example of most anything you would need to do with the 6534 in the shipping examples or on our on-line example programs database. There are several different modes the 6534 can use for data transfer the most common being burst mode. For finite or continuous generation transfers, the driver will always preload the onboard 6534 memory with the data automatically (if it will all fit) so that operation doesn't really involve anything special.
    If you are using LabVIEW, you can browse the shipping examples from under the Help menu. If you are using the NI-DAQ API, look in your ...NI-DAQ\Examples\ folder. I would suggest the "DOsingleBufBurstHandshake653x" example.
    I hope this helps.
    Russell
    Applications Engineer
    National Instruments
    http://www.ni.com/support

Maybe you are looking for

  • Trouble inserting Flash in CS5.5

    I just upgraded to CS5.5 and am having trouble inserting a Flash file into Dreamweaver. When I used CS4, I would open the html file that Flash created in the Publish process. I would copy and paste the top part of that file -- the <script> info into

  • Vudu stopped working after updating to iOS 8.02

    I have an iPad Air WiFi/Cellular I had inadvertently deleted my Vudu movies the other night at work.  I had hit the sign out option in Vudu and didn't full read the pop up saying that ALL data, including movies, would be erased.  So I sent several ho

  • How do I export an imovie project from the iMac to the iPad2?

    Howdo I export an imovie project on my iMac to the iPad2?

  • Battery BA800

    i need a new original battery for my xperia V? where can i buy it?

  • SAP MM Certification Info

    Hello Everyone! I appreciate if somebody can send me through the required material or mock tests in order to practice for my certification exam in MM. Thanks in advance. BP