Apparatus and method for parsing XML document by using external XML validator
AssigneeSamsung Electronics Co., Ltd.
InventorsJae-shin Lee, Kyoung-hoon Yi
Life of this patent
Estimating the term…
Abstract
Provided are an apparatus and a method for verifying the validity of an XML document when an XML application operates in an embedded device having a relatively low-performance processor and a small memory so as to prevent errors in the XML application due to wrong information. An XML parser using an external XML validator includes an XML receiver, an external XML validator caller, and a DOM/SAX tree generator. The external XML validator includes a schema/DTD receiver, an XML validator, and an XML validity result transmitter.
Claims27
A computer implemented XML parser for calling an external XML validator, said XML parser comprising:
- an XML receiver configured to receive an XML document from an XML application;
- an external XML validator caller configured to request the external XML validator to verify the validity of the XML document and to receive an answer to the request, wherein the external XML validator receives a schema or a DTD corresponding to the XML document in response to the request;
- and
- a DOM/SAX tree generator configured to generate, if said external XML validator caller receives an answer indicating that the XML document is valid, a DOM/SAX tree from the XML document and to transmit the DOM/SAX tree to the XML application.
An external computer implemented XML validator configured to verify the validity of an XML document in an XML parser, said external XML validator comprising:
- a schema/DTD receiver configured to verify, upon request, the validity of the XML document from the XML parser and to receive, in response to the request, a schema or a DTD corresponding to the XML document from a schema/DTD database;
- an XML validator configured to apply the XML document to the received schema or the DTD to verify the validity of the XML document;
- and
- an XML validity result transmitter configured to transmit the validity result of the XML document to the XML parser.
A computer implemented XML parser and external XML validator system configured to parse and to verify an XML document, said system comprising:
- an XML parser configured to receive the XML document from an XML application, to request an external XML validator to verify the validity of the XML document, to generate, upon receiving an answer that the XML document is valid, a DOM/SAX tree from the XML document, and to transmit the DOM/SAX tree to the XML application;
- and
- the external XML validator configured to receive a request for verifying the validity of the XML document from said XML parser, to receive, in response to the request, a schema or a DTD corresponding to the XML document from a schema/DTD database, to apply the XML document to the schema or the DTD, to verify the validity of the XML document, and to transmit the validity result of the XML document to said XML parser.
An XML document parsing method calling an external XML validator, the method comprising:
- (a) receiving an XML document from an XML application;
- (b) requesting verification of the validity of the XML document from the external XML validator, and in response to receiving the verification request the external validator receives at the external validator a schema or a DTD corresponding to the XML document, and receiving an answer to the request;
- and
- (c) generating, if the received answer to the request indicates that the XML document is valid, a DOM/SAX tree from the XML document, and transmitting the DOM/SAX tree to the XML application.
An XML document verification method calling an external XML validator, the method comprising:
- (a) receiving, at the external XML validator, upon requesting verification of the validity of an XML document, a schema or a DTD corresponding to the XML document;
- (b) applying the XML document to the schema or the DTD to verify the validity of the XML document;
- and
- (c) transmitting the validity result of the XML document.
An XML document parsing and verifying method comprising:
- (a) receiving an XML document at a first device and requesting a second device to verify the validity of the XML document;
- (b) receiving, at the second device, upon requesting verification of the validity of the XML document, a schema or a DTD corresponding to the XML document, applying the XML document to the schema or the DTD to verify the validity of the XML document, and transmitting an answer to the first device in answer to the request;
- and
- (c) receiving the answer to the request, and if the answer indicates that the XML document is valid, generating a DOM/SAX tree from the XML document, and transmitting the DOM/SAX tree.
A non-transitory data processor-readable recording medium incorporating instructions configured to perform an XML document parsing method calling an external XML validator, the method comprising:
- (a) receiving an XML document from an XML application;
- (b) requesting verification of the validity of the XML document from the external XML validator, and in response to receiving the verification request the external validator receives at the external validator a schema or a DTD corresponding to the XML document, and receiving an answer to the request;
- and
- (c) generating, if the received answer to the request indicates that the XML document is valid, a DOM/SAX tree from the XML document, and transmitting the DOM/SAX tree to the XML application.
A non-transitory data processor-readable recording medium incorporating instructions configured to perform an XML document verification method calling an external XML validator, the method comprising:
- (a) receiving, at the external XML validator, upon requesting verification of the validity of an XML document, a schema or a DTD corresponding to the XML document;
- (b) applying the XML document to the schema or the DTD to verify the validity of the XML document;
- and
- (c) transmitting the validity result of the XML document.
A non-transitory data processor-readable recording medium incorporating instructions configured to perform an XML document parsing and verifying method comprising:
- (a) receiving an XML document at a first device and requesting a second device to verify the validity of the XML document;
- (b) receiving, at the second device, upon requesting verification of the validity of the XML document, a schema or a DTD corresponding to the XML document, applying the XML document to the schema or the DTD to verify the validity of the XML document, and transmitting an answer to the first device in answer to the request;
- and
- (c) receiving the answer to the request, and if the answer indicates that the XML document is valid, generating a DOM/SAX tree from the XML document, and transmitting the DOM/SAX tree.
Dependencies are inferred from the claim text.