what is the xml schema for the following input:
<?xml version="1.0" encoding="utf-16"?>
<string><!--This file generated by the XMLPull tool on 06/29/2012 03:24:18 AM-->
<!--Datasource: Ticket-->
<DATASET><DATAROW><TicketDesc>Test Data. Do not Close.</TicketDesc></DATAROW></DATASET></string>
to this:
<?xml version="1.0" encoding="UTF-16"?><!--This file generated by the XMLPull tool on 6/29/2012--><!--Datasource: Ticket--><DATASET><DATAROW TicketDesc="Test Data. Do not Close."/></DATASET>
For any given input document, there’s an infinite number of schemas to which it conforms. Your first input document contains a single
<string>element that contains some (rather complex) text. At two opposite ends of the spectrum, one possible schema is a schema that allows a<string>element with any content whatsoever, and another is a schema that allows a<string>element that is required to contain exactly the text you have shown. You’ve given no clues as to where on this spectrum you want your schema to be – that is, how constraining you want it to be.Remember that a schema describes a class of documents. We can’t induce that class from a single instance of the class.