INFORMATION PROCESSING APPARATUS AND INFORMATION PROCESSING METHOD
First Claim
1. An information processing apparatus which parses an XML document and converts the XML document into tree structure data including an element and an attribute upon processing the XML document by an application, comprising:
- determination unit configured to, when an instruction from a user is input via the application, determine whether or not the instruction is an instruction including a change of a value of the attribute;
event generation unit configured to, when said determination unit determines that the instruction is not the instruction including the change of the value of the attribute, generate a first event which describes contents of the instruction, and for, when said determination unit determines that the instruction is the instruction including the change of the value of the attribute, acquiring type information of the value of the attribute and generate a second event which describes the type information and contents of the instruction; and
event processing unit configured to receive one of the first event and the second event generated by said event generation unit, and executing processing based on the event,wherein said event processing unit processes the instruction contents as a character string upon reception of the first event, and processes the instruction contents according to the type information upon reception of the second event.
1 Assignment
0 Petitions
Accused Products
Abstract
This invention has as its object to provide an information processing apparatus which can process an event generated upon changing an attribute value at high speed. This invention is directed to an information processing apparatus which parses an XML document and converts it into a DOM tree, and has the following characteristic, feature. Upon reception of an operation instruction by the user (step S312), it is checked if the instruction is an instruction including a change of an attribute value (step S313). If it is determined that the instruction is the instruction including the change of the attribute value, type information of the attribute value is acquired, and an event that describes the type information and the instruction contents is generated (steps S315-S318). An event handler processes the instruction contents in accordance with the type information (step S322).
21 Citations
6 Claims
-
1. An information processing apparatus which parses an XML document and converts the XML document into tree structure data including an element and an attribute upon processing the XML document by an application, comprising:
-
determination unit configured to, when an instruction from a user is input via the application, determine whether or not the instruction is an instruction including a change of a value of the attribute; event generation unit configured to, when said determination unit determines that the instruction is not the instruction including the change of the value of the attribute, generate a first event which describes contents of the instruction, and for, when said determination unit determines that the instruction is the instruction including the change of the value of the attribute, acquiring type information of the value of the attribute and generate a second event which describes the type information and contents of the instruction; and event processing unit configured to receive one of the first event and the second event generated by said event generation unit, and executing processing based on the event, wherein said event processing unit processes the instruction contents as a character string upon reception of the first event, and processes the instruction contents according to the type information upon reception of the second event. - View Dependent Claims (2, 3, 4)
-
-
5. An information processing method in an information processing apparatus which parses an XML document and converts the XML document into tree structure data including an element and an attribute upon processing the XML document by an application, comprising:
-
a determination step of determining, when an instruction from a user is input via the application, whether or not the instruction is an instruction including a change of a value of the attribute; an event generation step of generating, when it is determined in the determination step that the instruction is not the instruction including the change of the value of the attribute, a first event which describes contents of the instruction, and acquiring, when it is determined in the determination step that the instruction is not the instruction including the change of the value of the attribute, type information of the value of the attribute and generating a second event which describes the type information and contents of the instruction; and an event processing step of receiving one of the first event and the second event generated in the event generation step, and executing processing based on the event, wherein in the event processing step, the instruction contents are processed as a character string upon reception of the first event, and the instruction contents are processed according to the type information upon reception of the second event. - View Dependent Claims (6)
-
Specification