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

Re: XML Off Topic



   grrrr :(
   I miss that one !!!
   I'm allready using "allowextra" "allowmissing" options !!!
   Sorry, I think is because was friday and my brain was exhaust !!!
   Thank you Mike.
   You return my "soul to the body", as we said here.
   Best Regards

   2009/7/17 Mike Krebs <[1]mkrebs@xxxxxxxxxxxxxxxxxx>

     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: [2]ftpapi-bounces@xxxxxxxxxxxxxxxxxxxxxx [mailto:[3]ftpapi-
     > [4]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 [5]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:
     > [6]http://www.scottklement.com/mailman/listinfo/ftpapi
     >
     -------------------------------------------------------------------
     ----
     -------------------------------------------------------------------
     ----
     This is the FTPAPI mailing list.  To unsubscribe, please go to:
     [7]http://www.scottklement.com/mailman/listinfo/ftpapi
     -------------------------------------------------------------------
     ----

   --
   Nicolás Machado

References

   1. mailto:mkrebs@xxxxxxxxxxxxxxxxxx
   2. mailto:ftpapi-bounces@xxxxxxxxxxxxxxxxxxxxxx
   3. mailto:ftpapi-
   4. mailto:bounces@xxxxxxxxxxxxxxxxxxxxxx
   5. http://www.w3schools.com/xml/xml_syntax.asp
   6. http://www.scottklement.com/mailman/listinfo/ftpapi
   7. 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
-----------------------------------------------------------------------