Table of Contents

Function: createXmlFile()

function createXmlFile(root: ids): {
  after?: (
     | {
     kind: "comment";
     value: string;
   }
     | {
     kind: "instruction";
     target: string;
     value: string;
  })[];
  before?: (
     | {
     kind: "comment";
     value: string;
   }
     | {
     kind: "instruction";
     target: string;
     value: string;
  })[];
  kind: "xml";
  root: ids;
  schema: "ids-1.0/ids";
};

Create a ids-1.0/ids XML document. Save validates it against the official XSD.

Parameters

root

ids

Returns

{
  after?: (
     | {
     kind: "comment";
     value: string;
   }
     | {
     kind: "instruction";
     target: string;
     value: string;
  })[];
  before?: (
     | {
     kind: "comment";
     value: string;
   }
     | {
     kind: "instruction";
     target: string;
     value: string;
  })[];
  kind: "xml";
  root: ids;
  schema: "ids-1.0/ids";
}

after?

optional after?: (
  | {
  kind: "comment";
  value: string;
}
  | {
  kind: "instruction";
  target: string;
  value: string;
})[];

before?

optional before?: (
  | {
  kind: "comment";
  value: string;
}
  | {
  kind: "instruction";
  target: string;
  value: string;
})[];

kind

kind: "xml";

root

root: ids;

schema

schema: "ids-1.0/ids";

See

https://raw.githubusercontent.com/buildingSMART/IDS/4949bfcba2cd324f76b480f6f85e0b25dc7fa98f/Schema/ids.xsd