[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: XML Off Topic



Did you try reading the manual? If not, start there. There is a lot of information about XML-INTO you should know before writing production code.

To answer your specific question... add option trim=none something like this:

xml-into data %XML('data.xml' : 'doc=file trim=none');

> -----Original Message-----
> From: ftpapi-bounces@xxxxxxxxxxxxxxxxxxxxxx [mailto:ftpapi-
> bounces@xxxxxxxxxxxxxxxxxxxxxx] On Behalf Of Nicolas Machado
> Sent: Friday, July 17, 2009 4:38 PM
> To: HTTPAPI and FTPAPI Projects
> Subject: XML Off Topic
> 
> Sorry for the off-topic, but I really need to solve this:
> 
> I have an XML generated from an RPGLe, this is one of the tags.
> 
> <TrnText>
> DESCRIPCION                             IMPORTE TOTAL</TrnText>
> 
> Then I parse it with xml-into opcode,
> but after the asignment the variable looks like this:
> 
> TGIS.TEXTOS.TEXT.TRNTEXT(1) =
>           ....5...10...15...20...25...30...35...40...45...50...55...60
>      1   'DESCRIPCION IMPORTE TOTAL                                   '
>     61   '                    '
> 
> 
> How to avoid that parser truncate and eliminate blanks ( white spaces )
> ??
> 
> I read in http://www.w3schools.com/xml/xml_syntax.asp that XML preserve
> White-Spaces, but is not truth !!
> 
> Any hepl will be appreciated, as allways !!
> 
> Best regards
> 
> 
> 
> --
> .::.
> Nicolas Machado
> Metodo Argentina S.A.
> _____________________
> Tel: 02262 527431
> Necochea, Buenos Aires.
> 
> -----------------------------------------------------------------------
> This is the FTPAPI mailing list.  To unsubscribe, please go to:
> http://www.scottklement.com/mailman/listinfo/ftpapi
> -----------------------------------------------------------------------
-----------------------------------------------------------------------
This is the FTPAPI mailing list.  To unsubscribe, please go to:
http://www.scottklement.com/mailman/listinfo/ftpapi
-----------------------------------------------------------------------