<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Reading XML from App Server in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/reading-xml-from-app-server/m-p/1934173#M386519</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;We are on 46C. Been using the XML parsing to parse XML file from App server to SAP (internal table). Works great, but having problem with one file. I have looked at the file and it looks ok.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The program freezes up at one point...see below:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
* wrap the table containing the file into a stream
  G_ISTREAM = G_STREAMFACTORY-&amp;gt;CREATE_ISTREAM_ITABLE( TABLE =
              T_XML_TABLE
              SIZE  = G_LEN            ).

* Creating a document
  G_DOCUMENT = G_IXML-&amp;gt;CREATE_DOCUMENT( ).

* Create a Parser
  G_PARSER = G_IXML-&amp;gt;CREATE_PARSER( STREAM_FACTORY = G_STREAMFACTORY
                                    istream        = G_ISTREAM
                                    DOCUMENT       = G_DOCUMENT ).

* Parse the stream
  DATA: RTN TYPE I                  .
  RTN = G_PARSER-&amp;gt;PARSE( )          .---&amp;gt; IT freezes here
  IF RTN NE 0.
     IF G_PARSER-&amp;gt;NUM_ERRORS( ) NE 0.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any idea? Has anyone encountered this before, if so, how did you fix this problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Rajesh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 01 Mar 2007 16:54:09 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-03-01T16:54:09Z</dc:date>
    <item>
      <title>Reading XML from App Server</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/reading-xml-from-app-server/m-p/1934173#M386519</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;We are on 46C. Been using the XML parsing to parse XML file from App server to SAP (internal table). Works great, but having problem with one file. I have looked at the file and it looks ok.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The program freezes up at one point...see below:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
* wrap the table containing the file into a stream
  G_ISTREAM = G_STREAMFACTORY-&amp;gt;CREATE_ISTREAM_ITABLE( TABLE =
              T_XML_TABLE
              SIZE  = G_LEN            ).

* Creating a document
  G_DOCUMENT = G_IXML-&amp;gt;CREATE_DOCUMENT( ).

* Create a Parser
  G_PARSER = G_IXML-&amp;gt;CREATE_PARSER( STREAM_FACTORY = G_STREAMFACTORY
                                    istream        = G_ISTREAM
                                    DOCUMENT       = G_DOCUMENT ).

* Parse the stream
  DATA: RTN TYPE I                  .
  RTN = G_PARSER-&amp;gt;PARSE( )          .---&amp;gt; IT freezes here
  IF RTN NE 0.
     IF G_PARSER-&amp;gt;NUM_ERRORS( ) NE 0.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any idea? Has anyone encountered this before, if so, how did you fix this problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Rajesh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Mar 2007 16:54:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/reading-xml-from-app-server/m-p/1934173#M386519</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-03-01T16:54:09Z</dc:date>
    </item>
    <item>
      <title>Re: Reading XML from App Server</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/reading-xml-from-app-server/m-p/1934174#M386520</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Would you know what is the size of the file?  Could it be that instead of freezing it is parsing the file but it is taking a lot of time ?&lt;/P&gt;&lt;P&gt;Can you see the job running in the job list?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Thierry&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Mar 2007 17:14:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/reading-xml-from-app-server/m-p/1934174#M386520</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-03-01T17:14:11Z</dc:date>
    </item>
    <item>
      <title>Re: Reading XML from App Server</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/reading-xml-from-app-server/m-p/1934175#M386521</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It's a 9KB file. Very small...Like I said, other files have no problem. I did notice one thing though. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
&amp;lt;Address AddressType="Mailing"&amp;gt;
     &amp;lt;AddressLine&amp;gt;na&amp;lt;/AddressLine&amp;gt; 
     &amp;lt;AddressLine&amp;gt;na&amp;lt;/AddressLine&amp;gt;    ---------&amp;gt; Fails here         
     &amp;lt;City&amp;gt;Houston&amp;lt;/City&amp;gt; 
     &amp;lt;StateProvince&amp;gt;Texas&amp;lt;/StateProvince&amp;gt; 
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When I removed the duplicate &amp;lt;AddressLine&amp;gt; tag, it worked fine and didn't freeze up. Can anyone validate ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks. Raj&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Mar 2007 17:31:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/reading-xml-from-app-server/m-p/1934175#M386521</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-03-01T17:31:47Z</dc:date>
    </item>
  </channel>
</rss>

