Questions tagged [xsi]

XSI is the conventional prefix for the XML Schema Instance Namespace. It is used in the process of validating an XML instance document against an XSD Schema.

68 questions
1
vote
1 answer

Best way to find and specify XML Schema (XSD) locations

I've often dealt with sort of problem - schema locations. Sometimes you have to write configuration XML file or any other XML file that includes a lot of links like this:
Alesto
  • 639
  • 4
  • 13
  • 29
1
vote
0 answers

Remove default xsd and xsi namespaces from MVC xml response

I need to remove the xsd and xsi namespaces from my MVC api response but I can't make it work. (The reason I need to remove them is because we're sending it to a third party map provider, and it doesn't work if you include them.) I've read a bunch…
Ingen Speciell
  • 107
  • 2
  • 13
1
vote
1 answer

XQuery: weird xsi attribute being inserted into my XQuery output

Here is an example of the XQuery output that I get: Healthy Kids Pediatrics
510 W 27th St, Los…
sivabudh
  • 31,807
  • 63
  • 162
  • 228
1
vote
1 answer

In an XML file, what is the function of the "header" line information

At the top of the XML files I'm studying, I see at the beginning: then after that it's the actual meat of the XML: …
Caffeinated
  • 11,982
  • 40
  • 122
  • 216
1
vote
0 answers

C# web service client returns only partial data but SOAP UI returns full data

I am writing a .NET c# web service client, which queries a web service and gets a result set as response. When I use this client to query the web service, it returns the result set but is returning only partial set. The same web service when…
1
vote
1 answer
1
vote
1 answer

jscript file reading - Input past end of file

I have a simple file like: 124 123 122 121 120 I try to read it in softimage using jscript. I have this: var ForReading = 1; var fso = new ActiveXObject("Scripting.FileSystemObject"); var fileObj = fso.GetFile("F:\\temp\\csv_reader_01.txt"); var ts…
clankill3r
  • 9,146
  • 20
  • 70
  • 126
1
vote
1 answer

how to set xmlns as first xml attribute

I was very confused about the how to set xmlns to be the first attribute, I used below code to generate a xml file XNamespace ns = "http://www.openarchives.org/OAI/2.0/"; XNamespace xsiNs = "http://www.w3.org/2001/XMLSchema-instance"; XDocument xDoc…
danmiao
  • 747
  • 2
  • 8
  • 17
0
votes
2 answers

Is it valid to set nillable=true and use the default property in an XML document?

Using C# and .Net 4.0 I have a generated schema that looks like this:
Steve
  • 1,557
  • 2
  • 17
  • 34
0
votes
1 answer

Web Service Response returns

I am very new to Web Services. I am creating Apache CXF (apache-cxf-2.5.0) SOAP based Web Services. It creates WSDL from Java class (Java first approach). Following is my Java class: package com.abcd.shoppingcart; import java.sql.Connection; import…
waprau
  • 177
  • 6
  • 16
0
votes
2 answers

castor marshaller suppress xsi

I read a post written by you about: Marshaller marshaller = new Marshaller(w); marshaller.setSuppressXSIType(true); The problem is that I'm using that method but the result didn't changed. My code is : Marshaller m = new Marshaller();…
0
votes
1 answer

PHP soap client add xsi:type to node

I made a soap client with the php Soap extension and want to call a server. The XML is very complex and some NS won't be added automatically, I add them with SoapVar() But I have a problem with some node, my element should like this
cherrycoding
  • 1,855
  • 2
  • 14
  • 19
0
votes
2 answers

Spyne/Python/Soap. Add xsi:type to AnyDict

Im using Spyne & I try to add xsi:type="xsd:string" to my AnyDict result in response . Now i have this one:
Vova
  • 3
  • 3
0
votes
1 answer

Does xst:type change the element processed or just the type value of the data provided?

Within XML there exits elements and attributes. There is a special attribute called xsi:type. Can I declare an xsi:tpye value within the same namespace as the element in which it occurs? Example using Dublin Core. Element Example …
Hugh
  • 15
  • 4
0
votes
0 answers

Adding xsd-file to an xml-file when exporting xml:s

I'm currently trying to map an xsd-file to an xml-file that im creating. Althought, when I'm adding the xsi-attribute it doesnt map straight to the existing Customer-object. It creats a new customer-object and maps to that one instead. I have the…