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
2
votes
2 answers

About metaclass in Python

I try to make a class in python (with XSI / Softimage) to override default methods. class transform(object): def __init__ (self) : self.object = self._build() self.type = '' def _build (self): object = None …
MObject
  • 397
  • 3
  • 14
1
vote
1 answer

using php, how do I access XML element's attributes declared by XML Schema declaration?

I have a an xml file located at the URL specified, which includes a probability-of-precipitation node, which has several "value" elements whose schema-instance declaration(s) allows them to be nillable. However, the attributes() function in php…
user377241
  • 81
  • 1
  • 1
  • 4
1
vote
1 answer

Can two xsi:type attributes exist in the same element?

Within XML there exits elements and attributes. There is a special attribute called xsi:type. Can an element have two xsi:type declarations? Example using Dublin Core. Element Example 1091 Attribute Example
Hugh
  • 15
  • 4
1
vote
2 answers

Test for xsi:nil="true"

I wish to test for xsi:nil="true". I'm using the replies from kjhughes & Michael Kay in these posts, respectively. How to implement if-else statement in XSLT? How do I check if XML value is nil in XSLT XML:
DaveF
  • 113
  • 10
1
vote
0 answers

xml serialization - adding name space to element that is not root

I am working in C#, I'm trying to do xml serialization I get xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" and xmlns:xsd="http://www.w3.org/2001/XMLSchema" on the root element, I need that also on another element. The reason that I need it,…
mic
  • 11
  • 1
1
vote
1 answer

How do I read an XML file with an unbound XML namespace, using JAXB?

I am trying to read a XML file using JAXB that I don't have control over. I do not have access to the code that creates this file. I created this simplified, reproducible example. Note the xsi:type field that I need to use to determine the correct…
mitchkman
  • 6,201
  • 8
  • 39
  • 67
1
vote
3 answers

Google Sheets IMPORTXML - Dealing with null values

I am trying to pull data from https://forecast.weather.gov/MapClick.php?lat=33.4456&lon=-112.0674&FcstType=digitalDWML I need the coverage attribute under weather-conditions, but also need to know if the weather-condition is null. Each…
1
vote
1 answer

How to parse xml to an object with a xsi:type in c#

At this moment I'm struggling to deserialize an XML response from BRO ( part of the Dutch government). They have a public API that can be used to get groundwater levels and details. This is the response( url ). If I change this part…
ido435
  • 27
  • 2
  • 5
1
vote
2 answers

Parse xsi:type="" in Python using ElementTree

I know there are a few similar questions but none of the solutions seemed to work. I need to parse and XML file using python. I am using Elementree I am trying to print the value X. It is working as long as I am just looking for X-Values within…
ApflaBua
  • 15
  • 5
1
vote
2 answers

replacing namespace - problem with attribute's values that have namespace

i'm moving from one namespace to another in a XML and i have been facing problems with xsi:type attributes for typed elements. I have been using next template that easily moves element that have one namespace to other one.
user828814
  • 11
  • 2
1
vote
2 answers

How Can I add an XSI type to an element that is being serialized using LINQ

I want to serialize an Object of a Type of a particular class and containing a particular XSI Type Can I Do this in LINQ ?
user11887427
1
vote
1 answer

Xerces SAX parser ignore the xmlxs:xsi attribute as an attribute of an element

Using Xerces SAX parser I try to retrieve all elements and their attributes of this XML file: -------------- Begin XML file to parse ---------------->
cazdevel
  • 115
  • 1
  • 6
1
vote
1 answer

MarkLogic TDE on XML documents with XSD and XSI

Hello i am using MarkLogic 9.0 and have a beginner level of experience with ML and XML. I have followed the MarkLogic SQL Guide successfully and want to use it in the real world and extract from transactional xml files the the type element. But in…
Erik hoeven
  • 1,442
  • 6
  • 26
  • 41
1
vote
2 answers

How to generate xsi:nil element with attributes?

I have a WCF client that needs to generate a request containing this XML fragment : The schema is determined by the server and isn't under my control. The generated proxy code has a class…
Paul Lalonde
  • 5,020
  • 2
  • 32
  • 35
1
vote
1 answer

What's wrong with my Spring XML Beans config file?

security.xml I am getting the following errors :
RaoCh
  • 71
  • 1
  • 2
  • 9