DAIBOLA

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
en:sedamo:xml_address_output [2018/08/31 22:59] adminen:sedamo:xml_address_output [2024/03/12 20:09] (current) – ↷ Links adapted because of a move operation 217.113.194.96
Line 1: Line 1:
 +=== sedamo XML address output ===
  
 +The sedamo [[en:sedamo:api:registration|API]] returns a XML containing the address in Romanisation (that is, re-written in Latin characters A~Z //only//, even avoiding decorations such as "é"), and in the native script. Here shown for the //sedamo// code  //CT-QP-ED-TP//  (which is the code for the Hall of Prayer for Good Harvests inside the [[wp>Temple of Heaven]] in Beijing, China).
 +
 +<code xml>
 +<?xml version="1.0" encoding="utf-8" ?>
 +<address>
 + <sedamo>CTQPEDTP</sedamo>
 + <addtype>other</addtype>
 + <format>8</format>
 + <comment></comment>
 + <countryENGLISH>China (PRC)</countryENGLISH>
 + <countryFRENCH>République Populaire de Chine</countryFRENCH>
 + <countryFRENCHcap>RÉPUBLIQUE POPULAIRE DE CHINE</countryFRENCHcap>
 + <latin>
 + <addline1>Qi Nian Dian</addline1>
 + <addline2>Tian Tan Nei</addline2>
 + <street>Chong Wen Qu</street>
 + <houseno>27</houseno>
 + <district>Chong Wen Qu</district>
 + <postcode>100061</postcode>
 + <city>Beijing (Peking)</city>
 + <province>Beijing Municipality</province>
 + <formatted>
 + Beijing Municipality
 + Beijing (Peking) 100061
 + Chong Wen Qu
 + Qi Nian Dian
 + Tian Tan Nei
 + China (PRC)
 + RÉPUBLIQUE POPULAIRE DE CHINE
 + </formatted>
 + </latin>
 + <native>
 + <addline1>祈年殿</addline1>
 + <addline2>天坛内</addline2>
 + <street></street>
 + <houseno></houseno>
 + <district>崇文区</district>
 + <postcode>100061</postcode>
 + <city>北京市</city>
 + <province>北京</province>
 + <formatted>
 + 北京
 + 北京市 100061
 + 崇文区
 + 祈年殿
 + 天坛内
 + BEIJING (PEKING)
 + China (PRC)
 + RÉPUBLIQUE POPULAIRE DE CHINE
 + </formatted>
 + </native>
 +</address>
 +
 +</code>
 +
 +To address a letter or a mail parcel, it is enough to pick the 
 +address→native→formatted node 
 +from this XML and print it as the postal address.