|
Re: Trailing blank space / Whitespace is not preserved : XmlObject.new: msg#00147text.xml.xmlbeans.user
Unfortunately, the parser we use is not reporting this information. Also, and more importantly, this whitespace outside the document element is not considered part of the XML Infoset. XmlBeans, in general, supports only the data model specified by the XML Infoset: http://www.w3.org/TR/xml-infoset/ Note section 2.1 (1) where it specifies that the document must have one element and may have comments or PI's. Character data is not allowed. So, XmlBeans does not preserve the exact syntax of an incoming document, just the Xml Infoset. There are many other examples of this. One is that the white space between attributes is not preserved. - Eric > I have data with trailing blank spaces and because the user entered the > spaces I need to preserve it. > This data is set to an element or attribute value of my XmlObject. > > When I call XmlBean.newDomNode to get the top level > org.w3c.xml.java.xml.Document the trailing blanks are removed. > Is there any way or setting to avoid this ? > > I'm not using SAVE_PRETTY_PRINT option directly anywhere. Is this being > used > somewhere by default ? > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: user-unsubscribe@xxxxxxxxxxxxxxxxxxx > For additional commands, e-mail: user-help@xxxxxxxxxxxxxxxxxxx > |
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | Re: [XmlBeans V2] [BUG ?] Unexpected element: CDATA: 00147, Jeegar Shah |
|---|---|
| Next by Date: | Re: Trailing blank space / Whitespace is not preserved : XmlObject.newDomNode: 00147, Jeegar Shah |
| Previous by Thread: | Trailing blank space / Whitespace is not preserved : XmlObject.newDomNodei: 00147, Jeegar Shah |
| Next by Thread: | Re: Trailing blank space / Whitespace is not preserved : XmlObject.newDomNode: 00147, Jeegar Shah |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
| News | FAQ | advertise |