SteveMurphy Posted May 15, 2009 Share Posted May 15, 2009 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 More sharing options...
Ingolme Posted May 15, 2009 Share Posted May 15, 2009 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 More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.