Jump to content

How Specify Empty String


SteveMurphy

Recommended Posts

I'm creating an XML document that has a string element defined in the XSD as follows:<xs:element name="myStringElement" type="xs:string" minOccurs="0"/>In the XML document I want to specify an empty string. (By "empty string" I mean the XML equivalent of "" in a programming language such as Java.)Do I do this:<myStringElement></myStringElement>Thanks.

Link to comment
Share on other sites

In XML, this is an element with an empty string in it:

<customtag></customtag>

This is an element with nothing in it:

<customtag/>

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...