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