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
22
votes
4 answers

What's the difference between and ?

do you know if there's a difference between these tags on XML/XSD? and e.g: 3M 4587
Dark Defender
  • 273
  • 2
  • 4
  • 9
7
votes
1 answer

Deserialize XML with multiple types

I'm trying to deserialize XML where some same name tags have different xsi types: Test
OHMR
  • 393
  • 6
  • 16
6
votes
2 answers

JAXB - empty tags with no xsi:nil

I have a String property in an object annotated as follows: @XmlElement(name = "Item", required = true, nillable = true) private String item; The result after marshaling is while I would like it to be since the…
gpol
  • 966
  • 2
  • 19
  • 30
5
votes
1 answer

How to Reference Local XSD File By Relative Path

This is a follow up on How to Configure Eclipse to Work with `ehcache` and there is an example of absolute path in How to reference a local XML Schema file correctly? Since the xsd file is not longer being hosted, I downloaded a copy of it from the…
James Oravec
  • 19,579
  • 27
  • 94
  • 160
5
votes
0 answers

POSIX Shared Memory: XSI or Realtime?

It appears that POSIX defines two different optional IPC APIs that provide shared memory: the XSI extension (shmget, shmctl, shmdt) and the Realtime option group (shm_open, shm_unlink). The documentation on opengroup for shmget says, in the…
sinjin
  • 189
  • 1
  • 6
5
votes
3 answers

Remove xsi:type, xmlns:xs, and xmlns:xsi from JAXB Generics

When using JAXB, I'd like to remove the excess namespaces/types from my XML elements when using Generics. How can I do this or what am I doing wrong? I'd like to use Generics so that I only have to write a block of code once. Example code: public…
esotericpig
  • 282
  • 1
  • 3
  • 14
3
votes
3 answers

XMLSerializer warns about unknown nodes/attributes when deserializing derived types

I recently registered event handlers for unknown nodes, elements and attributes with the XMLSerializer I use to deserialize complex types from a type hierarchy. I did this because some of the XML I receive is from third parties; I am interested in…
Peter - Reinstate Monica
  • 15,048
  • 4
  • 37
  • 62
3
votes
1 answer

The prefix "xsi" for attribute "xsi:schemaLocation" associated with an element type "beans" is not bound. When running spring on tomcat

Please help me to get out of this error I am not getting how can I resolve this? Here is my web.xml and Dispatcher-servlet.xml files:
Chetan Choudhary
  • 31
  • 1
  • 1
  • 4
3
votes
1 answer

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…
Gopi
  • 5,656
  • 22
  • 80
  • 146
2
votes
3 answers

XPath returns null when I remove the prefix

I am using XPath in Java under Eclipse. I am writing a soap web service, the XML is using prefix and a namespace and I wanted to remove the prefix and only keep the namespace because I prefer a more readable looking XML document. When I removed the…
Spring
  • 11,333
  • 29
  • 116
  • 185
2
votes
1 answer

Add missing xmlns attributes to SOAP-ENV:Envelope tag using SoapClient in PHP

How can I edit the xmlns attributes of the tag? I have a situation where xmlns:xsi and xmlns:xsd are missing. I'd like to know how to add them back in? Example:
Maxwell975
  • 21
  • 2
2
votes
1 answer

how to get null while parsing xml with geotools parser

I tried to get null value from my xml file such below but my parser throws such an exception : java.lang.RuntimeException:…
esatilmis
  • 98
  • 10
2
votes
2 answers

EclipseLink MOXy: Suppress xsi:type when marshalling

I have a bindings file with the following content: ... When I marshall the JavaType class using this binding, the XML looks like…
hansi
  • 2,278
  • 6
  • 34
  • 42
2
votes
1 answer

Manipulating result from XmlSeeAlso annotation

I am having a class in which I am getting list of objects. I am using XmlSeeAlso annotation to include the classes which are present in the list. Here is my class: @XmlRootElement @XmlSeeAlso({BookStore.class,Book.class,Hello.class}) public class…
Prats
  • 1,515
  • 6
  • 16
  • 30
2
votes
4 answers

Can I test if a file descriptor is of the right type for read()?

There are plenty of fds that can't be read from (for example, a listening socket). How do I test whether a read(2) on the fd will return EINVAL, without risking taking data out? Things that don't work: We could do a read() with a zero-byte buffer…
Nicholas Wilson
  • 9,435
  • 1
  • 41
  • 80
1
2 3 4 5