AIAI-generated narration (synthetic voice) · real application footage
FundsXML for developers · film 7 of 9
How FundsXML carries documents such as prospectuses, PRIIPs KIDs and factsheets: the Documents block, document types, languages and countries, the assignment to funds and share classes, format, signature and dates, delivery as a link or embedded as base64, replacing and restricted documents, and the Documents tool of FreeXmlToolkit to save embedded documents and embed new ones.
Fund deliveries are not only data. Prospectuses, key information documents and factsheets travel with them. In this film you see how FundsXML carries documents: as a link, or embedded in the file, how to get them out again with FreeXmlToolkit, and what receivers do with them.
Why documents in a data format? Distributors must give investors the current key information document before every purchase, in the right language. Platforms show prospectuses, annual reports and factsheets. A fund sold in ten countries quickly has hundreds of documents. FundsXML lets them travel through the same channel as the data, together with the information which fund they belong to.
Documents have their own block at the top level of the file: Documents, next to Funds and the asset master data. This example delivery carries three documents for the multi-asset fund of our fictitious asset manager: a prospectus, a key information document and a factsheet. Each one is an element Document. A document starts with its type. The schema lists the common ones: the prospectus, the PRIIPs key information document, the factsheet, annual, half-year, quarterly and monthly reports, audit and valuation reports, marketing material, and the sustainability disclosures under SFDR. A type that is not in the list goes into the element unlisted type, as free text. You do not need to remember the list. In FreeXmlToolkit, the documentation of the schema shows all allowed values, right next to the element. Use a listed type whenever one fits, because receivers sort and filter documents by it. Then the language, as an ISO code, such as en or de. Whether translations exist. And the countries where the document is published, also as ISO codes. A key information document for Austria and Germany in German, and another one for Luxembourg in English, are two separate Document elements. And then: what does the document belong to? To the whole fund, to a subfund of an umbrella, or to single share classes. Each is named by its identifiers. A prospectus usually belongs to the fund. A key information document belongs to one or more share classes, here two classes, each with its ISIN. Then the details. The name and the file name. Whether the document may be published. The format, as a media type, here application slash pdf. Whether it is signed, digitally or as a scan. The creation date, and an expiration date, after which the document must no longer be used. And the size in bytes. Documents are replaced regularly: a new key information document every year, a new factsheet every month. The new document has the same type, language and share classes, and a new version and creation date. Receivers use these to replace the old document. For a small correction of the same document, the modification date says that something changed. Not every document is for the public. Some are only for professional investors, or only for the distributor itself. Then For Public Usage is false, and Restrictions says in words who may see it. The document still travels through the same channel, but a receiver must not show it on a public website. A word on signatures. The element Signature says whether the document is signed: not at all, digitally, which means the signature sits inside the PDF, or as a scan of a document signed on paper. This is information for the receiver, not a check. If the whole delivery has to be protected, the FundsXML file itself can carry an XML signature.
Now the content. There are two ways. The prospectus is delivered as a link: the element DocumentURL holds the address where the receiver downloads it. The file stays small, and the document can be updated in one place. But the link must remain reachable, and the receiver needs access to it. The key information document is embedded. The element Binary Data holds the whole PDF, encoded as base64. The receiver has everything in one file, and nothing can get lost. The price: base64 makes the content about a third larger, and the file grows with every document. How does base64 work? It takes three bytes of the file, 24 bits, and splits them into four groups of six bits. Each group becomes one of 64 safe characters: letters, digits, plus and slash. So three bytes become four characters, which is where the extra third comes from. Line breaks are allowed and are ignored when decoding. So which one? A link suits large documents and documents that change often, if the receiver can reach the address. Embedding suits deliveries that must be complete on their own, for example for archiving, or when the receiver has no access to the sender's website. In practice, many senders deliver documents separately: a FundsXML file that contains only ControlData and the Documents block. It goes out when documents change, not every day with the prices. That keeps the daily data files small and fast, and documents can follow their own rhythm.
FreeXmlToolkit helps with both. In the FundsXML panel, the tool Documents lists all documents of the open file: type, language, the share class, whether it is linked or embedded, and its size. A linked document opens in the browser with one click. To get an embedded document out, select it and choose Save embedded document. The tool decodes the base64 content and saves the file under its file name. It also compares the size with the value in Size in Bytes, and warns if they differ. Here is the key information document, as the receiver sees it. The other way round: Embed file. Choose a PDF, the document type, the language and the share class it belongs to. The tool adds a new Document element: with the file name, the media type, the size, and the content as base64, wrapped in lines of 76 characters. Validation confirms that the file is still valid. What does the schema check for documents? That the base64 content is well formed, that the format and the language are there, and that dates are dates. What it cannot check: whether the content really is a PDF, whether the size matches, or whether a link still works. Those are business checks, done by the tool, or by the receiver's own rules.
What does a receiver do with the documents? It reads the list, matches each document to its share classes by ISIN, stores the file, and replaces the older version of the same type and language. Expiration dates tell it when a document must be taken down. Then the platform or the distributor's system can show the current document to investors.
Without the tool, the same works with standard means. Select the Binary Data element with X Path, and decode it with base64 on the command line, or in a few lines of Python or Java. For large deliveries with many documents, read the file as a stream, so that the documents do not all sit in memory at once. A few tips. Keep the size in bytes correct; receivers use it as a first check. Set an expiration date on documents that are replaced regularly, such as factsheets. Mark documents that are not for the public. Deliver one document per language. And note: FundsXML has no checksum for documents yet; that would be a good change request. That was documents in FundsXML: linked or embedded, how to get them in and out, and what receivers do with them. In the next film, you validate a delivery and check its data quality. Thanks for watching.
Why the fund industry needs a common data format: how fund data travels between asset managers, administrators, custodians, distributors, insurers, data vendors and regulators; what goes wrong without a standard; how regulation drives the need for structured data; and how FundsXML, an open standard made by the fund industry, answers it.
What a FundsXML delivery carries, in business terms: fund and share class master data, net asset values and prices, portfolios and holdings, transactions and distributions, documents, country modules and regulatory data. Why static and dynamic data are kept apart, typical kinds of deliveries, and a look into a real file.
How FundsXML carries the European regulatory templates: why regulation needs structured fund data, the roles of FinDatEx and FundsXML, the templates EMT (MiFID II), EPT (PRIIPs), EET (SFDR and ESG), TPT (Solvency II look-through) and EFT (feedback from distributors), who sends what to whom, template versions, national reporting and the European Single Access Point.
How the quality of fund data is secured with FundsXML: why a valid file is not yet correct data, the three levels readable, valid and plausible, what the schema checks and what business rules check, check digits of identifiers, checks on both sides, corrections and versions, and a data-quality report in FreeXmlToolkit.
How a FundsXML project runs, from the first idea to daily operation: scope, mapping, prototype and pilot, testing, go-live and operations; the roles involved, typical pitfalls, what is available free of charge, how versions and the standard evolve, and how to take part.
How FundsXML evolves and how to take part: who decides about the standard, the FundsXML Standards Committee and the three working groups (Content & Technique, Promotion, Documentation), associate and full membership, contributing on GitHub, the path of a change request from proposal to a new version, small and large changes, and what makes a good change request.
Set up a free working environment for FundsXML: turn on the FundsXML extension of FreeXmlToolkit, choose the schema version, get to know the FundsXML panel and its tools, read the schema's documentation of any element, open the schema itself, and start from an official example file. Also: why FundsXML needs an XSD 1.1 validator, and the two forms in which the schema is published. With an overview of other tools: command line validators, IDEs and the online documentation.
How a FundsXML document is built: the root element FundsXML4, its main blocks (ControlData, Funds, AssetMasterData, Documents, RegulatoryReportings, CountrySpecificData), and ControlData in detail: document ID, timestamps, schema version, content date, data supplier, and the data operations INITIAL, AMEND and DELETE with related document IDs. With common pitfalls. Includes turning a delivery into a correction in FreeXmlToolkit.
The fund part of a FundsXML document: fund identifiers and names, SingleFundFlag with single funds and umbrellas, FundStaticData and FundDynamicData, the total net asset value, share classes with prices, shares outstanding and amounts in several currencies (AmountType with ccy), action codes, and checking ISIN and LEI check digits in FreeXmlToolkit.
The portfolio part of a FundsXML document: positions with their value and weight, the instrument-specific block (equities, bonds, fund units, options, FX forwards, cash), the link from a position to its asset in AssetMasterData through UniqueID (xs:ID and xs:IDREF), a broken link found by the schema, portfolio breakdowns, and how fund-of-fund look-through is modelled.
How FundsXML records what moved in a fund: subscriptions and redemptions of investors (Flows on the share class), distributions (Distributions), income from the portfolio (Earnings) and the portfolio's own trades (Transactions), with reporting periods, dates, amounts in several currencies and the links to the assets. Also: how switches are reported, and what the core schema leaves to other standards.
How the FinDatEx templates sit in a FundsXML file: RegulatoryReportings with DirectReporting and IndirectReporting, an EMT V4.2 block (data set information, general information, target market, ex-ante costs) and a TPT V7 block for Solvency II (portfolio data, positions with CIC codes and valuations), template versions as their own elements, and how country-specific data and custom attributes extend the standard.
How FundsXML carries documents such as prospectuses, PRIIPs KIDs and factsheets: the Documents block, document types, languages and countries, the assignment to funds and share classes, format, signature and dates, delivery as a link or embedded as base64, replacing and restricted documents, and the Documents tool of FreeXmlToolkit to save embedded documents and embed new ones.
Validate a FundsXML delivery in two stages: against the XSD 1.1 schema, reading and fixing its error messages, and against business rules with the FundsXML data-quality checks of FreeXmlToolkit. With the data-quality report, a catalogue of typical schema errors, Schematron rules, and validation on the command line and in build pipelines.
Work with the data in a FundsXML file: XPath paths without a namespace, the ready-made FundsXML queries in the Query Console of FreeXmlToolkit (the ten largest positions as a table), an XSLT stylesheet that turns the positions into CSV, a large file read as a stream in Python with lxml (half a million positions with flat memory, from the FundsXML examples), classes generated from the schema, and the way on to a database.
How FundsXML runs in production: who sends what to whom, the whole delivery chain on one page (sources, central database, generator, validation, SFTP, API and portals), the chains of sender and receiver, security, rhythms and schema versions, the five building blocks of a production setup, roles, build or buy, two environments, document IDs, and the complete example used in this series, which can be downloaded.
How FundsXML data is stored in a database, with the complete PostgreSQL example of the FundsXML examples repository: the XML column and shredded tables, layers, a table model in which everything that repeats is a row (several funds per file, umbrellas and subfunds, several NAVs per day and currency, portfolios and positions, look-through), keys and assets without an ISIN, amounts and currencies, code lists, dates, transactions in four places, documents, regulatory templates, history and corrections, views, quality, access and performance. All files can be downloaded.
How FundsXML files get into a database safely, with the loader of the complete PostgreSQL example: the steps of a robust loader, a landing folder, cheap checks first, triggers, validation and schema versions, idempotency through the UniqueDocumentID, full and delta deliveries, streaming large files with one handler per repeating element, funds and subfunds, the order of assets and positions, asset keys, transactions, documents and regulatory templates, business rules, speed, six deliveries and four broken files at work, corrections and deletions, reconciliation, code checks, error reports, tests and release. All files can be downloaded.
How to produce FundsXML from a database, with the generator of the complete PostgreSQL example: start with the target file, a mapping table, a partner register that says which data goes to whom, templates, XSLT or generated code, ControlData, writing share classes, several funds and dates in one file, element order, empty elements and formats, validation in FreeXmlToolkit, corrections, large deliveries, several schema versions, partner configuration, time windows, golden files, CI and the round trip, handing over, resends and documentation. All files can be downloaded.
What daily operation of a FundsXML chain needs: a day in operations, monitoring and a delivery overview, duty and runbooks, error classes and incident handling with an example, reconciliation, feedback, agreements with partners, onboarding, changes in the partner landscape, security, schema upgrades, the archive, metrics, people, reporting, typical first-year issues, a checklist, and staying involved in the standard.