MCPcopy
hub / github.com/ionic-team/capacitor / buildXmlElement

Function buildXmlElement

cli/src/util/xml.ts:41–49  ·  view source on GitHub ↗
(configElement: any, rootName: string)

Source from the content-addressed store, hash-verified

39}
40
41export function buildXmlElement(configElement: any, rootName: string): string {
42 const builder = new xml2js.Builder({
43 headless: true,
44 explicitRoot: false,
45 rootName: rootName,
46 });
47
48 return builder.buildObject(configElement);
49}

Callers 2

buildConfigFileXmlFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected