Table of Contents

Function: createXmlFile()

function createXmlFile(root: Version): {
  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: Version;
  schema: "bcf-2.1/version";
};

Create a bcf-2.1/version XML document. Save validates it against the official XSD.

Parameters

root

Version

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: Version;
  schema: "bcf-2.1/version";
}

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: Version;

schema

schema: "bcf-2.1/version";

See

https://raw.githubusercontent.com/buildingSMART/BCF-XML/92fdcf4bfaa8f0576e7562730f341fc7781e2065/Schemas/version.xsd