× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



You can get better Net.Data info here.
  http://63.209.20.13/cgi-bin/db2www/forum.d2w/main

---
Doug Hart



midrange-l-bounces@xxxxxxxxxxxx wrote:
> Raul,
> 
> I haven't heard when the XML block will be supported in OS/400.  I
> write my 
> own HTTP headers to send XML documents.
> 
> In a %DEFINE block outside of your %HTML block, set
> DTW_PRINT_HEADER = "no"
> DTW_REMOVE_WS = "yes"  (I actually put this in my INI file, it seems
> to 
> work better)
> 
> Then, in your %HTML block, put this before you write any data out:
> 
> Content-Type: text/xml
> @dtw_rhextochar("0D25")
> 
> And your webserver should send all the ensuing data with HTTP headers
> telling the receiver that the data is XML and not HTML.
> 
> Mike E.
> 
> 
> 
> 
>> ---------+--------------------------------------------------------->
>>         |           Raul A Jager <raul@xxxxxxxxxx>                |
>>         |           Sent by:                                      |
>>         |           midrange-l-bounces+meovino=estes-express.com@m|
>>         |           idrange.com                                   |
>>         |                                                         |
>>         |                                                         |
>>         |           10/29/2003 12:25 PM                           |
>>         |           Please respond to Midrange Systems Technical  |
>>         |           Discussion                                    |
>>         |                                                         |
>> ---------+--------------------------------------------------------->
>  
>  
>  
>  
>  
>  
> >-----------------------------------------------------------------------------------------|
> |                                                                    
> | |       To:       Midrange Systems Technical Discussion
> <midrange-l@xxxxxxxxxxxx>         | |       cc:                      
> | |       Subject:  XML in Net.Data                                  
> |
> >-----------------------------------------------------------------------------------------|
> 
> 
> 
> 
> I tryed to produce a XML page using Net.Data, but I got this response:
> 
> Error NET.DATA: Se ha encontrado un símbolo (%XML) incorrecto en la
> línea 8 del archivo /QSYS.LIB/INTERNET.LIB/QPUBSRC.FILE/clasiweb.mbr.
> 
> I did RTFM and I found :
> 
>  Note: XML block is not supported by OS/400.
> 
> 
> Is there support planned in the next release?  Do I need to use RPG?
>  Other options?  I feel lost.
> 
> TIA.
> Raul
> 



As an Amazon Associate we earn from qualifying purchases.

This thread ...

Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.