You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@xmlbeans.apache.org by Sanjeev Saha <ss...@asce.org> on 2004/06/10 19:05:24 UTC
Retaining whitespaces in the output
The schema defines a default value for an element as " " (3 spaces). I
am navigating the XmlObject using XmlCursor and for the particular
element am able to successfully replace the default value in case no
value is passed in the xml.
However, on executing XmlObject.tostring() on the updated object, the
output seems to be of the form <element/> instead of the <element>
</element>.
Is there a way to make sure that the 'space' values are retained in the
output xml?
-Sanjeev
- ---------------------------------------------------------------------
To unsubscribe, e-mail: xmlbeans-user-unsubscribe@xml.apache.org
For additional commands, e-mail: xmlbeans-user-help@xml.apache.org
Apache XMLBeans Project -- URL: http://xml.apache.org/xmlbeans/
Re: Retaining whitespaces in the output
Posted by Sanjeev Saha <ss...@asce.org>.
Nevermind!!!
-Sanjeev
Sanjeev Saha wrote:
> The schema defines a default value for an element as " " (3 spaces).
> I am navigating the XmlObject using XmlCursor and for the particular
> element am able to successfully replace the default value in case no
> value is passed in the xml.
>
> However, on executing XmlObject.tostring() on the updated object, the
> output seems to be of the form <element/> instead of the <element>
> </element>.
>
> Is there a way to make sure that the 'space' values are retained in
> the output xml?
>
> -Sanjeev
>
> - ---------------------------------------------------------------------
> To unsubscribe, e-mail: xmlbeans-user-unsubscribe@xml.apache.org
> For additional commands, e-mail: xmlbeans-user-help@xml.apache.org
> Apache XMLBeans Project -- URL: http://xml.apache.org/xmlbeans/
>
- ---------------------------------------------------------------------
To unsubscribe, e-mail: xmlbeans-user-unsubscribe@xml.apache.org
For additional commands, e-mail: xmlbeans-user-help@xml.apache.org
Apache XMLBeans Project -- URL: http://xml.apache.org/xmlbeans/
Re: Retaining whitespaces in the output
Posted by Sanjeev Saha <ss...@asce.org>.
Nevermind!!!
-Sanjeev
Sanjeev Saha wrote:
> The schema defines a default value for an element as " " (3 spaces).
> I am navigating the XmlObject using XmlCursor and for the particular
> element am able to successfully replace the default value in case no
> value is passed in the xml.
>
> However, on executing XmlObject.tostring() on the updated object, the
> output seems to be of the form <element/> instead of the <element>
> </element>.
>
> Is there a way to make sure that the 'space' values are retained in
> the output xml?
>
> -Sanjeev
>
> - ---------------------------------------------------------------------
> To unsubscribe, e-mail: xmlbeans-user-unsubscribe@xml.apache.org
> For additional commands, e-mail: xmlbeans-user-help@xml.apache.org
> Apache XMLBeans Project -- URL: http://xml.apache.org/xmlbeans/
>
- ---------------------------------------------------------------------
To unsubscribe, e-mail: xmlbeans-user-unsubscribe@xml.apache.org
For additional commands, e-mail: xmlbeans-user-help@xml.apache.org
Apache XMLBeans Project -- URL: http://xml.apache.org/xmlbeans/