From: Nimmi Srivastav on 18 Mar 2010 05:24 Greetings, I have two newbie questions. 1) Using XML Schema, how can I describe an XML document in which the root element is either A or B? Also, using DTD, how can the same be achieved? 2) In an XML driven messaging system, is it a good design practice to use XML documents with different root elements to indicate the message version information? For example, the root element can be Ver1 or Ver2. If the recipient receives XML content with root element Ver1, it processes it as a version 1 message and if the recipient receives XML content with root element Ver2, it processes it as a version 2 message. The structure of Ver1 message can be substantially different from the structure of the Ver2 message. Thanks, Nimmi
|
Pages: 1 Prev: Unspecified? Next: Benchmark Statistics on WebServers (.NET and/or Java) |