trimming spaces and partial marschalling
"Noel Sebastien (BIL)" <[email protected]> Fri, 21 Mar 2003 10:40:15 +0100
| Newsgroups | gmane.comp.java.enhydra.zeus |
|---|---|
| Message-ID | <36F352EB17B31344A167BAF849DD8CE0013DCDB1@LLUXVEXC051.bil.int.dexwired.net> |
Hi, Two questions : 1/ Why does the Zeus framework trim leading spaces of PCDATA ? Example : <root><brol> hello world !! </brol></root> In brol Object, getText() gives only "hello world !!". Leading spaces unfortunately disapear !! What if I receive important spaces at the beginning of data ??? 2/ Is it possible to partially marschall an XML document ? Example : <root><brol><subbrol><nested1/></subbrol></brol></root> Assuming that I can't change the XML document (it means that i can't add CDATA section). How can I get the content of brol tag as XML fragment ? I don't want it to be Java bound object.. Namely something like : brol.getChildAsXML() => "<subbrol><nested1/></subbrol>". Please help, greetings --------------------- An electronic message is not binding on its sender. Any message referring to a binding engagement must be confirmed in writing and duly signed. ---------------------