Xiaomi Corp sold an $800m 10 year bond and a $400m 30 year bond this week amid a difficult market for Chinese bonds and technology companies. But the mobile phone maker's green tranche, as well as its business model, attracted investors and allowed for tight pricing. Morgan Davis reports.