your type is an IDREF and if I remember correctly, that type follows NCName rules for whitespace. You'll need to define a simple type for your string and then set the whitespace=preserved attribute -jacobd
On 11/1/07, Vinh Nguyen (vinguye2) <[EMAIL PROTECTED]> wrote: > Thanks Jacob, > Digging into this further, my schema looks like this: > > <xs:element name="Equipment"> > <xs:complexType> > <xs:sequence> > <xs:element ref="cham:ObjectGroup" minOccurs="0" > maxOccurs="1"/> > </xs:sequence> > <xs:attribute name="ref" type="xs:IDREF" use="required"/> > </xs:complexType> > </xs:element> > > So the issue is with the "ref" property. I'm setting the string there. > But it doesn't look like the xs:attribute type supports the "whitespace" > schema attribute. Looks like I might have to redefine it as a different > type like xs:string? > > > ________________________________ > > From: Jacob Danner [mailto:[EMAIL PROTECTED] > Sent: Thursday, November 01, 2007 3:57 PM > To: [email protected] > Subject: Re: how to preserve string spaces > > > Hi Vinh, > There is a schema attribute whitespace=preserve you can use when > defining the string type in your xsd. > -jacobd > > > On 11/1/07, Vinh Nguyen (vinguye2) <[EMAIL PROTECTED]> wrote: > > Hi, > I have an XmlBeans-generated object with a string property. I'm > trying this property with a string value that has multiple contiguous > spaces, and then retrieve that string with the spaces preserved. How > can I achieve this? Currently, the contigous spaces are being > compressed to a single space when I retrieve the value. > -Vinh > > > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

