Unlock instant, AI-driven research and patent intelligence for your innovation.

Method for filtrating illegal label in marker language

A markup language and labeling technology, applied in the field of fault-tolerant analysis, can solve the problems of users' browsing inconvenience and lack of error handling mechanism, etc., and achieve the effect of enhancing browsing comfort, improving recovery ability, and improving robustness

Active Publication Date: 2009-06-17
ANYKA (GUANGZHOU) MICROELECTRONICS TECH CO LTD
View PDF0 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0005] The parsing of the markup language of ordinary browsers, especially embedded micro-browsers, generally lacks an error handling mechanism. When browsing non-standard web pages, the entire parsing process is often stopped due to a tag error, which causes inconvenience to users.

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
  • Method for filtrating illegal label in marker language

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0033] A method for filtering illegal tags in a markup language, specifically comprising the following steps:

[0034] 1. Record from the input data stream composed of tags: the position of the tag that is currently being parsed; the position of the last parsed tag; all start tags that have not yet been parsed to their end tags; and during the parsing process, Continuously update the above three record information;

[0035] 2. The first non-annotated and legal tag curTag read from the input data stream composed of tags is the input parameter of the recursive function,

[0036] 3. Store the name and attributes of curTag in a specific data structure,

[0037] 4. Read the next tag from the input data stream, which is recorded as nextTag. If the input data stream has ended, nextTag is empty.

[0038] 5. If the next tag read in nextTag is the start tag, then assign the value of nextTag to curTag, and return to step 2 to start a new recursion.

[0039] 6. If the nex...

Embodiment 2

[0054] If the input tag stream is:

[0055]

[0056]

[0057]

[0058] This wml page has a syntax error: tag missing closing tag .

[0059] Use the 10 steps in Example 1 to parse the page. When proceeding to step 8, it was found that although no The closing tag of the , but it is the opening tag that appeared before The end tag of , so the data flow is rolled back, so that the nextTag read next time is still , and this recursion ends. thus in Virtually inserts a , allowing parsing to continue successfully.

Embodiment 3

[0061] If the input tag stream is:

[0062]

[0063]

[0064]

[0065]

[0066]

[0067] This wml page has a syntax error: tag does not have a matching start tag.

[0068] Use the 10 steps in Example 1 to parse the page. When proceeding to step 9, it is found that it is not The closing tag of the and no preceding opening tag appears, so ignore this label and jump to step 4 to continue reading the next label , so that parsing can continue successfully.

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 a method for filtering an illegal label in making language, comprising: 1. recording a position of the label to be analyzed at present, a position of the former analyzed label, all initial labels without analyzing the closed labels from the input data flow composed of labels; and continuously updating the three recording information in the analyzing process; 2. reading a first non-noting and legal label from the input data flow composed of the labels, marking for curTag as an input parameter of a recursion function for performing the recursive analyzing process; 3. recognizing and filtering the illegal label by adopting an ignored or virtual fault tolerant mechanism and using the recorded information in the step 1, in the making language analyzing process based on recursion. The invention can not interrupt the analyzing process because of existing the error labels in the web page, thereby improving the robustness of the browser and reinforcing the browsing comfort level of the user.

Description

technical field [0001] The invention relates to a method for filtering illegal tags in markup languages ​​(such as HTML, XHTML, WML, etc.), which is suitable for fault-tolerant analysis of markup languages ​​based on embedded micro-browsers. Background technique [0002] The markup language is Standard Generalized Markup Language SGML (Standard Generalized MarkupLanguage), which is defined by the international standard for information management (ISO8879) released in 1986. The main purpose of SGML is to define the syntax of a markup language that uses tags to represent data. [0003] A tag consists of text enclosed between a less than sign (<) and a greater than sign (>), such as <tag>. The start tag (start tag) indicates the beginning of a specific area, such as <start>; The end tag (end tag) defines the end of a region, except that the less than sign is followed by a slash ( / ), which is basically the same as the start tag, eg. SGML also defines tag at...

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
Inventor 郭华廖建华庞恩林胡胜发
Owner ANYKA (GUANGZHOU) MICROELECTRONICS TECH CO LTD
Features
  • R&D
  • Intellectual Property
  • Life Sciences
  • Materials
  • Tech Scout
Why Patsnap Eureka
  • Unparalleled Data Quality
  • Higher Quality Content
  • 60% Fewer Hallucinations
Social media
Patsnap Eureka Blog
Learn More