xml
How to: Empty the contents of a Textbox on click inside

You can easily empty the contents of a textbox when you place the cursor or click the pointer inside it. In your html, add the following inside the textbox control: onfocus="this.value = ( this.value == this.defaultValue ) ? ” : this.value;return true;" That will make sure that whatever text resides inside the textbox, will be [...]

Read More
Posted on 26th April 2012No Comments
How to: Update XSD queries

Working with an .XSD (XML schema file) in Visual Studio may be easy at first but, it might give you a hard time in the long run. The reason for the latter being that it might refuse to update when you change the schema of your database or when you need to change one of [...]

Read More
Posted on 27th February 2012No Comments
How to: Create a SP2007 Site Collection Template in VS2008 in XML only

So, the other day, I got a curious request. I was to provide a new site collection template, a custom template, that would be using no code whatsoever. The client did not want to deploy custom code to their production server. I had never created a site collection template before. Let alone one that would [...]

Read More
Posted on 21st September 2011No Comments
How to: Use InnerXml and OuterXml

If you worked though the first attempt to interact with SharePoint data through web services (here) you must have noticed the batchXML.innerXml line: batchXML.InnerXml = “<Method ID = ’1′ Cmd=’New’><Field Name=’Title’>” + strName + “</Field> + “</Method>”; So, what is the InnerXml and how is it different of the OuterXml? For an XmlDocument, both InnerXml [...]

Read More
Posted on 29th June 2011No Comments
How to: Get a SharePoint 2010 Lists XML file

There will be times that you need to fetch the XML file that describes one of your lists in SharePoint 2010. One example that pops to mind is when working with the Lists.asmx web service. You will need to have a visual of the XML file in case you need to operate on the data [...]

Read More
Posted on 17th February 20115 Comments