KR20170085711A - An Extension-XML Parser for Wireless Device - Google Patents
An Extension-XML Parser for Wireless Device Download PDFInfo
- Publication number
- KR20170085711A KR20170085711A KR1020160005180A KR20160005180A KR20170085711A KR 20170085711 A KR20170085711 A KR 20170085711A KR 1020160005180 A KR1020160005180 A KR 1020160005180A KR 20160005180 A KR20160005180 A KR 20160005180A KR 20170085711 A KR20170085711 A KR 20170085711A
- Authority
- KR
- South Korea
- Prior art keywords
- xml
- module
- code
- processing
- rss
- Prior art date
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F8/00—Arrangements for software engineering
- G06F8/30—Creation or generation of source code
- G06F8/37—Compiler construction; Parser generation
-
- G06F17/2247—
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F8/00—Arrangements for software engineering
- G06F8/40—Transformation of program code
- G06F8/41—Compilation
- G06F8/42—Syntactic analysis
- G06F8/427—Parsing
Landscapes
- Engineering & Computer Science (AREA)
- General Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Software Systems (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Devices For Executing Special Programs (AREA)
Abstract
The present invention relates to a markup language parser, and more particularly, to an XML parsing module for separating and processing XML code into elements, and a SOAP / WSDL module for parsing and processing XML code generated according to SOAP or WSDL Wherein the XML parsing module comprises: a code separation module for separating XML code; An element storage module for storing an element of the separated code; And an event processing module for processing an event when an event occurs; a code separation module for processing the XML code or separating the XML code by processing an event when an event occurs in each separated element; An element storage module for storing an element of the separated code; And a node creation module for creating and layering the stored elements into nodes and processing the XML codes by layering each separated element, and the XML parsing module is implemented in the C language, And saving the time and space required for XML code processing. The present invention relates to an extended XML parser for an IOT device.
Description
The present invention relates to a markup language parser, and more particularly, to an XML parsing module for separating and processing XML code into elements, and a SOAP / WSDL module for parsing and processing XML code generated according to SOAP or WSDL Wherein the XML parsing module comprises: a code separation module for separating XML code; An element storage module for storing an element of the separated code; And an event processing module for processing an event when an event occurs; a code separation module for processing the XML code or separating the XML code by processing an event when an event occurs in each separated element; An element storage module for storing an element of the separated code; And a node creation module for creating and layering the stored elements into nodes and processing the XML codes by layering each separated element, and the XML parsing module is implemented in the C language, And saving the time and space required for XML code processing. The present invention relates to an extended XML parser for an IOT device.
XML is an abbreviation of eXtensible MarkUp Language. It is a term for expandable markup language. It is designed to overcome the limitation of HTML by making it easy to exchange data between systems connected to the Internet. Typically, there are two kinds of communicating parties: a client and a server that send and receive different types of data. XML provides a way to structure and package such data. Therefore, in order to analyze and utilize the data transmitted in XML code, it is necessary to analyze the XML code and extract the data. The XML parser is responsible for this function.
Recently, IOT devices that perform data communication using wireless networks between different kinds of devices such as Internet of Things (IOT) and furthermore, WoT (Web of Things) have developed rapidly, In particular, there are frequent cases where the service provided by the web service server is not received from the smart phone due to the different environment of the server and the client providing the parser. In this situation, there is a need for an extended XML parser for IOT devices.
In addition, IOT devices have lower hardware performance than desktop PCs and laptops. Therefore, parsers that do not consider hardware performance are not able to process full-scale XML data and are unable to provide full web services. Especially, the XML parser written in Javascript has a structure to convert the memory that is not used by the garbage collector to an available memory resource as well as showing performance that depends on the script interpreter because the parser interprets the script immediately while executing the script. It is difficult to efficiently use the memory, and thus it is not suitable for IOT devices which must use limited resources.
SUMMARY OF THE INVENTION The present invention has been made to solve the above problems,
An object of the present invention is to provide an XML parsing module for separating XML code into individual elements and a SOAP / WSDL module for analyzing and processing XML code written in accordance with SOAP or WSDL, To an extended XML parser for an IOT device.
It is another object of the present invention to provide an XML parsing module that processes an event when an event occurs in each separated element and processes the XML code to provide a separate memory such as a document capacity check, And an extended XML parser for an IOT device, which is capable of ensuring a fast processing speed in the case of an unnecessary work.
Yet another object of the present invention is to provide an XML parsing module that includes a code separation module for separating XML code, an element storage module for storing elements of separated code, and an event processing module for processing an event when an event occurs The present invention relates to an extended XML parser for an IOT device, which is capable of ensuring a fast processing speed in a case where a document has a small capacity, a document is validated, or a work requiring no separate memory, such as data conversion.
Another object of the present invention is to provide an XML parsing module that processes each XML element by layering separated elements and processes a large amount of data when an XML document is structurally created or if desired data has a hierarchical structure To an extended XML parser for an IOT device, characterized in that a fast processing speed can be expected and data movement is excellent.
Yet another object of the present invention is to provide an XML parsing module including a code separating module for separating XML code, an element storing module for storing elements of separated code, and a node creating module for creating and layering stored elements as nodes , An extended XML parser for an IOT device, characterized in that a fast processing speed can be expected and an excellent data movement can be expected when a large amount of data processing is required when an XML document is structurally created or when desired data has a hierarchical structure .
It is another object of the present invention to provide an XML parsing module, which is implemented in the C language, enables stable high performance regardless of the performance of the script interpreter, and free memory that is not used by the C language, To an extended XML parser for an IOT device, characterized in that the space complexity of an application program is reduced and the execution time of the program is improved.
An XML parser for an IOT device for achieving the object of the present invention includes the following configuration.
According to an embodiment of the present invention, an extended XML parser for an IOT device according to the present invention includes an XML parsing module for separating and processing an XML code into elements; And a SOAP / WSDL module for parsing and processing XML code generated according to SOAP or WSDL, wherein the XML parsing module includes a code separation module for separating XML code and an element storage module for storing elements of separated code And provides various XML code processing environments on the IOT device.
According to another embodiment of the present invention, in the extended XML parser for an IOT device according to the present invention, the XML parsing module further includes an event processing module for processing an event when an event occurs in each separated element do.
According to another embodiment of the present invention, in the extended XML parser for IOT devices according to the present invention, the XML parsing module further includes a node creation module for creating and layering the stored elements as nodes.
According to another embodiment of the present invention, in the extended XML parser for an IOT device according to the present invention, the XML parsing module is implemented in C language, thereby saving time and space required for XML code processing.
The present invention can obtain the following effects by the above-described embodiment, the constitution described below, the combination, and the use relationship.
The present invention provides various XML code processing environments on an IOT device, including an XML parsing module for processing XML code by each element, and a SOAP / WSDL module for analyzing and processing XML code written in accordance with SOAP or WSDL .
In the present invention, when an event occurs in each element separated by the XML parsing module, an event is processed to process the XML code, and the XML parsing module processes the XML code to reduce the size of the document, It is possible to guarantee a fast processing speed.
The XML parsing module includes a code separation module for separating XML code, an element storage module for storing elements of separated code, and an event processing module for processing an event when an event occurs, Or a work that does not require a separate memory, such as document validation or data conversion, can be guaranteed to have a high processing speed.
The present invention is characterized in that the XML parsing module processes each XML element by layering each separated element and processes the XML code. When an XML document is structurally created or a desired data has a hierarchical structure, a large amount of data processing is required. And has an effect that the movement of data is excellent.
The XML parsing module includes a code separating module for separating XML code, an element storing module for storing an element of the separated code, and a node creating module for creating and layering the stored element as a node, When a structured data or a desired data has a hierarchical structure, a high processing speed can be expected in the case where a large amount of data processing is required, and the movement of data is excellent.
In the present invention, since the XML parsing module is implemented in the C language, it is possible to secure stable high performance regardless of the performance of the script interpreter, and free memory is not used by the C language, It is possible to reduce the space complexity of the application program and improve the execution time of the program.
1 is a block diagram of an enhanced XML parser for an IOT device in accordance with an embodiment of the present invention.
2 is a flowchart of an XML parsing module according to an embodiment of the extended XML parser of the present invention.
3 is a flowchart of an XML parsing module according to another embodiment of the extended XML parser of the present invention.
4 is a conceptual diagram of an application development tool and an emulator using an extended XML parser for an IOT device according to the present invention.
5 is a block diagram of an RSS parser for an IOT appliance in accordance with an embodiment of the present invention.
6 is a flowchart of an RSS parsing module in an RSS parser of the present invention.
7 is a conceptual diagram of an application development tool and an emulator using an RSS parser for an IOT device according to the present invention.
Hereinafter, preferred embodiments of an extended XML parser for an IOT device according to the present invention will be described in detail with reference to the accompanying drawings. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS In the following description of the present invention, a detailed description of known functions and configurations incorporated herein will be omitted when it may make the subject matter of the present invention rather unclear. Unless defined otherwise, all terms used herein are the same as the general meaning of the term understood by those of ordinary skill in the art to which this invention belongs and, if conflict with the meaning of the terms used herein, And the definition used in the specification.
In this specification, parsing is defined as a task of analyzing a given document and extracting necessary data in the document and providing or extracting the extracted data, and the parser is defined as a module or apparatus that performs such a task.
1 to 4, an extended XML
The XML
In an embodiment of the present invention, the XML
When the XML document is transmitted from the server, the
In another embodiment of the present invention, the
Referring to FIG. 3, when the XML document transmitted by the
In a more preferred embodiment of the present invention, the
ActiveX can be utilized as an example of a technique for binding execution modules as described above. For example, an executable file written in C language can be executed in a web browser. An executable file written in C language is converted into a DLL file and packaged into a CAB file. In other words, the CAB file is wrapped and authenticated in a CAB file, such as a DLL file, an access-related configuration file (.inf), and other ocx files (.ocx) In HTML, you can link to the object tag, load the DLL from JavaScript, and access the C function defined in the DLL. This operation is called wrapping.
In addition, in the case of JavaScript, it is difficult to use memory effectively because it takes a structure to convert unused memory into available memory resources through the garbage collector, while C does not free unused memory immediately, It is possible to secure sufficient available memory resources, thereby reducing the space complexity of the
Actually, according to the experiment result of the present inventor, in the case of the extended XML parser (1) implemented in the C language, if the parsing is performed through the event processing, the 64 KB capacity can be processed within 10 seconds, In one case, the 64KB capacity could be processed in less than 15 seconds. This is faster than the case of using JavaScript, on average at least 1 second, which proves that the present invention is excellent for processing large amounts of data.
The SOAP /
SOAP is an abbreviation of Simple Object Access Protocol. It is a protocol that suggests a method for efficiently realizing a call between various components existing on the network based on XML and HTTP communication. The
In addition, WSDL stands for Web Services Description Language, which is an XML-based markup language that is used to describe services provided by a particular business and to provide a way for individuals or other companies to electronically access such services. The
The
RSS stands for Really Simple Syndication, an XML protocol for web syndication used by websites and blogs. That is, RSS provides a service that can quickly and easily receive individual sites that provide contents (data, information) that are frequently changed or updated on their own blog or viewer without searching each time. The present invention further includes an
In another embodiment of the present invention, there is provided an
In addition, the emulator 5 further provides an emulator 5 for checking whether the
As a result, the present invention provides an optimal framework for IOT devices such as smart phones that must utilize limited memory and resources.
5 to 7, the general-
The
The
In a more preferred embodiment of the present invention, the
ActiveX can be utilized as an example of a technique for binding execution modules as described above. For example, an executable file written in C language can be executed in a web browser. An executable file written in C language is converted into a DLL file and packaged into a CAB file. In other words, the CAB file is wrapped and authenticated in a CAB file, such as a DLL file, an access-related configuration file (.inf), and other ocx files (.ocx) In HTML, you can link to the object tag, load the DLL from JavaScript, and access the C function defined in the DLL. This operation is called wrapping.
In addition, in the case of JavaScript, it is difficult to use memory effectively because it takes a structure to convert unused memory into available memory resources through the garbage collector, while C does not free unused memory immediately, It is possible to secure sufficient available memory resources, thereby reducing the space complexity of the
Actually, according to the experiment result of the present inventor, in the case of the RSS parser (6) implemented in C language, 64 KB capacity could be processed within 7 seconds. This is faster than the case of using JavaScript, on average at least 1 second, which proves that the present invention is excellent for processing large amounts of data.
The
The JSON module 63 reads a document written in JSON code and extracts text data. JavaScript Object Notation (JSON) is a lightweight language for exchanging textual information between different devices via wired and wireless networks. JSON exchanges textual information of the above data types while communicating between the server and the client with a data type of Object, Array, Value, String, and Number. . Since the text information is structured by the JSON code and transmitted, the receiving side needs to extract the necessary information part from the received JSON code, and the JSON module 63 takes charge of the function. If you are sending XML code from your server, you may need to convert it to JSON code, since you will use the JSON module (63) instead of using an XML parser. Because JSON code is meant to represent structured information, it is possible to use it with XML to deliver structured data.
The JSON module 63 separates the received JSON code from the client, analyzes the elements of the separated JSON code, and processes the separated JSON code for each data type. For this, the JSON module 63 may include a code separation module (not shown) for separating JSON codes and an element storage module (not shown) for storing elements of the separated codes. If the XML code is transmitted from the server, conversion to JSON code by a code conversion module (not shown), which is a separate configuration, is required to use the JSON module 63. In this case, the code conversion module may exist in a configuration different from the JSON module 63. In all cases, the code separation module separates the JSON code. Because JSON code follows the format of JavaScript syntax, it is often used with JavaScript. In this case, the object type data part is the object type of JavaScript, and if it contains array information, it is an array type of JavaScript. If it contains information, it is a value type of JavaScript. If it contains string information, it is a string type of JavaScript. If it contains numeric information, it can be processed as a number type of JavaScript. If the data processing is performed, separation of the JSON code continues until the element is terminated, and the element is stored by the element storage module. The JSON language is convenient for exchanging objects between disparate systems independent of the programming language and platform, and is particularly convenient because it uses the JavaScript syntax and can be used directly by the eval command. In the case of converting to a data type of JavaScript as in the above embodiment, structured information can be received and processed.
In another embodiment of the present invention, an
In addition, an emulator 5 for checking whether an
As a result, the present invention provides an optimal framework for an IOT device such as a smart phone that must utilize limited memory and resources.
While the present invention has been described in connection with what is presently considered to be practical exemplary embodiments, it is to be understood that the invention is not limited to the disclosed embodiments, but, on the contrary, Should be interpreted as belonging to the scope.
1: Extended XML parser
2: Application
3: Library, API (3 ': Library, API)
4: Application Development Tools
5: Emulator
6: RSS parser
11: XML parsing module 12: SOAP / WSDL module 13: RSS module
110: code separation module 111: element storage module
112: Event processing module 113: Node creation module
61: RSS parsing module 62: SOAP module 63: JSON module
611: element separation module 612: element storage module
Claims (4)
A SOAP / WSDL module that interprets and processes XML code written in accordance with SOAP or WSDL;
Wherein the XML parsing module includes a code separating module for separating XML code and an element storing module for storing an element of the separated code,
And provides an environment for processing various XML codes on an IOT device.
Wherein the XML parsing module further comprises an event processing module for processing an event when an event occurs in each of the separated elements.
Wherein the XML parsing module further comprises a node creation module for creating and layering the stored elements as nodes.
Wherein the XML parsing module is implemented in C language to save time and space required for XML code processing.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
KR1020160005180A KR20170085711A (en) | 2016-01-15 | 2016-01-15 | An Extension-XML Parser for Wireless Device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
KR1020160005180A KR20170085711A (en) | 2016-01-15 | 2016-01-15 | An Extension-XML Parser for Wireless Device |
Publications (1)
Publication Number | Publication Date |
---|---|
KR20170085711A true KR20170085711A (en) | 2017-07-25 |
Family
ID=59426748
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
KR1020160005180A KR20170085711A (en) | 2016-01-15 | 2016-01-15 | An Extension-XML Parser for Wireless Device |
Country Status (1)
Country | Link |
---|---|
KR (1) | KR20170085711A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109525364A (en) * | 2018-10-30 | 2019-03-26 | 北京计算机技术及应用研究所 | A kind of telecommunication data protocol generalization based on XML describes method |
-
2016
- 2016-01-15 KR KR1020160005180A patent/KR20170085711A/en unknown
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109525364A (en) * | 2018-10-30 | 2019-03-26 | 北京计算机技术及应用研究所 | A kind of telecommunication data protocol generalization based on XML describes method |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN111600909B (en) | Data processing method, device, protocol conversion equipment and storage medium | |
US8458467B2 (en) | Method and apparatus for adaptive application message payload content transformation in a network infrastructure element | |
US7509422B2 (en) | System and method for locating web services | |
US20050262042A1 (en) | Generating a dynamic content creation program | |
US11003835B2 (en) | System and method to convert a webpage built on a legacy framework to a webpage compatible with a target framework | |
US20110264819A1 (en) | Binary data serialization system using machine dependant data alignement | |
CN102999337A (en) | Browser packaging system and method | |
US20070106998A1 (en) | Mobility system and method for messaging and inter-process communication | |
CN111831384A (en) | Language switching method and device, equipment and storage medium | |
CN105528369B (en) | Webpage code-transferring method, device and server | |
JP2005174120A (en) | Web service connection processing method, system, and program | |
CN107025124B (en) | System architecture for developing single-machine software by web page technology | |
CN111723314B (en) | Webpage display method and device, electronic equipment and computer readable storage medium | |
CN107222461B (en) | Communication processing method and device | |
CN115408169A (en) | Remote procedure calling method, device, equipment and readable storage medium | |
KR20120122959A (en) | Method and Device for Collecting Web Contents and Computer-readable Recording Medium for the same | |
KR20180083089A (en) | An Extension-XML Parser for Wireless Device | |
KR20170085711A (en) | An Extension-XML Parser for Wireless Device | |
JP5535184B2 (en) | Browser execution script conversion system and browser execution script conversion program | |
CN107643892B (en) | Interface processing method, device, storage medium and processor | |
CN102594587B (en) | Embedded WEB debugging and testing maintenance method and debugging and testing maintenance system | |
KR20150067987A (en) | An Extension-XML Parser for universal embeded device | |
KR20140017317A (en) | A rss parser for wireless device | |
CN103347038A (en) | Method of WEB server for processing http messages | |
KR20140017314A (en) | An extension-xml parser for wireless device |