xsi

XQuery: weird xsi tag being inserted into my XQuery output

Here is an example of the XQuery output that I get: <clinic> <Name xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"&gt;Healthy Kids Pediatrics</Name> <Address xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"&gt;510 W 27th St, Los Angeles, CA 90007</Address> <PhoneNumberList>213-555-5845</PhoneNumberList> <Numbe...

Interchange xsd and xsi in the output of XmlSerializer

XmlSerializer serializer = new XmlSerializer(typeof(IxComment)); System.IO.StringWriter aStream = new System.IO.StringWriter(); serializer.Serialize(aStream,Comments); commentsString = aStream.ToString(); Here the commentsString has the the following element in it <IxComment xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:...

What's the difference between <a_element /> and <a_element xsi:nil="true" /> ?

Hi, do you know if there's a difference between these tags on XML/XSD? <a_element /> and <a_element xsi:nil="true"/> e.g: <SpreadCurve> <Index>3M</Index> <IndexNumber>4587</IndexNumber> <BusinessArea xsi:nil="true" /> </SpreadCurve> and <SpreadCurve> <Index>3M</Index> <IndexNumber>4587</IndexNumber> ...

How to generate xsi:nil element with attributes?

I have a WCF client that needs to generate a request containing this XML fragment : <reason xsi:nil="true" nullFlavor="NA" typeCode="RSON" /> The schema is determined by the server and isn't under my control. The generated proxy code has a class for the reason element containing (among other things) properties nullFlavor and typeCode....