Oxygen XML Editor
 
[XML-DEV Mailing List Archive Home] [By Thread] [By Date]

RE: [xml-dev] xs:string - Isn't whitespaces preserved by default?


  • From: dave <ceek63@...>
  • To: Michael Kay <mike@...>, user@... xml-dev@...
  • Date: Thu, 28 Feb 2008 11:00:18 -0800 (PST)


'it' here is XMLBeans' api (xmlText() in particular). 

So, is the xs:string the proper data type to hold
regex pattern values? OR should I define additional
facets to preserve whitespace chars? 

-D
--- Michael Kay <mike@...> wrote:

> > 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.
> 
> Who is "it"? An XML Schema processor will preserve
> the whitespace. That
> doesn't mean that everyone else will.
> 
> Michael Kay
> http://www.saxonica.com/



      ____________________________________________________________________________________
Never miss a thing.  Make Yahoo your home page. 
http://www.yahoo.com/r/hs


[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index]
 
© 2002-2008 SyncRO Soft Ltd. All rights reserved. | Sitemap | Privacy Policy
This website was created & generated with <oXygen/> XML Editor
Keywords