CN105224319A - The method of XBRL instance document preview is realized based on dom4j - Google Patents

The method of XBRL instance document preview is realized based on dom4j Download PDF

Info

Publication number
CN105224319A
CN105224319A CN201510616158.6A CN201510616158A CN105224319A CN 105224319 A CN105224319 A CN 105224319A CN 201510616158 A CN201510616158 A CN 201510616158A CN 105224319 A CN105224319 A CN 105224319A
Authority
CN
China
Prior art keywords
instance document
preview
dom4j
xbrl
instance
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201510616158.6A
Other languages
Chinese (zh)
Other versions
CN105224319B (en
Inventor
王德海
李波
许岩龙
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Sichuan Changhong Electric Co Ltd
Original Assignee
Sichuan Changhong Electric Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Sichuan Changhong Electric Co Ltd filed Critical Sichuan Changhong Electric Co Ltd
Priority to CN201510616158.6A priority Critical patent/CN105224319B/en
Publication of CN105224319A publication Critical patent/CN105224319A/en
Application granted granted Critical
Publication of CN105224319B publication Critical patent/CN105224319B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Abstract

The present invention relates to the display of XBRL instance document, object converts server end instance document information to front end browser can identify and the method for the data structure shown, so that front end shows instance document role to provide a kind of.The invention provides a kind of front end browser that server end instance document information converted to can identify and the method for the data structure shown.Particularly, the invention provides a kind of method realizing the preview of XBRL instance document based on dom4j, the method comprises the steps.First, the preview example of certain role in instance document is created out by XBRL engine.Secondly, xStream instrument is used the model simplification of the Java object complexity of described preview example to be become the relatively simple Java object of structure.Then, use dom4j that the Java object conversion encapsulation after simplification is formed the preview structure of instance document front end needs.Finally, the preview structure that front end flex needs according to the instance document front end after conversion carries out resolving and showing.The present invention is applicable to the display of XBRL instance document.

Description

The method of XBRL instance document preview is realized based on dom4j
Technical field
The present invention relates to the display of XBRL instance document, a kind of particularly method realizing the preview of XBRL instance document based on dom4j.
Background technology
Extensible Business Reporting Language is based on internet, cross-platform operation, the computerese be specifically designed to financial report establishment, disclosing and use.Substantially realize the integrated of data and maximum using, accounting information exports one, resources sharing, is accounting standard combined with computerese in the world, for unstructured data, and the up-to-date recognised standard of especially financial information exchange and technology.By specifically identifying data are unified and classify, directly by user or other software are read and processes further, a typing can be realized, repeatedly uses.
In the instance document link of XBRL technical system, system adopts B/S (browser Browser/ server S erver) structure, because the instance data of instance document is stored in server end, user needs to use browser check and edit instance document, therefore, need to convert server end instance document example information to front end browser by certain mode can identify and the data structure shown.
Summary of the invention
The object of this invention is to provide a kind of front end browser that server end instance document information converted to can identify and the method for the data structure shown.Particularly, the invention provides a kind of method realizing the preview of XBRL instance document based on dom4j, the method comprises the steps:
A. created out in instance document by XBRL engine that certain needs preview role instance;
B. xStream instrument is used the complicated Java object model simplification of above-mentioned example to be become the relatively simple Java object of structure;
C. use dom4j by simplify after Java object conversion encapsulation formed instance document preview time front end need data structure;
D. front end flex carries out resolving and showing according to the instance document structure after dom4j conversion.
Particularly, in step C, the preview structure that described instance document front end needs is XML format file.
Further, also comprise before steps A, generate instance document example and instance document is stored in MongoDB database.
Particularly, the concrete grammar be stored into by instance document example in MongoDB database is: put in storage according to data set organization by same rights management relational database by configurable timed sequence, and carry out data set incremental update according to configuration frequency.
Particularly, when needs increase true value or increase footnote to instance document, by the MongoDB API that is correlated with, the instance document example information of preservation is read in whole or in part, again it is upgraded after modifying.
Particularly, give the correct time on needs establishment instance document file carries out, by the relevant API of MongoDB by complete for instance document example reading, construct instance document memory model by XBRL engine server, this memory model creates out the instance document file reporting needs
The invention has the beneficial effects as follows: this provides a kind of front end browser that converted to by instance document can identify and the data structure shown, because Instance Document data model is complicated, quantity of information is huge, change loaded down with trivial details, therefore by dom4j instrument, instance document is converted to the data structure of front end display, dom4j is the kit of specialized operations Java object and XML file, excellent performance, flexible and convenient to use, front end adopts flex technology to show, flex shows tree construction and tableau format bottom is all based on XML file, dom4j and flex with the use of, the perfect transition from Java object to front end browser display can be reached, and performance is in tolerance interval, specific performance must rely on data volume size, processing time and data volume linear.
Embodiment below in conjunction with embodiment is described in further detail technical scheme of the present invention; should be noted that; embodiment is only used to help reader better to understand technical conceive of the present invention, not in order to limit the protection domain of the claims in the present invention.
Embodiment
The invention provides a kind of front end browser that server end instance document information converted to can identify and the method for the data structure shown.Particularly, the invention provides a kind of method realizing the preview of XBRL instance document based on dom4j, the method comprises the steps.First, created out in instance document by XBRL engine that certain needs the role instance of preview.Secondly, xStream instrument is used the complicated Java object model simplification of above-mentioned preview example to be become the relatively simple Java object of structure.Then, dom4j is used the Java object conversion encapsulation after simplification to be formed the instance document structure of front end preview needs.Finally, front end flex carries out resolving and showing according to the instance document structure after conversion.
Embodiment
Below exemplary description is done to technical scheme of the present invention.
This provides a kind of front end browser that converted to by instance document can identify and the data structure shown, because Instance Document data model is complicated, quantity of information is huge, change loaded down with trivial details, therefore by dom4j instrument, instance document is converted to the data structure of front end display, dom4j is the kit of specialized operations Java object and XML file, excellent performance, flexible and convenient to use, front end adopts flex technology to show, flex shows tree construction and tableau format bottom is all based on XML file, dom4j and flex with the use of, the perfect transition from Java object to front end browser display can be reached, and performance is in tolerance interval.Comprise the following steps:
1, created out in instance document by XBRL engine that certain needs the role instance of preview;
2, xStream instrument is used the model simplification of the Java object complexity of described preview example to be become the relatively simple Java object of structure;
3, use dom4j by simplify after Java object conversion encapsulation formed instance document preview time front end need data structure; The preview structure that instance document front end needs is XML format file.
4, front end flex to resolve instance document according to the XML format file after conversion and shows.
Before the role's preview example creating instance document, need first to generate instance document, be stored in MongoDB database in the present invention by the instance document of generation, carry out accessing operation to facilitate, its concrete grammar is as follows:
1, instance document example is created out by XBRL engine server.
2, by some communication protocols, instance document example is transferred to instance document processing server.
3, the memory instance of instance document is persisted to mongoDB database by the mongoDB API that is correlated with by instance document processing server.
4, (true value is such as increased when needs carry out subsequent operation to instance document, increase footnote etc.) time, by the mongoDB API that is correlated with, the instance document example information that the end 3 step is preserved is read in whole or in part, after having made amendment, again renewal rewards theory is carried out to it.
5, give the correct time on needs establishment instance document file carries out, by the relevant API of MongoDB by complete for instance document example reading, construct instance document memory model by XBRL engine server, engine creates out the instance document file reporting needs again by this memory model.

Claims (6)

1. realize the method for XBRL instance document preview based on dom4j, it is characterized in that, comprise the steps:
A. created out in instance document by XBRL engine that certain needs the role instance of preview;
B. xStream instrument is used the complicated Java object model simplification of above-mentioned example to be become the relatively simple Java object of structure;
C. use dom4j by simplify after Java object conversion encapsulation formed instance document preview time front end need data structure;
D. front end flex carries out resolving and showing according to the instance document structure after dom4j conversion.
2. the method realizing the preview of XBRL instance document based on dom4j as claimed in claim 1, is characterized in that, in step C, the preview structure that described instance document front end needs is XML format file.
3. the method realizing the preview of XBRL instance document based on dom4j as claimed in claim 1 or 2, is characterized in that, also comprise before steps A, generates instance document example and is stored in MongoDB database by instance document.
4. the method realizing the preview of XBRL instance document based on dom4j as claimed in claim 3, the concrete grammar be stored into by instance document example in MongoDB database is: put in storage according to data set organization by same rights management relational database by configurable timed sequence, and carry out data set incremental update according to configuration frequency.
5. the method realizing the preview of XBRL instance document based on dom4j as claimed in claim 4, it is characterized in that, when needs increase true value to instance document or increase footnote, by the MongoDB API that is correlated with, the instance document example information of preservation is read in whole or in part, again it is upgraded after modifying.
6. the method realizing the preview of XBRL instance document based on dom4j as claimed in claim 4, it is characterized in that, give the correct time on needs establishment instance document file carries out, by the relevant API of MongoDB by complete for instance document example reading, construct instance document memory model by XBRL engine server, this memory model creates out the instance document file reporting needs.
CN201510616158.6A 2015-09-24 2015-09-24 The method for realizing XBRL instance document previews based on dom4j Active CN105224319B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510616158.6A CN105224319B (en) 2015-09-24 2015-09-24 The method for realizing XBRL instance document previews based on dom4j

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510616158.6A CN105224319B (en) 2015-09-24 2015-09-24 The method for realizing XBRL instance document previews based on dom4j

Publications (2)

Publication Number Publication Date
CN105224319A true CN105224319A (en) 2016-01-06
CN105224319B CN105224319B (en) 2018-10-02

Family

ID=54993316

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510616158.6A Active CN105224319B (en) 2015-09-24 2015-09-24 The method for realizing XBRL instance document previews based on dom4j

Country Status (1)

Country Link
CN (1) CN105224319B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107609151A (en) * 2017-09-22 2018-01-19 深圳易嘉恩科技有限公司 The method that XBRL instance documents caching is realized based on Redis
CN110297945A (en) * 2019-07-02 2019-10-01 中国工商银行股份有限公司 Data information processing method and system based on XBRL

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20100121883A1 (en) * 2008-11-11 2010-05-13 Microsoft Corporation Reporting language filtering and mapping to dimensional concepts
CN101826112A (en) * 2010-05-05 2010-09-08 山东中创软件工程股份有限公司 Method, device and system for storing and reading list data
CN102207975A (en) * 2011-06-24 2011-10-05 天津大学 Method for manufacturing and displaying extensive makeup language (xml) data module based on ietm standard
CN102360367A (en) * 2011-09-29 2012-02-22 广州中浩控制技术有限公司 XBRL (Extensible Business Reporting Language) data search method and search engine
CN103399934A (en) * 2013-08-09 2013-11-20 神州数码(中国)有限公司 Form data transmission and storage method

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20100121883A1 (en) * 2008-11-11 2010-05-13 Microsoft Corporation Reporting language filtering and mapping to dimensional concepts
CN101826112A (en) * 2010-05-05 2010-09-08 山东中创软件工程股份有限公司 Method, device and system for storing and reading list data
CN102207975A (en) * 2011-06-24 2011-10-05 天津大学 Method for manufacturing and displaying extensive makeup language (xml) data module based on ietm standard
CN102360367A (en) * 2011-09-29 2012-02-22 广州中浩控制技术有限公司 XBRL (Extensible Business Reporting Language) data search method and search engine
CN103399934A (en) * 2013-08-09 2013-11-20 神州数码(中国)有限公司 Form data transmission and storage method

Non-Patent Citations (3)

* Cited by examiner, † Cited by third party
Title
卫军: "《ExtJSP Web应用程序开发指南》", 31 March 2009 *
柳峰: "《微信公众平台应用开发》", 31 January 2014 *
王作启: "《Java程序设计完全学习手册》", 31 July 2014 *

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107609151A (en) * 2017-09-22 2018-01-19 深圳易嘉恩科技有限公司 The method that XBRL instance documents caching is realized based on Redis
CN110297945A (en) * 2019-07-02 2019-10-01 中国工商银行股份有限公司 Data information processing method and system based on XBRL
CN110297945B (en) * 2019-07-02 2021-07-30 中国工商银行股份有限公司 Data information processing method and system based on XBRL

Also Published As

Publication number Publication date
CN105224319B (en) 2018-10-02

Similar Documents

Publication Publication Date Title
CN105354314B (en) Data migration method and device
CN105760534B (en) Data structure, hadoop cluster, server and its application method of customized serializability
US20050114394A1 (en) Mapping XML schema components to qualified Java components
CN109670081B (en) Method and device for processing service request
CN107168695B (en) Excel data analysis method and system
CN111460241B (en) Data query method and device, electronic equipment and storage medium
CN104102701A (en) Hive-based method for filing and inquiring historical data
CN102999600A (en) Method and system for automatically generating embedded database
US10726004B2 (en) Enterprise integration processing for mainframe COBOL programs
US9129035B2 (en) Systems, methods, and apparatus for accessing object representations of data sets
CN105468793A (en) Automated management method for simulation model data
CN107609151A (en) The method that XBRL instance documents caching is realized based on Redis
CN105224319A (en) The method of XBRL instance document preview is realized based on dom4j
CN110109983B (en) Method and device for operating Redis database
US10387493B2 (en) Methods for converting an XML artifact into a topic map instance and devices thereof
CN108241705B (en) Data insertion method and device
CN112783836A (en) Information exchange method, device and computer storage medium
US9201838B2 (en) Systems and methods for the efficient exchange of hierarchical data
CN111125129A (en) Data processing method and device, storage medium and processor
CN102799423A (en) Method and device for implementing dynamic method in JSF (java service face)
US10402391B2 (en) Processing method, device and system for data of distributed storage system
CN102314406A (en) The method and system that is used for the lazy data sequenceization of compunication
CN105488147A (en) Persistence method based on SQL (Structured Query Language) template
CN105224632A (en) In XBRL technological frame, engine model is converted to the method for page model
CN105354211A (en) MongoDB based method for realizing XBRL instance document access

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant