How to read and process oData service's ATOM XML output?

Hi,
I have a RFC created in system A which will call oData services of system B. I am calling this in a report using class methods,  cl_http_client. I will get the response in a ATOM XML format. Is there a standard way to read and process such ATOM XML in abap report without using further addons?
Regards,
Vinay

You need to pass your filename String as a parameter to your functionality. It depends how you're currently set up though. We can't really see the top of your call so it's difficult to determine what you are calling and we don't really know from where you're calling either.
If you're running standalone, then on launch of the application, you can feed in a file name as an argument that you can read in in String args[] in the main function and pass down to your XML splitter.
If you're a method in a class that's part of a bigger pile, you can feed the file name as a String to the method from wherever you call from if it makes sense architecturally.
You might also want to pass down a File object if that makes sense in your current code (i.e. if you're using your file for other purposes prior to the split, to avoid recreating closing/opening for no reason).
Depends what you're trying to do. If I put together a piece like this, I would probably create an <yourcurrentrootpackage>.xml.splitter package.
Also, on a side note, you're problem isn't really reading and writing XML in java, but seems more to be making your functionality generic so that any XML file can be split with your code.
Regards
JFM

Similar Messages

  • How can read and process data uploded from a datalogger on a network with labview

    hello evryone.
    i have a agilent datalogger 34972a data acquire temperature reading and makes them availlable on a network. i would like to acess this data on a pc running labview, analyse and prsent them. my problem is that i am not quite sure how to tell labview acquire this specific data.
    any help would really help me getting started.
    thanks already.
    Yann

    Are you
    Running the Agilent stand alone (or using Benchlink) and writing data to a file on the network ?
    Do you want to use LabView to control the networked data logger and aquire data? 
    If you are doing #1 then you can not use LabView because the Agilent (and Benchlink) strores data in a proparitary format.
    You have to use Benchlink to export the data to a CSV file before any other program besides Benchlink can read it.
    If you want to do #2 then you simply access the Agilent through VISA just like if it were connected using USB, Serial, or GPIB. 

  • How much ram and processing power in my imac will meet my graphic design needs?

    Hi,
    I'm in the market for a new imac. I'm trying to figure out how much ram I'll need and which processor will be sufficient for my graphic design needs.
    I'm gonna need it to be robust enough to have InDesign, Photoshop, and Illustrator open at once along with spotify, safari with many tabs open, and a couple other apps including evernote and game from time to time. Also, I'm gonna be managing a good deal of fonts in font explorer. How much ram and processing power will I need in my imac to keep everything snappy with all these apps going at the same time?
    Any advice on this would be much appreciated. Feel free to include any other relevant information you think I should know.
    Thanks, Nick

    Computers are out of date when you open the box
    Ok, getting serious, that iMac should be a viable workhorse for what you want for a good five years, and taht depends on how much ram you put in it, add really fast external storage, and so on.
    Didn't throw this in earlier so as to not influence the discussion: my daughter is the senior art director, VP, at a graphics design firm in NYC.  Has been in the business for a number of years.  When she changed out her Mac at work, bought, or company bought, the 27" iMac model just before the latest, with maxed out CPU/GPU, and storage.  They maxed the memory to 32 GB for her, then added a 30" Apple cinema display so she has almost 5' of display in front of her.  There is nothing she cannot have open all spread across that display area.  She works almost exclusively in print media, occassionally condescends to do web stuff.  And has a massive array of RAID drives hanging on it.  But that is a setup an individual would be hard pressed to go with.
    At home she uses a MacBook Pro with top cpu and display but that is all.
    The point, just how massive do you want to go depends on how fast you have to work; in the office where time is money you need tons of horsepower.  At home, you scale it to your abilitty to juggle other tasks at the same time.
    I think your choices have been great, the discussion has focused on what is important and especially what can and cannot be changed in the future.
    Best of luck setting this up.

  • Programmatically reading and processing a spool file

    Hello,
    I would like to read and process a spool file generated by a background job in my ABAP program.
    Can anyone advise if this is possible in SAP and if so, the best way to do this?
    The only information I will have in my program is the job name and the date on which the job was run. I then need to find the corresponding spool and read this into an internal table.
    Any ideas on how to do this would be appreciated.
    Thanks,
    Ruby

    DATA : it_spool      TYPE STANDARD TABLE OF rsporq    .
    *&      Form  find_spool_request_id
    FORM find_spool_request_id.
      CALL FUNCTION 'RSPO_FIND_SPOOL_REQUESTS'
        EXPORTING
          allclients          = '320'
          datatype            = '*'
          has_output_requests = '*'
          rq0name             = nast-dsnam
          rq1name             = '*'
          rq2name             = '*'
          rqdest              = 'LOCL'
          rqowner             = sy-uname
        TABLES
          spoolrequests       = it_spool
        EXCEPTIONS
          no_permission       = 1
          OTHERS              = 2.
      IF sy-subrc <> 0.
        MESSAGE i000 DISPLAY LIKE 'E' WITH text-002.
        LEAVE LIST-PROCESSING.
      ENDIF.
    ENDFORM.                    " find_spool_request_id
    READ TABLE it_spool INTO wa_spool INDEX 1.
      v_spoolno = wa_spool-rqident.
    *Get Spool request attributes
      SELECT SINGLE *
        FROM tsp01
        INTO tsp01
        WHERE rqident EQ v_spoolno.
    Edited by: K.Manas on Jan 7, 2011 6:22 AM

  • How to Create and Deploy Web Services Using Oracle 9i JDeveloper

    Hi,
    My Question is how to create and deploy Web Services using Oracle 9i JDeveloper.Anybody please give me a detailed Reply.Please Reply to [email protected]
    Hopr to Hear From you,
    Regards,
    G Sreekumar

    You could use datasources. You should do this in your BC4J Configuration. Then when deploying your applicaiton use the command -installDataSource (from admin.jar) to create the right datasource.
    You could probably use the name of your connection + "DS" so you can also use it locally in JDeveloper as JDev seesm to create this automaticly for your Connections.

  • How to read and update the value of property file

    Hi,
    I am not able read the values from property file.
    Please tell me how to read and update the values from property file using Properties class
    This is my property file : - Config.properties its located in D:\newfolder
    Values
    SMTP = localhost
    Now i need to change the value of the SMTP
    New value :
    SMTP =10.60.1.9
    Pls Help me
    Thanks
    Merlin Rosina,

    Post a small (<1 page) example program that forum members can copy and run that demonstrates your problem.

  • How to read and write a string into a txt.file

    Hi, I am now using BEA Workshop for Weblogic Platform version10. I am using J2EE is my programming language. The problem I encounter is as the above title; how to read and write a string into a txt.file with a specific root directory? Do you have any sample codes to reference?
    I hope someone can answer my question as soon as possible
    Thank you very much.

    Accessing the file system directly from a web app is a bad idea for several reasons. See http://weblogs.java.net/blog/simongbrown/archive/2003/10/file_access_in.html for a great discussion of the topic.
    On Weblogic there seems to be two ways to access files. First, use a File T3 connector from the console. Second, use java.net.URL with the file: protocol. The T3File object has been deprecated and suggests:
    Deprecated in WebLogic Server 6.1. Use java.net.URL.openConnection() instead.
    Edited by: m0smith on Mar 12, 2008 5:18 PM

  • How to read and write a data from extrenal file

    Hi..
    How to read and write a data from extrenal file using Pl/sql?
    Is it possible from Dyanamic Sql or any other way?
    Reagards
    Raju

    utl_file
    Re: How to Create text(dat) file.
    Message was edited by:
    jeneesh

  • Reading and processing file(s) in a filesystem

    I'm fairly new to java programming and need help.
    I need to write code which will and read and process 1 or many files from a filesystem. If a file is found, read and process it. Then do same for all files found.
    Please help.
    Thanks in advance!

    Some classes of the package java.io will be used .
    http://java.sun.com/j2se/1.4.1/docs/api/java/io/package-tree.html
    (The java.io.File has the methods list() and listFiles(), of which the former returns an array String[] and the latter returns an array java.io.File[]. )

  • How to Read and Write .XML datas   (HELP Plz...)

    hai everybody
    how to read and write xml datas... plz give clean and simple example..
    bcoz me want to produce such type of module...
    if any one help me .. thats the only way me laid in software ladder
    plz....
    thank u in advance

    thank u for giving idiot..
    but before posting i search in google also..
    but i cant get what me expect..
    thus i posted...
    then who is ................?
    sorry javacoder01
    // plz help me
    Message was edited by:
    drvijayy2k2

  • How to read and upload microsoft word file into database using forms9i

    Hi,
    How to read and upload microsoft word file into oracle database using forms9i. I appretiate if anyone can send me example or atleast a sujjetion.
    Thanks in advance
    Mahesh Ragineni

    The webutil package includes the ability up upload from the client to the database. See otn.oracle.com/products/forms and click on webutil for more details.
    Regards
    Grant Ronald
    Forms Product Management

  • Read and Process Microsoft Word's Form

    Hi,
    Is there any WDP API or open source Java API to read and process Ms Word's Form, such as input field, pull down list etc.? I know of POI's HWPF, but it can only do some basic Word processing.
    Thanks.
    - julius

    JAWIN or NEWJAWIN!!!!
    newjawin consists of a java-com-codegenerator, which generates Java-Proxy-classes for COM-components like MS Word, Excel, ...
    1. download newjawin
    2,. start codegenerator (exe)
    3. choose COM-Component (f..e. winword.exe)
    4. press "generate"-Button
    5. Use Javaproxyclasses to access full MS Word
    Or you can use a commercial software like J-Integra that provides ready-to-use Java API to access Word. The benefit of using this tool  is that it exposes all the formatting tools Word provides like adding header, footer, page numbers, tables, etc. Also, if you require user interaction to manipulate the Word document, you can listen to Word events from your Java program and implement event handlers accordingly.

  • How to read and write on ntfs partitions??

    Hello everyone, thanks for viewing my post.  I want to know how to read and write on ntfs partitions under sata hd on my arch64 system.  I'm using kde as my de and dolphin does sees it but can't access it anyway.  I didn't had problem so far on mounting usb drives it just automounts maybe because it is a fat partition not a ntfs?  Please I need your help...Thanks in advance:)

    You will most likely need to rework your fstab.  The one from my desktop is shown below. If you want regular users to be able to access the partition, then you will need to change the gid option as I have done. Although you could create a group just for people you want to have access.
    You will need to know the device that your windows partition is held on of course. In my case it is my first hard disk, first partition, hence /dev/sda1.
    # /etc/fstab: static file system information
    # <file system> <dir> <type> <options> <dump> <pass>
    none /dev/pts devpts defaults 0 0
    none /dev/shm tmpfs defaults 0 0
    /dev/cdrom /media/cdrom auto ro,user,noauto,unhide 0 0
    /dev/dvd /media/dvd auto ro,user,noauto,unhide 0 0
    /dev/mapper/nvidia_fbgfhehd1 /boot ext2 defaults 0 1
    /dev/mapper/nvidia_fbgfhehd2 / reiserfs defaults 0 1
    /dev/mapper/nvidia_fbgfhehd3 /var reiserfs defaults 0 1
    /dev/mapper/nvidia_fbgfhehd5 /opt reiserfs defaults 0 1
    /dev/mapper/nvidia_fbgfhehd6 swap swap defaults 0 0
    /dev/mapper/nvidia_fbgfhehd7 /home reiserfs defaults 0 1
    /dev/sdd1 /mnt/andromeda vfat defaults 0 0
    /dev/sda1 /mnt/windows ntfs-3g defaults,user,gid=users 0 0
    My XP partition is set to mount automatically, as I regularly interchange documents between the OS's.
    Hope that helps.

  • How to read and write data in to a specified range of cells(it include multiple row & columns) in excel

    How to read and write data in to a specified range of cells(it include multiple row & columns) in excel

    CVI Comes with a sample project that explains how to read/write to a Excel file: choose "Explore examples..." in CVI welcome page and navigate to <cviSampleDir>\activex\excel folder where you can load excel2000dem.prj.
    Proud to use LW/CVI from 3.1 on.
    My contributions to the Developer Zone Community
    If I have helped you, why not giving me a kudos?

  • How to read and then extract HTMl source code using java program?

    Hi,
    Could someone tell me how to read and then extract the content of certain tag from html source code. For example, given url http://.... , I would like to know what the <Title> content <Title> in that page is.
    Any help is greatly appreciate.

    Use a URLConnection to make the connection to the page at the needed URL. From the URLConnection, you can get an InputStream that is the stream of data from that page. Just search through the stream and find the <title> tags (don't forget to check for case sensitivity).

Maybe you are looking for

  • HT1495 Can two people use the same itunes account?

    Can two people use the same iTunes account? On different computers and different devices?

  • How can i buy an opensparc processor?

    Hi all. How can i buy a opensparc processor? Is it possible to buy only the processsor and only the motherbord? My point is to avoid spending of so much money and to have a sparc. Opensparc is good idea but where can i get the physical processor avai

  • CAMERA and PHOTO LIBRARY NOT WORKING ON 3GS

    Camera option frozen wont let me take pictures. Also when viewing library it wont playback video or show full rez pics. *** apple ?

  • Column Order in Popup

    Is there a way to change the order of the columns in the pop-up? They are in alphabetical order, and i would prefer they are in the order that they are in the table. All of the tools I have ever used with this feature are ordered by column_id. When I

  • Error while installing ECC 5

    Hi Guru's, We are facing an error,while installing the data base instance.We have done central instance installation sucessfully. It's giving an error message as Drive:/xxx/xxx/DATA files doen n't find. This is actual path, where we have kept our ins