Take the 2-minute tour ×
SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. It's 100% free, no registration required.

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" />

to

<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
add comment

2 Answers

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
add comment

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 - SharePoint MVP Apr 25 '10 at 8:41
add comment

Your Answer

 
discard

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.