Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

XML file retrieval method and apparatus

A file retrieval and element technology, applied in the computer field, can solve the problems of serious memory consumption and inability to parse, and achieve the effect of saving memory space and development work

Inactive Publication Date: 2016-02-24
QINGDAO HAIER INTELLIGENT HOME TECH CO LTD
View PDF3 Cites 8 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0005] The technical problem to be solved by the present invention is to provide an XML file retrieval method and device to solve the problem of serious memory consumption or even inability to parse when retrieving large XML files on NodeJS in the prior art

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • XML file retrieval method and apparatus
  • XML file retrieval method and apparatus
  • XML file retrieval method and apparatus

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0056] The following will clearly and completely describe the technical solutions in the embodiments of the present invention with reference to the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are only some of the embodiments of the present invention, not all of them. Based on the embodiments of the present invention, all other embodiments obtained by persons of ordinary skill in the art without making creative efforts belong to the protection scope of the present invention.

[0057]In order to solve the retrieval of similar unstructured data on NodeJS, especially the retrieval of relatively large XML files, the present invention provides a JavaScript language-based XML file retrieval method. The method adopts SAX (an abbreviation of SimpleAPIforXML, an event-based engine for parsing XML) parser to process while parsing, and does not need to read XML files into memory in advance, which can effectively save memory space....

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The invention discloses an XML file retrieval method and apparatus. The method comprises: analyzing an input XML character string via an SAX parser; when a new element is analyzed, acquiring description information of the element; and when the acquired description information is matched with a preset retrieval rule, storing the description information of the element to a result set and simultaneously, informing a user to process a retrieval process. According to the XML file retrieval method provided by the invention, a file does not need to be read into a memory in advance, so that a memory space can be effectively saved; and by using a style selector as a description means for to-be-searched contents, most of HTML and XML information can be shown, and thus, the XML file retrieval method is very universal and development work is effectively saved.

Description

technical field [0001] The invention relates to the field of computer technology, in particular to an XML file retrieval method and device. Background technique [0002] NodeJS is a platform based on the Google V8 engine, which is used to easily build fast-response and easy-to-extend network applications. NodeJS uses an event-driven, non-blocking I / O model to be lightweight and efficient, and is very suitable for data-intensive real-time applications running on distributed devices. As a server-side application technology, NodeJS has gradually matured. There are a large number of NodeJS-based open source modules in the community, which makes it much more convenient to use. [0003] XML (extensibleMarkupLanguage) is a simple and flexible extensible markup language in text format. It is used to mark electronic files to make them structural. It can be used to mark data and define data types. The source language in which the markup language is defined. As a server-side technol...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
Patent Type & Authority Applications(China)
IPC IPC(8): G06F17/30
CPCG06F16/83
Inventor 程少虹
Owner QINGDAO HAIER INTELLIGENT HOME TECH CO LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products