Reading XML file in a Store App

I have an XML file on the web which I want to read from a C# Store app. This file is actually an Atom feed, but that doesn't matter, I just want to get the XML contained within.
Anyway, I tried several methods but none of them can get me what I want.
My requirements are pretty simple, I want to get each Entry, and from it take the Summary, and from it take the entire text including the tags. The closest I got was being able to get the entire text contained within <Summary>, but without the child
tags <short-description> and <tab>, but I want them too.
<?xml version="1.0" encoding="UTF-8"?>
<feed xmlns="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
<title>Product Details</title>
<link rel="self" href="http://someLink" />
<subtitle>Product Details</subtitle>
<id>somID</id>
<updated>2015-03-04T11:20:05Z</updated>
<dc:date>2015-03-04T11:20:05Z</dc:date>
<entry>
<title type="text">Loan ABC</title>
<link rel="alternate" href="http://somLink" />
<author>
<name />
</author>
<summary type="text">
<short-description>Get the money you need when you need it! Your perfect banking partner provides you instant gold loans at cheaper interest rates.</short-description>
<tab id="0" header="Features &amp; Benefits">
Avail loan amount up to Rs.75 Lakhs
Quick processing within a few minutes
No hidden charges or heavy pen
*Conditions apply
</tab>
<tab id="1" header="How to apply ?">
Who can apply
Any Individuals.
How to avail the loan?
To avail the loan, Please visit any of our branches.
</tab>
<accordian id="0" header="Documents Required">
If you are a new customer, following documents are required:
Proof of Identity (Passport / Voters ID card/ Driving License/PAN Card)
Recent Passport size photograph
Address Proof (Ration card Tel/ Electricity Bill/ Lease agreement/ Passport/Trade license /Sales Tax certificate)
</accordian>
<accordian id="1" header="Repayment options">
Repayment of the loan can be made as lump sum or as installments
</accordian>
<accordian id="2" header="Gold loan - Rate per gram">
To know the maximum amount per gram, please click here.
</accordian>
<accordian id="3" header="Interest Rates &amp; Charges">
Please visit the Interest Rates page for details
</accordian>
</summary>
</entry>
<entry>
<title type="text">Federal Proxy Loan </title>
<author>
<name> BMA </name>
</author>
<summary type="text">
<short-description>Do you want a loan ? We give out loans !!! At nominal interest rates !!! </short-description>
<tab id="0" header="ABC &amp; DEF">
This is Line 1
This is Line 3 (Line 2 was empty)
4
5
</tab>
<tab id="1" header="Header of ID 1">
ABCDEFGHI
</tab>
</summary>
</entry>
<entry>
<title type="text">Federal Car Loan </title>
<author>
<name> BMA </name>
</author>
<summary type="text">
<short-description>Do you want a loan ? We give out loans !!! At nominal interest rates !!! </short-description>
<tab id="0" header="ABC &amp; DEF">
This is Line 1
This is Line 3 (Line 2 was empty)
4
5
</tab>
<tab id="1" header="Header of ID 1">
ABCDEFGHI
</tab>
</summary>
</entry>
<entry>
<title type="text">Yet Another Federal Loan </title>
<author>
<name>BMA</name>
</author>
<summary type="text">
<short-description>We give wonderful loans, all for you - cum and get it</short-description>
<tab id="0" header="Header &amp; d">
This is Line 1
This is Line 2
This is Line 3
</tab>
<tab id="1" header="abc">
Only One Line for Tab 1
</tab>
</summary>
</entry>
</feed>

Take a look at linq to xml to parse the xml
https://msdn.microsoft.com/en-us/library/bb387098.aspx?f=255&MSPPError=-2147217396
Another option if the xml is always in the same format you can create a class to deserialize the xml into.
http://irisclasson.com/2012/07/09/example-metro-app-winrt-serializing-and-deseralizing-objects-to-storagefile-and-localfolder-using-generics-and-asyncawait-threading/

Similar Messages

  • Reading XML file using BAPI  I must use adapters .

    Reading XML file using BAPI and then uploading that xml file data into SAP using BDC.
    I cant take file on to my Application server I am getting the file dynamically from other file server and I need to use BAPis to read data from XML file.please tell me what should be my Import,Export and Tables parameterrs should be.
    Thanks

    Hi,
    Import, export and table parameters for BAPI is required, without that BAPI will not able to collect the data from XML. What you need to do is write a Zprogram and collect the data, store that data in internal table and call the BAPI by passing required parameters.
    Different Scanarios:
    1) Before calling a BAPI write some other program which collects the data from XML and create a UNIX file. Try to get the data from UNIX FILE
    2) If you see the XML tags, data will be in side that tags, try to get the data from XML tags and store that data in one SAP table. You can use the BAPI by fetching the data from table
    3)Create a table and store the data in the table. Use the table in SAP to extract the data.
    BAPI won't work without any parameters, you have to pass some parameters then the BAPI will return some values.
    Hope i am clear.
    Thanks&Regards,
    -Suresh Revuru

  • UCCX Reading XML file hosted on IIS web server

    hi guys,
    i have a customer on CCX 8.5 environment and they have a .NET application running on an IIS web server. As part of this .NET application, the app produce an XML file.
    My questions is
    "Can CCX read XML file that is hosted externally on IIS web server rather than parsing the XML file on CCX document repository?"
    All of the examples of XML parsing points to the XML file in document repository.
    Any pointers to links and documentation/example on how to do this would be greatly appreciated.
    If this is not achievable, if you could kindly suggest a different way of doing it too would be greatly appreciated.
    Thanks in advance,
    Daniel

    Hi,
    to be quite honest with you, I don't know anything about Sharepoint - so I am afraid I cannot help you with its XML editing capabilities. XML is just a well formed text file that follows some logical rules, so no additional application is required for editing, in fact, I always encourage everybody to use Notepad/Textpad/ to read and edit XML files. Of course, if it's not possible, you will find a great number of various user friendly XML editing applications.
    A UCCX script will normally access an XML using the Create URL Document step and then, using the Get XML Document data step with the help of an XPath expression, will filter out the necessary information from the XML document.
    The protocols used are standard and well known, including HTTP and XPath (and XML itself). So it does not really matter what kind of HTTP server serves the XML file, IIS is just an option.
    Examples may be found in the Scripting guides for your particular UCCX version.
    HTH
    G.

  • How to read xml file as shown below.

    Hello,
    I am using flash builder 4 and currently working on implementing AIR application.
    I need to read xml file data.
    Normal xml files are easy to read and i am much more aware of it.
    But can any one have idea how to read XML file which is given below.
    <node>
    <key>ID</key>
    <integer>1</integer>
    <key>Name</key>
    <string>Dhwani</string>
    <key>Postno</key>
    <integer>20</integer>
    <key>deskname</key>
    <string>flex</string>
    <key>empid</key>
    <integer>25</integer>
    <key>projectname</key>
    <string>abc</string>
    </node>
    Here i have xml file in form of key value pair. <key> node shows name of the key and after that <integer> or <string> node are the value for that specific key.
    if i select node.key then it shows me all the keys. and from that i cant make out what is the value for key ID.
    Is there any way to take first node and then second. i mean first i ll take value of key and store it into some arraycollection. and then value will be stored.
    Any help is appreciated.. Looking for positive reply.
    Thanks
    Dhwani

    There are different methods to access XML data which have pro's and cons. Let us know more about what you want to do and we can help you.

  • How to read Read XML File

    How can i read data from xml file and store relevant data in my database? what r the initial requirements to read xml file.

    So if the Database is in Japanese for instance, using Unicode, and you wanted to use pl/sql queries to create an XML file you could do that and then read that XML file back into pl/sql insert queries after web transmission to another Oracle 8i database? Any good resources that you know of for doing this kind of thing?
    -dan
    It depends on exactly what you want to do. If you fetch an XML document from a web page you can store it as a CLOB in the database, if you want to read it from a file you need to be aware of character set translation problems when using Unicode character sets and dbms_lob.Read function, use utl_file instead. If you wish to transform the XML document using XSLT then you need to load the stylesheet from OS, parse it and apply it to the document.
    If you want some sample code then reply with a mail address.

  • Read XML File on Unix from PL SQL

    Hi,
    How to read XML file placed on Unix Dir .
    If file name is yx.xml and file contain below data. Please let me know how to read
    column values such as AutomatedTransferOrders uniqueId="11761:234570"
    2)Cto Type = CTO
    3)Description = Test PIP
    <AgileData xsi:schemaLocation="http://www.oracle.com/ http://www.oracle.com/technology/products/applications/xml/aXML.xsd">
    <AutomatedTransferOrders uniqueId="11761:234570">
    <CoverPage>
    <CtoType>CTO</CtoType>
    <CtoNumber>CTO00069</CtoNumber>
    <Description>Created by subscriber DBA Program Prototype Change Subscriber.</Description>
    <Status>Released</Status>
    <Workflow>Default CTOs</Workflow>
    <Subscriber>DBA Program Prototype Change Subscriber</Subscriber>
    <DateOriginated>2012-03-15T00:29:10Z</DateOriginated>
    <DateReleased>2012-03-15T00:29:11Z</DateReleased>
    </CoverPage>
    <SelectedObjects referentId="6000:6243458">
    <Type>Program Change Order</Type>
    <NameNumber>PG0000038</NameNumber>
    <Description>Test PIP</Description>
    <LifecycleStatus>Released</LifecycleStatus>
    </SelectedObjects>
    </AutomatedTransferOrders>
    </AgileData>
    Appreciate your help.
    Thanks and Regards,
    Abhi

    sample
    Connected to Oracle Database 11g Enterprise Edition Release 11.2.0.3.0
    Connected as apps
    SQL>
    SQL> with t as
      2   (select xmltype('<AgileData>
      3    <AutomatedTransferOrders uniqueId="11761:6243470">
      4      <CoverPage>
      5        <AtoType>ATO</AtoType>
      6        <AtoNumber>ATO00069</AtoNumber>
      7        <Description>Created by subscriber BDA Program Prototype Change Subscriber.</Description>
      8        <Status>Released</Status>
      9        <Workflow>Default ATOs</Workflow>
    10        <Subscriber>BDA Program Prototype Change Subscriber</Subscriber>
    11        <DateOriginated>2012-03-15T00:29:10Z</DateOriginated>
    12        <DateReleased>2012-03-15T00:29:11Z</DateReleased>
    13      </CoverPage>
    14      <SelectedObjects referentId="6000:6243458">
    15        <Type>Program Change Order</Type>
    16        <NameNumber>PG0000038</NameNumber>
    17        <Description>Test PIP</Description>
    18        <LifecycleStatus>Released</LifecycleStatus>
    19      </SelectedObjects>
    20    </AutomatedTransferOrders>
    21    <ChangeOrders uniqueId="6000:6243458">
    22      <Workflow>
    23        <StatusCode>Process is moved forward</StatusCode>
    24        <WorkflowStatus>Pending</WorkflowStatus>
    25        <Workflow>BDA Program Prototype Workflow</Workflow>
    26        <StatusChangedBy>Gay Groce (ggroce)</StatusChangedBy>
    27        <LocalClientTime>2012-03-15T00:29:11Z</LocalClientTime>
    28      </Workflow>
    29      <Workflow>
    30        <StatusCode>Process is skipped</StatusCode>
    31        <WorkflowStatus>PD Approval</WorkflowStatus>
    32        <Workflow>BDA Program Prototype Workflow</Workflow>
    33        <StatusChangedBy>Gay Groce (ggroce)</StatusChangedBy>
    34        <LocalClientTime>2012-03-15T00:29:11Z</LocalClientTime>
    35      </Workflow>
    36      <Workflow>
    37        <StatusCode>Current Process</StatusCode>
    38        <WorkflowStatus>Released</WorkflowStatus>
    39        <Workflow>BDA Program Prototype Workflow</Workflow>
    40      </Workflow>
    41      <Workflow>
    42      <StatusCode>Future Process</StatusCode>
    43        <WorkflowStatus>Implemented</WorkflowStatus>
    44        <Workflow>BDA Program Prototype Workflow</Workflow>
    45      </Workflow>
    46    </ChangeOrders>
    47  </AgileData>') col
    48      from dual)
    49  --
    50  select x.*
    51    from t,
    52         xmltable('AgileData/ChangeOrders/Workflow'
    53                  passing t.col
    54                  columns StatusCode varchar2(100) path 'StatusCode',
    55                          WorkflowStatus varchar2(100) path 'WorkflowStatus',
    56                          Workflow varchar2(100) path 'Workflow',
    57                          StatusChangedBy varchar2(100) path 'StatusChangedBy',
    58                          LocalClientTime varchar2(100) path 'LocalClientTime') x
    59  /
    STATUSCODE                                                                       WORKFLOWSTATUS                                                                   WORKFLOW                                                                         STATUSCHANGEDBY                                                                  LOCALCLIENTTIME
    Process is moved forward                                                         Pending                                                                          BDA Program Prototype Workflow                                                   Gay Groce (ggroce)                                                               2012-03-15T00:29:11Z
    Process is skipped                                                               PD Approval                                                                      BDA Program Prototype Workflow                                                   Gay Groce (ggroce)                                                               2012-03-15T00:29:11Z
    Current Process                                                                  Released                                                                         BDA Program Prototype Workflow                                                                                                                                   
    Future Process                                                                   Implemented                                                                      BDA Program Prototype Workflow                                                                                                                                   
    SQL>

  • How to create an unsigned appxbundle file for windows store app?

    Hi,
    Is it possible create an unsigned appxbundle file for windows store app and later sign it with my company certificate?
    If yes, how can I achieve it?
    Thanks

    You would create your own appx pacakge using
    MakeAppx.exe.
    Matt Small - Microsoft Escalation Engineer - Forum Moderator
    If my reply answers your question, please mark this post as answered.
    NOTE: If I ask for code, please provide something that I can drop directly into a project and run (including XAML), or an actual application project. I'm trying to help a lot of people, so I don't have time to figure out weird snippets with undefined
    objects and unknown namespaces.

  • FM to read XML files from Application server in ECC5.0

    Hi All,
    We need to pick up an XML file from Application server/FTP server. The requirement is to parse the XML file and process it to create material master. SAP provides standard function modules to read XML files.
    Now we need to read the XML file contents of MM01 and upload into SAP Data Base through BAPI
    I need to know about the Function modules to read XML files from Application Server and also about the FM's that will update the Date base tables with the data obtained form XML files.
    Regards
    Prathima

    Parsing XML data:
    http://help.sap.com/saphelp_nw04/helpdata/en/86/8280ba12d511d5991b00508b6b8b11/frameset.htm
    or alternatively check out ABAP online help for "CALL TRANSFORMATION".
    For creating the material master look at BAPI_STANDARDMATERIAL_CREATE.
    Thomas

  • Reading XML file from application server and  put into internal table-4.6C

    Dear All,
    Is there any way of reading XML file from application server to SAP? I am using 4.6C. Function module SCMS_STRING_TO_XSTRING function module is not available. Please suggest.
    Thanks and regards,
    Atanu

    Hi Atanu!
    Simply use the XSLT transformation 'ID'.
    FIELD-SYMBOLS <ls_result> TYPE ANY.
    CREATE DATA lref_data TYPE (your_structure).
    ASSIGN lref_data->* TO <ls_result>.
    CALL TRANSFORMATION id
                        SOURCE XML xmlstr
                        RESULT result = <ls_result>.
    "xmlstr" contains your XML file. Just read it into it via standard I/O operations. "<ls_result>" will contain your DDIC formatted content.
    Best regards
    Torsten

  • Read XML file from presentation server

    Hi All,
    I want read XML file from presentation server currently i am using GUI_UPLOAD fm . but it is reading some junk data.
    DATA : BEGIN OF upl OCCURS 0,
              f(255) TYPE c,
           END OF upl.
      CALL FUNCTION 'GUI_UPLOAD'
        EXPORTING
          filename = D:\XX.XML'
          filetype = 'BIN'
        TABLES
          data_tab = upl.
    is there any other alternative.
    Thanks
    Swarup,

    Hi Swarup,
    Use method IMPORT_FROM_FILE of class CL_XML_DOCUMENT.
    A sample code snippet :-
    PARAMETERS: p_filnam TYPE localfile OBLIGATORY
    DEFAULT 'C:\Documents and Settings\ssaha\Desktop\test.xml'.
    AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_filnam.
    DATA: l_v_fieldname TYPE dynfnam.
    l_v_fieldname = p_filnam.
    CALL FUNCTION 'F4_FILENAME'
    EXPORTING
    program_name = syst-cprog
    dynpro_number = syst-dynnr
    field_name = l_v_fieldname
    IMPORTING
    file_name = p_filnam.
    START-OF-SELECTION.
    TYPES:
    BEGIN OF ty_tab,
    name TYPE string,
    value TYPE string,
    END OF ty_tab.
    DATA:
    lcl_xml_doc TYPE REF TO cl_xml_document,
    v_subrc TYPE sysubrc,
    v_node TYPE REF TO if_ixml_node,
    v_child_node TYPE REF TO if_ixml_node,
    v_root TYPE REF TO if_ixml_node,
    v_iterator TYPE REF TO if_ixml_node_iterator,
    v_nodemap TYPE REF TO if_ixml_named_node_map,
    v_count TYPE i,
    v_index TYPE i,
    v_attr TYPE REF TO if_ixml_node,
    v_name TYPE string,
    v_prefix TYPE string,
    v_value TYPE string,
    v_char TYPE char2.
    DATA:
    itab TYPE STANDARD TABLE OF ty_tab,
    wa TYPE ty_tab.
    CREATE OBJECT lcl_xml_doc.
    CALL METHOD lcl_xml_doc->import_from_file
    EXPORTING
    filename = p_filnam
    RECEIVING
    retcode = v_subrc.
    CHECK v_subrc = 0.
    v_node = lcl_xml_doc->m_document.
    CHECK NOT v_node IS INITIAL.
    v_iterator = v_node->create_iterator( ).
    v_node = v_iterator->get_next( ).
    WHILE NOT v_node IS INITIAL.
    CASE v_node->get_type( ).
    WHEN if_ixml_node=>co_node_element.
    v_name = v_node->get_name( ).
    v_nodemap = v_node->get_attributes( ).
    IF NOT v_nodemap IS INITIAL
    * attributes
    v_count = v_nodemap->get_length( ).
    DO v_count TIMES.
    v_index = sy-index - 1.
    v_attr = v_nodemap->get_item( v_index ).
    v_name = v_attr->get_name( ).
    v_prefix = v_attr->get_namespace_prefix( ).
    v_value = v_attr->get_value( ).
    ENDDO.
    ENDIF.
    WHEN if_ixml_node=>co_node_text OR
    if_ixml_node=>co_node_cdata_section.
    * text node
    v_value = v_node->get_value( ).
    MOVE v_value TO v_char.
    IF v_char <> cl_abap_char_utilities=>cr_lf.
    wa-name = v_name.
    wa-value = v_value.
    APPEND wa TO itab.
    CLEAR wa.
    ENDIF.
    ENDCASE.
    * advance to next node
    v_node = v_iterator->get_next( ).
    ENDWHILE.
    LOOP AT itab INTO wa.
    ENDLOOP.
    Regards
    Abhii

  • Reading XML file using BAPI and then uploading that xml file data into SAP

    I am getting a xml file from Java server. I need to take
    data from this file using BAPI and need to upload into SAP using SAP.
    Please tell me how to read XML files using BAPI's.

    <b>SDIXML_DATA_TO_DOM</b> Convert SAP data (elementary/structured/table types) into DOM (XML
    <b>SDIXML_DOM_TO_XML</b>  Convert DOM (XML) into string of bytes that can be downloaded to PC or application server
    <b>SDIXML_DOM_TO_SCREEN</b> Display DOM (XML)
    <b>SDIXML_DOM_TO_DATA</b>
    data: it_table like t001 occurs 0.
    data: l_dom      TYPE REF TO IF_IXML_ELEMENT,
          m_document TYPE REF TO IF_IXML_DOCUMENT,
          g_ixml     TYPE REF TO IF_IXML,
          w_string   TYPE XSTRING,
          w_size     TYPE I,
          w_result   TYPE I,
          w_line     TYPE STRING,
          it_xml     TYPE DCXMLLINES,
          s_xml      like line of it_xml,
          w_rc       like sy-subrc.
    start-of-selection.
      select * from t001 into table it_table.
    end-of-selection.
    initialize iXML-Framework          ****
      write: / 'initialiazing iXML:'.
      class cl_ixml definition load.
      g_ixml = cl_ixml=>create( ).
      check not g_ixml is initial.
      write: 'ok'.
    create DOM from SAP data           ****
      write: / 'creating iXML doc:'.
      m_document = g_ixml->create_document( ).
      check not m_document is initial.
      write: 'ok'.
      write: / 'converting DATA TO DOM 1:'.
      CALL FUNCTION 'SDIXML_DATA_TO_DOM'
        EXPORTING
          NAME               = 'IT_TABLE'
          DATAOBJECT         = it_table[]
        IMPORTING
          DATA_AS_DOM        = l_dom
        CHANGING
          DOCUMENT           = m_document
        EXCEPTIONS
          ILLEGAL_NAME       = 1
          OTHERS             = 2.
      if sy-subrc = 0.  write  'ok'.
      else.             write: 'Err =', sy-subrc.
      endif.
      check not l_dom is initial.
      write: / 'appending DOM to iXML doc:'.
      w_rc = m_document->append_child( new_child = l_dom ).
      if w_rc is initial.  write  'ok'.
      else.                write: 'Err =', w_rc.
      endif.
    visualize iXML (DOM)               ****
      write: / 'displaying DOM:'.
      CALL FUNCTION 'SDIXML_DOM_TO_SCREEN'
        EXPORTING
          DOCUMENT          = m_document
        EXCEPTIONS
          NO_DOCUMENT       = 1
          OTHERS            = 2.
      if sy-subrc = 0.  write  'ok'.
      else.             write: 'Err =', sy-subrc.
      endif.
    convert DOM to XML doc (table)     ****
      write: / 'converting DOM TO XML:'.
      CALL FUNCTION 'SDIXML_DOM_TO_XML'
        EXPORTING
          DOCUMENT            = m_document
        PRETTY_PRINT        = ' '
        IMPORTING
          XML_AS_STRING       = w_string
          SIZE                = w_size
        TABLES
          XML_AS_TABLE        = it_xml
        EXCEPTIONS
          NO_DOCUMENT         = 1
          OTHERS              = 2.
      if sy-subrc = 0.   write  'ok'.
      else.              write: 'Err =', sy-subrc.
      endif.
      write: / 'XML as string of size:', w_size, / w_string.
      describe table it_xml lines w_result.
      write: / 'XML as table of', w_result, 'lines:'..
      loop at it_xml into s_xml.
        write s_xml.
      endloop.
      write: / 'end of processing'.
    end of code
    Hope this will be useful.
    regards
    vinod

  • Problem  while reading XML file from Aplication server(Al11)

    Hi Experts
    I am facing a problem while  reading XML file from Aplication server  using open data set.
    OPEN DATASET v_dsn IN BINARY MODE FOR INPUT.
    IF sy-subrc <> 0.
        EXIT.
      ENDIF.
      READ DATASET v_dsn INTO v_rec.
    WHILE sy-subrc <> 0.
      ENDWHILE.
      CLOSE DATASET v_dsn.
    The XML file contains the details from an IDOC number  ,  the expected output  is XML file giving  all the segments details in a single page and send the user in lotus note as an attachment, But in the  present  output  after opening the attachment  i am getting a single XML file  which contains most of the segments ,but in the bottom part it is giving  the below error .
    - <E1EDT13 SEGMENT="1">
      <QUALF>001</QUALF>
      <NTANF>20110803</NTANF>
      <NTANZ>080000</NTANZ>
      <NTEND>20110803<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.
    Invalid at the top level of the document. Error processing resource 'file:///C:/TEMP/notesD52F4D/SHPORD_0080005842.xml'.
    /SPAN></NTEND>
      <NTENZ>000000</NTENZ>
    for all the xml  its giving the error in bottom part ,  but once we open the source code and  if we saved  in system without changing anything the file giving the xml file without any error in that .
    could any one can help to solve this issue .

    Hi Oliver
    Thanx for your reply.
    see the latest output
    - <E1EDT13 SEGMENT="1">
      <QUALF>003</QUALF>
      <NTANF>20110803</NTANF>
      <NTANZ>080000</NTANZ>
      <NTEND>20110803</NTEND>
      <NTENZ>000000</NTENZ>
      <ISDD>00000000</ISDD>
      <ISDZ>000000</ISDZ>
      <IEDD>00000000</IEDD>
      <IEDZ>000000</IEDZ>
      </E1EDT13>
    - <E1EDT13 SEGMENT="1">
      <QUALF>001</QUALF>
      <NTANF>20110803</NTANF>
      <NTANZ>080000</NTANZ>
      <NTEND>20110803<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.
    Invalid at the top level of the document. Error processing resource 'file:///C:/TEMP/notesD52F4D/~1922011.xml'.
    /SPAN></NTEND>
      <NTENZ>000000</NTENZ>
    E1EDT13 with QUALF>003 and  <E1EDT13 SEGMENT="1">
    with   <QUALF>001 having almost same segment data . but  E1EDT13 with QUALF>003  is populating all segment data
    properly ,but E1EDT13 with QUALF>001  is giving in between.

  • Reading XML file from UNIX

    I am reading XML file from unix using :
    FORM read_file USING p_name.
      DO.
        READ DATASET p_name INTO WXML_LINE LENGTH LENG.
      ENDDO.
    Then I am using subroutine below where I get a short dump at
      case X_NODE->get_type( ).
    FORM get_data tables   Y_CAPXML   structure GV_CAPXML
                  using value(x_node) type ref to if_ixml_node.
      data: INDENT      type i.
      data: PTEXT       type ref to if_ixml_text.
      data: STRING      type string.
      data: TEMP_STRING(100).
      case X_NODE->get_type( ).
        when if_ixml_node=>co_node_element.
          STRING = X_NODE->get_name( ).
          GV_NODETEXT = STRING.
        when if_ixml_node=>co_node_text.
          PTEXT ?= X_NODE->query_interface( IXML_IID_TEXT ).
          if PTEXT->ws_only( ) is initial.
            STRING = X_NODE->get_value( ).
            case GV_NODETEXT.
              when 'NIIN'.
                move STRING to GV_CAPXML-NIIN.
              when 'FED_x0020_STOCK_x0020_CLASS'.
                move STRING to GV_CAPXML-fed_stock_class.
              when 'DODIC'.
                move STRING to GV_CAPXML-dodic.
             endcase.
    The text for the short dump is : STACK_STATE_NO_ROLL_MEMORY
    Can someone please explain what is it mean.
    Thanks.

    May be this blog can help:
    <a href="/people/r.eijpe/blog/2005/11/21/xml-dom-processing-in-abap-part-ii--convert-an-xml-file-into-an-abap-table-using-sap-dom-approach for Blog</a>
    Sri

  • How to read .xml file from embedded .swf(flash output) in captivate

    I have been trying to read .xml file from the .swf (Flash output) that is embedded within the captivate file but no luck yet . Please if anyone got any clue on how get this thing done using Action script 3.0 then let me know. I am using Adobe Captivate 5.5 at present and Flash CS 5.5.
    I am well aware about how to read .xml file through action script 3.0 in flash but when insert the same flash in captivate and publish nothing comes in captivate output. I would higly appreciate if anyone could help me out with that.
    Here is is graphical demonstration of my query :
    Message was edited by: captainmkv

    Hi Captainmkv,
    Does the information in this post cover what you're trying to do: http://forums.adobe.com/message/5081928#5081928
    Tristan,

  • Read xml file in another web server

    my question is how to read xml file that in another web server???
    my existing code look like that, where the xml file is situated in C drive.
    <%@ page contentType="text/html"%>
    <%@ page import="javax.xml.parsers.DocumentBuilderFactory,
              javax.xml.parsers.DocumentBuilder,
              org.w3c.dom.*"
    %>
    <%
    DocumentBuilderFactory dbf = DocumentBuilderFactory.newInstance();
    DocumentBuilder db = dbf.newDocumentBuilder();
    Document doc = db.parse("c:/xml/message.xml");
    NodeList nl = doc.getElementsByTagName("message");
    %>
    <html>
    <body>
    <%= nl.item(0).getFirstChild().getNodeValue() %>
    </body>
    </html>

    are you looking for this?
    Document doc = db.parse("http://myotherwebserver/myFile.xml");

Maybe you are looking for