# US 2004/0205591 A1 · Method and program for XML data conversion

> Agents: this data is available as JSON from the patentgrep API and MCP server — see https://patentgrep.com/llms.txt

- Number: US 2004/0205591 A1
- Document ID: US20040205591A1
- Status: Published application
- Kind: A1
- Application number: 10/224,086
- Filed: 2002-08-19
- Published: 2004-10-14
- Earliest claimed: 2001-10-30
- Assignees: Hitachi, Ltd.
- Inventors: Masaaki Nagao
- Web page: https://patentgrep.com/patent/US20040205591A1

## CPC

- G06F 16/88: {Mark-up to mark-up conversion (conversion for visualization in web browsing G06F16/9577)}
- G06F 40/143: Markup, e.g. Standard Generalized Markup Language [SGML] or Document Type Definition [DTD]
- G06F 40/154: Tree transformation for tree-structured or markup documents, e.g. XSLT, XSL-FO or stylesheets
- G06F 40/157: using dictionaries or tables
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

A method of processing a general-purpose XML document is executed to generate mapping data as a variable in a variable buffer when an input XML document is inputted through the effect of an input mapping function of a processing processor of a script language. When the output mapping function is started, the output XML document is supplied from the mapping data in the variable buffer.

## Claims

### Claim 1

A method for XML data conversion through the use of a computer, comprising the steps of:
extracting, by said computer, data based on a specific character from XML data being inputted; and
converting, by said computer, said extracted data into a variable to be processed by a script language on the basis of the predetermined rules.

### Claim 2

A method for XML data conversion through the use of a computer, comprising the steps of:
extracting, by said computer, data on a specific character from XML data being inputted; and
storing, by said computer, said extracted data as data composed of a variable name, a member name, an array index, and a value, on the basis of the predetermined rules.

### Claim 3 (depends on 1)

A method for XML data conversion as claimed in claim 1, wherein if the tags included in said XML data has a parentage, said rules includes a rule of connecting a character string of a tag name from a tag name of a route tag to that of a parent tag with a delimiter to obtain a variable name corresponding with a child tag.

### Claim 4 (depends on 1)

A method for XML data conversion as claimed in claim 1, wherein if the tags included in said XML data includes the same tag name, said rules includes a rule of specifying a character string in which an index is added to the same tag name.

### Claim 5 (depends on 1)

A method for XML data conversion as claimed in claim 1, wherein said specific character includes any one of <, >, ! and ?.

### Claim 6 (depends on 2)

A method for XML data conversion as claimed in claim 2, wherein said specific character includes any one of <, >, ! and ?.

### Claim 7

A program for converting XML data into data to be processed by a script language, comprising the steps of:
reading said XML data stored in a recording unit;
converting a variable name for a tag included in said XML data into a variable name to be used by a script language and storing said variable name; and
storing data of said tag included in said XML data as a variable value for said variable name.

### Claim 8

A program of generating XML data, comprising the steps of:
reading a variable name to be processed by a script language described according to the predetermined rules and a variable value for said variable name from a recording unit; and
generating said XML data based on said variable name and said variable value.

### Claim 9 (depends on 8)

A program as claimed in claim 8, wherein if the tags included in said generated XML data has a parentage, said rules includes a rule of specifying a character string composed of a tag name of a route tag and a tag name of a parent tag connected with each other by a delimiter as a variable name for a child tag.

### Claim 10 (depends on 8)

A program as claimed in claim 8, wherein if the tags included in said generated XML data has the same tag name, said rules includes a rule of specifying a character string in which an index is added to the same tag name as a variable name.

### Claim 11

A program of converting XML data into data to be processed by a script language, comprising the steps of:
reading said XML data stored in a recording unit;
determining if said XML data includes text information;
storing said text information as a member variable of a character string to be processed by said script language, based on the result of determining if said text information is included;
determining if said XML data is included in tag information;
storing a tag name included in said tag information as a member variable of a variable name to be processed by said script language, based on the result of determining if said tag information is included;
determining if comment information is included in said XML data;
storing said comment information as a member variable of a character string to be processed by said script language, based on the result of determining if said comment information is included;
determining if said XML data includes information on a processing instruction; and
storing information on said processing instruction as a member variable of a content to be processed by said script language.
