I do setSave** (prettyPrint/PrintIndent) on XmlOptions
object passed to xmlText(). The api doc clearly states
that it'll reformat WhiteSpace chars.
Shouldn't these apis honor the contract of underlying
type definitions (like preserve WS chars for xs:string
type,etc) irrespective of these Pretty
Isn't it a bug with XmlBeans in that xs:string type
have whitespace chars removed when written using
xmlText/other means?
As per w3c standard, xs:string should have whitespace
chars preserved by default. We don't need to define
'preserve' facets for this situation.
-D
--- Jacob Danner [EMAIL
I have an xs:string type element to hold some regex
expressions. I haven't put any restrictions/facets for
this xs:string type. Isn't by default, it should
preserve whitespace? Looks like the leading and
trailing spaces are removed when I generate an XML
using XmlBeans apis.
In general, what is
How are you generating the XML. I'm not positive its whitespace is
preserved if something like xmlText() is used.
I might try something like an xs:normalizedString and the whitespace=preserve.
-jacobd
On Wed, Feb 27, 2008 at 4:57 PM, dave [EMAIL PROTECTED] wrote:
I have an xs:string type
4 matches
Mail list logo