Skip to content

Loading the Registry from the JSON file #264

@kyxhik

Description

@kyxhik

Hello, I was wondering if there is documentation about how to load the registry programmatically from the getResolverDataset json file.

The project I am working on has the following dependency
<dependency> <groupId>org.identifiers.registry</groupId> <artifactId>registry-lib</artifactId> <version>1.1.1</version> </dependency>

And it is loading the resources like this:

RegistryDatabase.loadFromFile(file);

There is a loadFromInputStream version as well. But I am getting the following error, which clearly shows these methods accept the old xml files.

[Fatal Error] :1:1: Content is not allowed in prolog. Exception in thread "main" java.lang.RuntimeException: org.xml.sax.SAXParseException; lineNumber: 1; columnNumber: 1; Content is not allowed in prolog.
Thanks

Metadata

Metadata

Assignees

No one assigned

    Labels

    questionFurther information is requested

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions