In mapx4. *, XML is not supported. After 5, DS is created to support XML, which sounds very beautiful. However, no such statement is found on the Internet, is MapX useless?
With the help of MapX, we had to experiment with the XML format. In this example
Sample
<XML xmlns: S = "urn: Schema-Microsoft-com: XML-Data" xmlns: DS = "urn: Schemas-Microsoft-com: rowset" xmlns: dt = "urn: Schemas-Microsoft-com: datatypes" xmlns: x = "# datsetschema">
<! -- Schema -->
<S: schema>
<S: elementtype name = 'row' content = 'eltonly '>
<S: attributetype name = 'stateabbr 'DT: TYPE = 'string'/>
<S: attributetype name = 'statename' DT: TYPE = 'string'/>
<S: attributetype name = 'statepop' DT: TYPE = '14'/>
<Extends type = 'rowbase'/>
</S: elementtype>
</S: schema>
<! -- Data -->
<DS: DATA>
<X: Row stateabbr = 'ak' statename = 'alaska 'statepop = '20160301'/>
<X: Row stateabbr = 'ny 'statename = 'New York' statepop = '20140901'/>
</DS: DATA>
</XML>
Sample B
<XML xmlns = "# xmldataset">
<! -- Schema -->
<Schema>
<Elementtype name = 'row' content = 'eltonly '>
<Attributetype name = 'stateabbr 'type = 'string'/>
<Attributetype name = 'statename' type = 'string'/>
<Attributetype name = 'statepop' type = '14'/>
<Extends type = 'rowbase'/>
</Elementtype>
</Schema>
<DATA>
<Row stateabbr = 'ak' statename = 'alaska 'statepop = '20140901'/>
<Row stateabbr = 'ny 'statename = 'New York' statepop = '20140901'/>
</Data>
</XML>
As a result, an error is reported. In addition, my idea is to put XY data in XML, so if we modify the data, this error is returned:
After reading the attributes of bindlayer, no keyword is related, so you have to find it in XML. However, this is completely confusing and useful information cannot be found. The introduction of schma in msdn is similar to that of yundun, such:
RS: Number = 2 RS: nullable = true RS: maydefer = true RS: writeunknown = true
Obviously, this is the attribute description of the control column, but the word is not found. Finally, we found the following on the Internet:
Http://zhidao.baidu.com/question/10915787.html? SI = 1
<S: attributetype name = 'id' RS: Number = '1' RS: maydefer = 'true' RS: writeunknown = 'true' RS: basetable = 'readhistory'
RS: basecolumn = 'id' RS: keycolumn = 'true' RS: autoincrement = 'true'>
It is what I want. Modify XML. It is successful!