To specify attributes: var xml2js = require('xml2js'); var obj = {root: {$: {id: "my id"}, _: "my inner text"}}; var builder = new xml2js.
確定! 回上一頁