Questions tagged [xml-nil]

About XML nil attributes

From W3C

XML Schema:Structures introduces a mechanism for signaling that an element should be accepted as "valid" when it has no content despite a content type which does not require or even necessarily allow empty content. An element may be "valid" without content if it has the attribute xsi:nil with the value true. An element so labeled must be empty, but can carry attributes if permitted by the corresponding complex type.

70 questions
4
votes
1 answer

Creating an XML element with xsi:nil and attributes in .Net/Jaxb

I have an XML Schema that says:             ...        
3
votes
1 answer

Using Xquery to replace a node value that is xsi:nil = "true"

I am trying to use XQuery in SQL Server 2005 to update xml saved in a column. Here is a sample of the data I need to update. 3 5 6 I need to set the…
Nate Stelzner
  • 33
  • 1
  • 6
3
votes
2 answers

xsi:nil="true" in soap request

I have xsi:nil="true" in my soap request. What does mean? How can I pass value on that? Any help is appreciated
rayss
  • 637
  • 2
  • 9
  • 19
3
votes
2 answers

Jackson: XML-Binding - Handling Null vs. Empty String

The new Jackson-API provides us with convenient XML-Binding (just like JAXB for example), but i cant find any way to make Jackson serialize the typical "xsi:nil"-Attribute that is defacto standard to represent NULL-Values in XML? Please correct me…
rnd
  • 321
  • 3
  • 13
3
votes
1 answer

JAXB generate nillable = "true" from java

it this a bug? I need nillable = "true" in my xsd schema. The only way to generate such an element from my java code is to use @XmlElement(nillable = true), right? But in this case, I will not be able to take advantage of this definition, I will not…
user1414745
  • 1,317
  • 6
  • 25
  • 45
3
votes
2 answers

not able to remove tags that "xsi:nil" in them via xslt

I have following xml which contains several xml tags with xsi:nil="true". These are tags that are basically null. I am not able to use/find any sxlt transformer to remove these tags from the xml and obtain the rest of the xml.
An And
  • 155
  • 1
  • 3
  • 14
3
votes
0 answers

How to add another attribute to xsi:nil element?

I have problem generating xml(gml) by marshalling classes generated from xsd(I'm using maven2 xjc plugin). Problem occurs with elements which have gml:nilReason attribute which looks like this:
bemol
  • 105
  • 1
  • 1
  • 7
3
votes
1 answer

Convert nil="true" to null during unmarshal operation

I am receiving XML from a server whose schema specifies nearly every element as:
Jim Tough
  • 14,843
  • 23
  • 75
  • 96
2
votes
1 answer

XSD element with a value AND xsi:nil="true"

I have an XSD element Contains author name and author id Type…
garlicsauce
  • 53
  • 2
  • 10
2
votes
1 answer

Hiding XML elements with nil="true" with JAXB

In my Response.xsd i have many elements like: ... ... I have generated JAXBClasses from .xsd. Result: @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "",…
countryroadscat
  • 1,660
  • 4
  • 26
  • 49
2
votes
1 answer

XML: isnil invalid element

I have the following XSD snippet: SSN
salvationishere
  • 3,461
  • 29
  • 104
  • 143
2
votes
1 answer

add xml attribute "xsi:nil"

I am reading the following file in powershell. 2
2
votes
2 answers

How to handle nil in scala XML parsing?

I have a XML document representing my model that I need to parse and save in db. In some fields it may have NULL values indicated by xsi:nil. Like so For parsing I use scala.xml DSL. The problem is I can't find any way of…
Lubiluk
  • 704
  • 5
  • 12
1
vote
1 answer

how to enable xsi:nil in Zend framework for SOAP request

I need to make a SOAP request throw Zend_Soap_Client with making null-valued fields like Right now I have such fields being translated as How can I enable 'xsi:nil'-translating in Zend?
Maxim Efimov
  • 2,747
  • 1
  • 19
  • 25
1
vote
1 answer

Parsing nil XML elements with ActiveResource

I am using ActiveResource to parse the following XML: Todd The…
user41871