开发者

need help in writing in xsd for xml?

need xsd for the following xml

<Author Title="Mr." BirthYear="1882">
Lalchand
</Author>

i wrote like this开发者_如何学Python

<xs:element name="Author">
<xs:complexType>
     <xs:attribute name="Title" type="xs:string"/>
     <xs:attribute name="BirthYear" type="xs:string"/>
</xs:complexType>
</xs:element>

need help in writing the value of Author that is Lalchand


If you use visual studio, you can open your XML file in visual studio and Select XML -> Create Schema option in the main menu while you're in edit-mode of your XML file.

additionally, you can use xsd.exe tool generate xsd from your XML.

The XML Schema Definition (Xsd.exe) tool generates XML schema or common language runtime classes from XDR, XML, and XSD files, or from classes in a runtime assembly.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜