More Related Resource Links

My xml schema fails in getting attributes from 'empty' element... using sql:is-constant="1" disables reading attributes and by not using constant for element, error comes back with define relation... element is only a header for the attributes...

Hi!
I have simple class that I serialize to xml file:
<?xml version="1.0" encoding="utf-8"?>
<MyRootElement xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" Area="East">
<Products>
<SalesProduct Taxable="true">
<Name>Sofa</Name>
</SalesProduct>
<Product>
<Name>Television</Name>
</Product>
</Products>
</MyRootElement>
I don`t want have in xml file attributes xmlns:xsi and xmlns:xsd. How can I define class to not have these two attributes in xml file?
I tried use XmlRoot attribute but there is no control for these two attributes. They are always generated.
Regards

I want to make up some new attributes for elements like <div> and <a>. Those new attributes will be used to store data to be used by click handler jquery code. Is that ok to do? Is it supported by older browsers? Testing on IE8 and Chrome, I am able to use jquery to store and recall in these made up attributes of a <DIV>element. ( I tried to use expression web super preview to test the code. But apparantly, super preview does not run javascript. )thanks,
<div id="div1" MadeUpAttr="abc"></div>
<script type="text/javascript"> $(document).ready(function () { var s1 = $('#div1').attr('MadeUpAttr'); alert('MadeUpAttr: ' + s1);
$('#div1').attr('MadeUpAttr', 'efg'); var s2 = $('#div1').attr('MadeUpAttr'); alert('MadeUpAttr: ' + s2); }); </script>

Hi all,i have created a .net webservice which returns DataSet in a webmethod but the problem is that when i validate service.wsdl file it gives me following error:Warning 35 The 'http://www.w3.org/2001/XMLSchema:schema' element is not declared. E:\Santosh\projects\asp.net\MFONLINE\MFONLINE NEW\App_WebReferences\HDFCMF\Service.wsdl 771 20 E:\...\MFONLINE NEW\
The 'http://www.w3.org/2001/XMLSchema:schema' element is not declared.Do any one have any idea ?-Thanks

(Sorry I may have posted this in a wrong forum earlier)
Hi,
I've got this problem, trying to add a simple user authentication feature to my web service. I added the code directly copy-paste from MSDN as well as trying load of other ideas why this might happen...
I've been getting these "information messages" that practically disables my client application from connecting to the web service.
(I'm developing this on my PC, visual web developer 2005)
Adding the microsoft.web.services2 section results in:
Could not find schema information for the element 'microsoft.web.services2'
Could not find schema information for the element 'security'
Could not find schema information for the element 'securityTokenManager'
Could not find schema information for the element 'type'
Could not find schema information for the element 'qname'
HELP PLEASE!!!
web.config (relevant parts only, I cut out system.web and other sections):
<?xml version="1.0"?>
<configuration>
<configSections>
<section name = "microsoft.web.services2" type="Microsoft.Web.Services2.Configuration.WebServicesConfiguration, Microsoft.Web.Services2, Version=2.0.3.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
</configSections>
<microsoft.web.services2>
<security>
<securityTokenManager type="ServiceNameSpace.User,ServiceNameSpace" xmlns:wsse="ServiceNameSpace"

I'm using XmlSerializer to serialise a c# object into XML.public class Letter{ [XmlElement] public String AccountNumber { get; set; }}which gives:<Letter><AccountNumber>12345678</AccountNumber></Letter>What I'd like to be able to do is to add a flag as an attribute to say if the particular data element is encrypted, so the XML comes out as:<Letter>
<AccountNumber encrypted="true">=S2Hgd3$eDF</AccountNumber>
</Letter>Is it possible to add this encrypted flag easily using the XmlSerializer? Thanks for any advice!

Is there any way to capture all attributes/values (from the SOAP message) into a colleciton of my type? I tried to look at the DataContractSerializer to understand how I could initiate a new instance of my DataContract and then populate all attributes into
a collection, but I can seem to find there to look.

I have a DataContract Account with properties Name (string) and Number (string), which I would like to capture into a non-datamember (collection) upon receipt from the client side. Should I look to the IXMLSerializer and move to XmlSerializerFormat
- or is it possible anyhow ? I tried implement the

We are consuming a webservice with the following xml fragment
< xs:element minOccurs="0" fixed="Text..." name="QBelVersicherung" type="xs:string" >
It is my understanding, that one can leave out the element "QBelVersicherung" because its minOccurs is set to "0".

After generating the webproxy thru VS 2005 we end up with a constructor that always initializes this field.
public ATBListeEntsorger()
{ this.qBelVersicherungField = "Text....";
}

Since the element is sometimes left out in the xml message received from the server it is not possible to tell when it was send and when not, because the constructor always fills it. One way could be to edit the generated proxy class each time we update the
web reference, but this does not seem like a good solution. Is there a way to alter the behavior of the proxy generator tool?

In this example i am going to show how to create scrollable GridView with fixed headers which don''t get scrolled with records and stay on the top in asp.net using css, I''ve tested this code on IE7 and Firefox 2.0 , 3.5.

For this we need to add css to headers of gridview to keep them on the top.

First of all place a Panel on the aspx page from thetoolbox. Set height to 200px and width to 200pxand scrollbars to Vertical.Now add a gridview inside this Panel and set the datasource to populate gridview.

Both projects were created in 3.5 framework and in Visual Studio 2008 Beta 2.

I added web service reference to Class library project. When it asked for namespace I typed "CurrencyProxy". Projects build ok, but when I run web app, Class library throws an error: Could not find default endpoint element that references contract 'CurrencyProxy.CurrencyServiceSoap' in the ServiceModel client configuration section. This might be because no configuration file was found for your application, or because no endpoint element matching this contract
could be found in the client element.

I believe it has something to do with app.config in Class library project. Here is part from app.config: