MapX creates a vertex layer using XML

Source: Internet
Author: User

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!

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.