You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@xmlbeans.apache.org by Bartolomeo Nicolotti <bn...@siapcn.it> on 2010/01/05 17:09:28 UTC

tag with one white-space body

Hello,

We've used xmlbeans to generate classes to parse xml complying with OTA
xsd.

I've a string with a tag containing only one white-space (x20)

<QCat> </QCat>

after using xmlbean.parse() the tag is

<QCat></QCat>

Is there a way to preserve the content of the tag?

Many many thanks

Best regards.

Bartolomeo Nicolotti


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@xmlbeans.apache.org
For additional commands, e-mail: user-help@xmlbeans.apache.org


Re: tag with one white-space body

Posted by Bartolomeo Nicolotti <bn...@siapcn.it>.
Ops, sorry, solved by googling, I was using setSavePrettyPring to write
to log:


http://markmail.org/message/uwt5pnwauii5vrjm

Many thanks

Best regards

Il giorno mar, 05/01/2010 alle 17.09 +0100, Bartolomeo Nicolotti ha
scritto:
> Hello,
> 
> We've used xmlbeans to generate classes to parse xml complying with OTA
> xsd.
> 
> I've a string with a tag containing only one white-space (x20)
> 
> <QCat> </QCat>
> 
> after using xmlbean.parse() the tag is
> 
> <QCat></QCat>
> 
> Is there a way to preserve the content of the tag?
> 
> Many many thanks
> 
> Best regards.
> 
> Bartolomeo Nicolotti
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@xmlbeans.apache.org
> For additional commands, e-mail: user-help@xmlbeans.apache.org
> 
-- 
____________________________________________________________
Bartolomeo Nicolotti - Reparto Sviluppo - SIAP s.r.l.
Via Sant'Albano, 13 - 12049 Trinità (CN) Italy
Tel. (+39) 0172 652511 - Fax (+39) 0172 652519
E-mail: bnicolotti@siapcn.it - URL: www.siapcn.it
Codice Fiscale, Partita IVA, Iscr. Reg. Imprese di Cuneo: 01871320048
Capitale Sociale: € 99.000,00 i.v. - R.E.A. CN 141311
____________________________________________________________

Le informazioni contenute nella presente comunicazione e i relativi
allegati possono essere riservate e sono, comunque, destinate
esclusivamente alle persone o alla Società sopraindicati. La
comunicazione, diffusione, distribuzione e/o copiatura del documento
trasmesso nonché qualsiasi forma di trattamento dei dati ivi contenuti
da parte di qualsiasi soggetto diverso dal destinatario è proibita, sia
ai sensi dell'art. 616 c.p., che ai sensi del D. Lgs. n. 196/2003, ed in
ogni caso espressamente inibita. Se avete ricevuto questo messaggio per
errore, vi preghiamo di distruggerlo e di informarci immediatamente per
telefono allo 0172/652511 o inviando un messaggio all'indirizzo:
info@siapcn.it
____________________________________________________________

This electronic mail transmission, including any accompanying documents
or attachments, may contain information that is confidential,
privileged, proprietary, or otherwise legally exempt from disclosure and
it's intended solely for the addressee(s).  Access to this Internet
electronic mail message by anyone else is unauthorized.  If you are not
the intended recipient, any disclosure, copying, distribution or any
action taken or omitted to be taken in reliance on it is prohibited and
may be unlawful. If you have received this electronic mail erroneously,
we ask you to to destroy it and let us know immediately by phone
at 0172/652511 or by sending an e-mail at info@siapcn.it 
____________________________________________________________




---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@xmlbeans.apache.org
For additional commands, e-mail: user-help@xmlbeans.apache.org