FieldedText TypeScript Library
    Preparing search index...

    API for serializing and deserializing FtMeta objects to and from XML files.

    Extends FtXmlMetaSerialization with Node.js file system access.

    Hierarchy

    • FtXmlMetaSerialization
      • FtNodeXmlMetaSerialization
    Index
    • Deserialize XML string to an FtMeta object.

      Parameters

      • xml: string
      • Optionalwarnings: string[]

      Returns FtMeta

    • Deserialize an FtMeta object from an XML file.

      Parameters

      • filePath: PathOrFileDescriptor

        The path or file descriptor of the XML file.

      • Optionalwarnings: string[]

        An optional array to receive deserialization warnings.

      • encoding: BufferEncoding = 'utf-8'

        The encoding of the file. Defaults to utf-8.

      Returns FtMeta

      The deserialized meta object.

    • Serialize an FtMeta object to XML string.

      Parameters

      • meta: FtMeta
      • Optionaloptions: FtMetaSerializerOptions

      Returns string

    • Serialize an FtMeta object to an XML file.

      Parameters

      • meta: FtMeta

        The meta object to serialize.

      • filePath: PathOrFileDescriptor

        The output path or file descriptor.

      • Optionaloptions: FtMetaSerializerOptions

        Optional serialization settings.

      • encoding: BufferEncoding = 'utf-8'

        The encoding of the file. Defaults to utf-8.

      Returns void