Skip to content

XBRL italy #16

Description

@simocheccoli

Hi! We are trying to use this library with XBRL files from Italian companies, but we have some trouble ..

        /** @var string $filename */
        $filename = $this->argument('filename');

        $report = new \XBRL_Report( $filename );
        $report->excludeDefaultDimensionMembers();
        $report->preparePresentation();

        $html = $report->toHtml();
        $date = date( "Y-m-d" );
        file_put_contents( "report_{$date}.html", $html );

Output:

[info] storage/bilanci/94101220211_28911915_14566012.xbrl
[info]     Files: itcc-ci-micr-2018-11-04.xsd
[info]  http://www.xbrl.org/dtr/type/numeric-2009-12-16.xsd

   Exception  : Error initialising the instance document. It may contain invalid XML.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions