SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Is it possible to add URLEncode to a field in schema.xml, and update the SharePoint site without deleting everything based on the schema? Eg.

<Field DisplayName="Internal/External" />


<Field DisplayName="Internal/External" URLENcode="true" />

I'd like to change it due to WSS not validating soap/xml on output, and having the ' / ' symbol in an attribute name will cause the XML parsing to fail in my client application.

share|improve this question
up vote 1 down vote accepted

Regardless of your encoding problem, updating the xml that was used to create fields will not push down the changes to existing fields based on that xml.

If you want to update the DisplayName for existing fields, you would have to write some code (in a FeatureReceiver) to do this for you.

share|improve this answer

I may be mistaken, but I'm not sure that setting the URLEncode attribute like this will give you the result you are looking for.

As far as I know, the URLEncode attribute will affect the formatting of the value that is stored in an instance of the actual field, it won't affect the xml definition of the field (as in your case, the DisplayName attribute)

share|improve this answer
Good point. I will have to actually try this and see if it's possible to solve it. I wish WSS would validate and fix the xml it sent out :) – Mikael Svenson Apr 25 '10 at 8:41

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.