Method, system and equipment for converting XML (Extensible Markup Language) document into object and storage medium

By parsing XSD files and using the rule configurator and template engine to generate Java classes, combined with the JAXB's Unmarshaller interface for deserialization, the problems of Java classes not optimized, low conversion efficiency, and complex API in the existing technology are solved, and efficient and flexible conversion of XML documents to Java objects is achieved.

CN119849440AActive Publication Date: 2025-04-18TRAVELSKY TECHNOLOGY LIMITED
View PDF 4 Cites 0 Cited by

Patent Information

Application Number
CN202411874134.6
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-12-18
Publication Date
2025-04-18
Estimated Expiration
2044-12-18

AI Technical Summary

Technical Problem

The Java classes generated by existing JAXB are not optimized or cannot meet the needs of developers, and there are inefficiency, poor flexibility, and complex integration in the conversion process from XSD files to Java objects. The JAXB API is too complex when dealing with large or complex XML documents, which increases labor costs.

Method used

By obtaining the XSD file of the XML document for parsing, using the rule configurator and template engine to generate Java classes, and configuring JAXB context instances, using JAXB's Unmarshaller interface for deserialization operations to obtain Java objects.

Benefits of technology

It significantly improves the conversion efficiency from XSD files to Java objects, reduces the workload and error rate of manual encoding, supports user-defined annotations and rule configuration, and the generated Java classes are directly compatible with the JAXB framework, simplifying the serialization and deserialization integration between XML documents and Java objects.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119849440A_ABST
    Figure CN119849440A_ABST
Patent Text Reader

Abstract

The invention relates to / belongs to the technical field of data processing, and particularly relates to a method, a system and equipment for converting an XML document into an object and a storage medium. The method aims at solving the problems that in the prior art, Java classes generated by JAXB are not optimized or cannot meet the requirements of developers; and processing of large or complex XML documents is too complex. Comprising the steps that an XSD file of an XML document is obtained and analyzed, and XSD analysis data is obtained; configuring corresponding rule data by using a rule configurator; the XSD analysis data and the rule data are added into a template engine, code filling is carried out, and a JAVA class is generated; configuring a JAXB context instance; the method comprises the following steps of: creating a Unmarshaller instance by utilizing a Unmarshaller interface of JAXB, and carrying out deserialization operation on an XML (Extensible Markup Language) document on the basis of the Unmarshaller instance, so as to obtain a Java object.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the technical field of data processing, and in particular relates to a method, system, device and storage medium for converting XML documents into objects. Background Art

[0002] In the civil aviation industry, with the development of e-commerce, airlines, airports, travel agencies and other different participants need to exchange a lot of information, including flight information, price information, reservation information, etc. XML is a relatively powerful semi-structured data with a standardized format, so XML documents are used to store and transmit data. In order to ensure that the structure and content of XML documents meet the predetermined specifications, XML Schema Definition (XSD) is usually used to define the structure of XML documents. However, XSD files are not easy to read and understand, so XSD files need to be converted.

[0003] In the prior art, Java Architecture for XML Binding (JAXB) is used to achieve the above requirements, converting XSD files into Java classes. And according to the Java classes, XML documents are converted into Java objects. In addition, JAXB also supports serializing Java objects into XML documents.

[0004] The prior art has the following technical problems:

[0005] 1. The existing JAXB-generated Java classes are not optimized or do not meet the developer's needs.

[0006] 2. The conversion process from XSD files to Java objects is inefficient, inflexible, and complex to integrate.

[0007] 3. When processing large or complex XML documents, JAXB's API is too complicated for developers and requires developers to have certain experience, resulting in increased labor costs. Summary of the invention

[0008] The present invention provides a method, system, device and storage medium for converting XML documents into objects, aiming to solve the technical problems existing in the above-mentioned prior art that the Java class generated by JAXB is not optimized or cannot meet the developer's needs; the conversion process from XSD files to Java objects is inefficient, inflexible and complex to integrate; and when processing large or complex XML documents, the JAXB API is too complicated for developers and requires developers to have certain experience.

[0009] The technical solution of the present invention to solve the above technical problem is as follows: A method for converting an XML document into an object, comprising:

[0010] Obtain an XSD file of an XML document, parse the XSD file, and obtain XSD parsed data;

[0011] Based on the XSD parsed data, corresponding rule data is configured using a rule configurator;

[0012] Add the XSD parsed data and the rule data into a template engine, use the template engine to perform code filling, and generate a JAVA class;

[0013] Use the Java class as a JAXB binding class and configure a JAXB context instance;

[0014] Based on the JAXB context instance, an Unmarshaller instance is created using the Unmarshaller interface of JAXB, and based on the Unmarshaller instance, a deserialization operation is performed on the XML document to obtain a Java object.

[0015] Furthermore, the above also includes:

[0016] Based on the JAXB context instance, create a Marshaller instance using the JAXB Marshaller interface;

[0017] Based on the Marshaller instance, the Java object is serialized to obtain an XML document.

[0018] Furthermore, the parsed data mentioned above includes: elements, attributes and data types.

[0019] Furthermore, the rule data mentioned above includes: the use of annotations and the mapping of specific data types.

[0020] Furthermore, the above configuration of the JAXB context instance also includes using the created JAXB context instance.

[0021] Furthermore, during the deserialization operation on the XML document, a lazy loading method is used to manage the loading of data.

[0022] Furthermore, during the deserialization operation on the XML document, a streaming processing method is used to read the XML document.

[0023] In a second aspect, in order to solve the above technical problem, the present invention further provides a system for converting XML documents into objects, comprising:

[0024] A data parsing module is used to obtain an XSD file of an XML document, parse the XSD file, and obtain XSD parsing data;

[0025] A rule configuration module, used for parsing data based on the XSD and configuring corresponding rule data using a rule configurator;

[0026] A template engine module, used to add the XSD parsed data and the rule data into a template engine, perform code filling using the template engine, and generate a JAVA class;

[0027] A JAXB configuration module, used to use the Java class as a JAXB binding class and configure a JAXB context instance;

[0028] The deserialization module is used to create an Unmarshaller instance based on the JAXB context instance and using the Unmarshaller interface of JAXB, and to deserialize the XML document based on the Unmarshaller instance to obtain a Java object.

[0029] In the third aspect, in order to solve the above-mentioned technical problem, the present invention also provides an electronic device, which includes a memory, a processor, and a computer program stored in the memory and executable on the processor, and when the processor executes the computer program, the method of converting an XML document into an object of the present application is implemented.

[0030] In a fourth aspect, in order to solve the above-mentioned technical problem, the present invention further provides a computer-readable storage medium, on which a computer program is stored, and when the computer program is executed by a processor, the method of converting an XML document into an object of the present application is implemented.

[0031] Compared with the prior art, the present invention has the following advantages:

[0032] 1. The present invention significantly improves the conversion efficiency from XSD files to Java objects by automating the parsing and code generation process of XSD files, and reduces the workload and error rate of manual coding.

[0033] 2. The present invention supports user-defined annotations and rule configuration, so that the generated Java classes can better meet the needs of specific business scenarios, improving the flexibility and customizability of the code.

[0034] 3. The Java class generated by the present invention is directly compatible with the JAXB framework, which simplifies the integration process of serialization and deserialization between XML documents and Java objects, and reduces the technical threshold and development cost.

[0035] 4. The present invention generates Java classes based on the strict definition of XSD files, thereby ensuring the structural consistency between XML documents and Java objects and improving the reliability and accuracy of data processing.

[0036] 5. With the update of XSD files, the present invention can quickly update Java classes by re-running the code generation process, thereby reducing the complexity and cost of system maintenance.

[0037] Other features and advantages of the present invention will be described in the following description, and partly become apparent from the description, or understood by practicing the present invention. The purpose and other advantages of the present invention can be realized and obtained by the structures pointed out in the description, claims and drawings. BRIEF DESCRIPTION OF THE DRAWINGS

[0038] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0039] Figure 1 A schematic flow chart of a method for converting an XML document into an object according to an embodiment of the present invention is shown;

[0040] Figure 2 A schematic diagram of a process flow of generating a Java class according to an embodiment of the present invention is shown;

[0041] Figure 3 A schematic diagram of the process of deserializing XML data into Java objects according to an embodiment of the present invention is shown;

[0042] Figure 4 A schematic diagram of a process of serializing a Java object into XML data according to an embodiment of the present invention is shown;

[0043] Figure 5 A schematic diagram showing the structure of a system for converting XML documents into objects according to an embodiment of the present invention is shown;

[0044] Figure 6 A schematic structural diagram of an electronic device according to an embodiment of the present invention is shown. DETAILED DESCRIPTION

[0045] In order to make the purpose, technical solution and advantages of the embodiments of the present invention clearer, the technical solution in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0046] Figure 1 A flow chart of a method for converting an XML document into an object according to an embodiment of the present invention is shown. Figure 1-Figure 3 As shown, a method for converting an XML document into an object according to an embodiment of the present invention includes:

[0047] Obtain an XSD file of an XML document, parse the XSD file, and obtain XSD parsed data;

[0048] Based on the XSD parsed data, corresponding rule data is configured using a rule configurator;

[0049] Add the XSD parsed data and the rule data into a template engine, use the template engine to perform code filling, and generate a JAVA class;

[0050] Use the Java class as a JAXB binding class and configure a JAXB context instance;

[0051] Based on the JAXB context instance, an Unmarshaller instance is created using the Unmarshaller interface of JAXB, and based on the Unmarshaller instance, a deserialization operation is performed on the XML document to obtain a Java object.

[0052] Optional, such as Figure 4 As shown, it also includes:

[0053] Based on the JAXB context instance, create a Marshaller instance using the JAXB Marshaller interface;

[0054] Based on the Marshaller instance, the Java object is serialized to obtain an XML document.

[0055] Optionally, the parsed data includes: elements, attributes and data types.

[0056] In this embodiment, an XSD parser is used to identify complex types (complexType), simple types (simpleType), elements (element) and their attributes (attribute), and also includes combination modes such as sequence (sequence), choice (choice), and all (all).

[0057] Optionally, the rule data includes: usage of annotations and mapping of specific data types.

[0058] In this embodiment, additional metadata information is set for the generated Java class through the use of custom annotations, mapping of specific data types, etc.

[0059] Optionally, the code filling includes: class definition, fields, getter / setter methods and JAXB annotations.

[0060] Optionally, also include:

[0061] Save the JAVA class to the specified directory, manage file naming, and generate a Jar package.

[0062] Optionally, configuring a JAXB context instance also includes using an already created JAXB context instance.

[0063] In this embodiment, since creating a JAXB context instance is a relatively expensive operation, the same JAXBContext instance can be managed and shared through a singleton pattern or a dependency injection framework to avoid recreating it for each operation.

[0064] Optionally, during the deserialization operation on the XML document, a lazy loading method is used to manage the loading of data.

[0065] In this embodiment, when the XML document is very large or contains a large number of associated objects, loading all data into the memory at once may result in high memory consumption. This embodiment uses a lazy loading method to load a certain attribute or associated object only when it is first accessed, thereby reducing the memory usage during the initial parsing. In addition, through lazy loading, the basic object structure can be quickly constructed when the application starts, and the loading of detailed information can be postponed until it is actually needed, which can speed up the startup of the application.

[0066] Optionally, during the deserialization operation on the XML document, a streaming processing method is used to read the XML document.

[0067] In this embodiment, when processing very large XML documents, loading all the content into memory at once will result in high memory consumption. Therefore, this embodiment reads the XML document element by element through streaming processing, and only maps the current element to a Java object when needed, thereby greatly reducing memory usage. And through streaming processing, the elements of interest can be processed immediately when they are encountered, without waiting for the entire document to be parsed. This can speed up the retrieval process of specific information.

[0068] In this embodiment, a Maven project is used to parse the XSD file and generate Java code, and then the code is packaged into a JAR file and pushed to the warehouse. The following is a detailed description of each step:

[0069] 1. Create a new Maven project:

[0070] Open your IDE and create a new Maven project.

[0071] Configure the project's dependencies and plugins in pom.xml, making sure to include the plugin for generating Java classes from XSD. <packagename>and other configuration items to set custom annotations, package names, etc.

[0072] 2. Ensure that the XSD file path is correct and meets the document specification requirements

[0073] Place the XSD files in the specified directory and make sure they follow the XML Schema definition standard.

[0074] Verify that the XSD file can be parsed correctly. You can test it through command line tools or other methods.

[0075] 3. Configure custom adapters as needed

[0076] Determine whether the XSD file needs to be configured with a custom adapter. If necessary, configure it. The adapter mainly processes and converts certain special types of data based on business to facilitate integration with business logic. The adapter needs to be customized and developed based on actual business.

[0077] 4. Execute Maven compilation instructions

[0078] Execute the mvn clean install command to clean up old build files, download all necessary dependencies, compile the source code, run any unit tests, and finally package the compiled code into a JAR package and push it to the repository.

[0079] After obtaining the Java class, use JAXB to serialize or deserialize it. The specific steps include:

[0080] 1. Configure the JAXB context

[0081] The JAXB configurator configures the JAXB context instance based on the generated Java class files;

[0082] 2. Serialize Java objects into XML documents

[0083] Use the serializer to call the Marshaller interface and create a Marshaller object. Then call the marshal method, passing in the Java object to be serialized and the output destination;

[0084] 3. Deserialize XML documents into Java objects

[0085] Use the deserializer to call the Unmarshaller interface. Create an Unmarshaller object, then call the unmarshal method, pass in the XML document, and get the returned Java object.

[0086] 4. Embed business logic

[0087] Embed the serialization / deserialization process into the business logic to realize data exchange, storage or processing. That is, introduce the generated Jar file into the business logic and call the methods in step 2 and step 3 to realize serialization / deserialization.

[0088] In this embodiment, since it is time-consuming to create a JAXB context, the core function of the findContext method uses caching technology to cache the created JAXB context, thereby avoiding a large number of repeated creations of JAXB contexts and greatly improving the efficiency of serialization / deserialization.

[0089] Based on Figure 1 Based on the same principle as the method shown in , the embodiment of the present invention also provides a system for converting XML documents into objects, such as Figure 5 As shown in, including:

[0090] A data parsing module is used to obtain an XSD file of an XML document, parse the XSD file, and obtain XSD parsing data;

[0091] A rule configuration module, used for parsing data based on the XSD and configuring corresponding rule data using a rule configurator;

[0092] A template engine module, used to add the XSD parsed data and the rule data into a template engine, perform code filling using the template engine, and generate a JAVA class;

[0093] A JAXB configuration module, used to use the Java class as a JAXB binding class and configure a JAXB context instance;

[0094] The deserialization module is used to create an Unmarshaller instance based on the JAXB context instance and using the Unmarshaller interface of JAXB, and to deserialize the XML document based on the Unmarshaller instance to obtain a Java object.

[0095] The system for converting XML documents into objects in the embodiment of the present invention can execute the method for converting XML documents into objects provided in the embodiment of the present invention, and the implementation principle is similar. The actions performed by each module and unit in the system for converting XML documents into objects in each embodiment of the present invention correspond to the steps in the method for converting XML documents into objects in each embodiment of the present invention. For the detailed functional description of each module of the system for converting XML documents into objects, please refer to the description in the corresponding method for converting XML documents into objects shown in the previous text, which will not be repeated here.

[0096] Among them, the system for converting the XML document into an object can be a computer program (including program code) running in a computer device, for example, the system for converting the XML document into an object is an application software; the application software can be used to execute the corresponding steps in the method provided in the embodiment of the present invention.

[0097] In some embodiments, the system for converting XML documents into objects provided by the embodiments of the present invention can be implemented in a combination of software and hardware. As an example, the system for converting XML documents into objects provided by the embodiments of the present invention can be a processor in the form of a hardware decoding processor, which is programmed to execute the method for converting XML documents into objects provided by the embodiments of the present invention. For example, the processor in the form of a hardware decoding processor can adopt one or more application-specific integrated circuits (ASICs), DSPs, programmable logic devices (PLDs), complex programmable logic devices (CPLDs), field-programmable gate arrays (FPGAs) or other electronic components.

[0098] The modules involved in the embodiments of the present invention may be implemented by software or hardware, wherein the name of a module does not limit the module itself in some cases.

[0099] Based on the same principle as the method shown in the embodiments of the present invention, an electronic device is also provided in the embodiments of the present invention, which may include but is not limited to: a processor and a memory; the memory is used to store a computer program; the processor is used to execute the method shown in any embodiment of the present invention by calling the computer program.

[0100] In an alternative embodiment, an electronic device is provided, such as Figure 6 As shown, Figure 6 The electronic device shown includes: a processor and a memory. The processor and the memory are connected, such as through a bus. Optionally, the electronic device may also include a transceiver, which may be used for data exchange between the electronic device and other electronic devices, such as data transmission and / or data reception. It should be noted that in actual applications, the transceiver is not limited to one, and the structure of the electronic device does not constitute a limitation on the embodiments of the present invention.

[0101] The processor may be a CPU (Central Processing Unit), a general-purpose processor, a DSP (Digital Signal Processor), an ASIC (Application Specific Integrated Circuit), an FPGA (Field Programmable Gate Array) or other programmable logic devices, transistor logic devices, hardware components or any combination thereof. It may implement or execute various exemplary logic blocks, modules and circuits described in conjunction with the disclosure of the present invention. The processor may also be a combination that implements computing functions, such as a combination of one or more microprocessors, a combination of a DSP and a microprocessor, etc.

[0102] The bus may include a path to transmit information between the above components. The bus may be a PCI (Peripheral Component Interconnect) bus or an EISA (Extended Industry Standard Architecture) bus, etc. The bus may be divided into an address bus, a data bus, a control bus, etc. For ease of representation, Figure 6 Only one thick line is used in the diagram, but this does not mean that there is only one bus or only one type of bus.

[0103] The memory can be ROM (Read Only Memory) or other types of static storage devices that can store static information and instructions, RAM (Random Access Memory) or other types of dynamic storage devices that can store information and instructions, or it can be EEPROM (Electrically Erasable Programmable Read Only Memory), CD-ROM (Compact Disc Read Only Memory) or other optical disk storage, optical disk storage (including compressed optical disk, laser disc, optical disk, digital versatile disc, Blu-ray disc, etc.), magnetic disk storage medium or other magnetic storage device, or any other medium that can be used to carry or store the desired program code in the form of instructions or data structures and can be accessed by a computer, but is not limited to this.

[0104] The memory is used to store the application code (computer program) for executing the solution of the present invention, and the execution is controlled by the processor. The processor is used to execute the application code stored in the memory to implement the content shown in the above method embodiment.

[0105] The electronic device may also be a terminal device. Figure 6 The electronic device shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present invention.

[0106] An embodiment of the present invention provides a computer-readable storage medium, on which a computer program is stored. When the computer-readable storage medium is run on a computer, the computer can execute the corresponding contents of the aforementioned method embodiment.

[0107] According to another aspect of the present invention, a computer program product or a computer program is also provided, the computer program product or the computer program comprising computer instructions, the computer instructions being stored in a computer-readable storage medium. A processor of a computer device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions, so that the computer device executes the methods provided in the implementation modes of the above-mentioned various embodiments.

[0108] Computer program code for performing the operations of the present invention may be written in one or more programming languages, or a combination thereof, including object-oriented programming languages, such as Java, Smalltalk, C++, and conventional procedural programming languages, such as "C" or similar programming languages. The program code may be executed entirely on the user's computer, partially on the user's computer, as a separate software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., through the Internet using an Internet service provider).

[0109] It should be understood that the flow charts and block diagrams in the accompanying drawings illustrate the possible implementation architecture, functions and operations of the method and computer program product according to various embodiments of the present invention. In this regard, each box in the flow chart or block diagram can represent a module, a program segment, or a part of a code, and the module, the program segment, or a part of the code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the box can also occur in a sequence different from that marked in the accompanying drawings. For example, two boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram and / or flow chart, and the combination of the boxes in the block diagram and / or flow chart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.

[0110] The computer-readable storage medium provided by the embodiment of the present invention may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination thereof. More specific examples of computer-readable storage media may include, but are not limited to, an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination thereof. In the present invention, a computer-readable storage medium may be any tangible medium containing or storing a program that may be used by or in conjunction with an instruction execution system, device, or device.

[0111] The computer-readable storage medium carries one or more programs. When the one or more programs are executed by the electronic device, the electronic device executes the method shown in the above embodiment.

[0112] The above description is only a preferred embodiment of the present invention and an explanation of the technical principles used. Those skilled in the art should understand that the disclosure scope involved in the present invention is not limited to the technical solution formed by a specific combination of the above technical features, but should also cover other technical solutions formed by any combination of the above technical features or their equivalent features without departing from the above disclosed concept. For example, the above features are replaced with the technical features with similar functions disclosed in the present invention (but not limited to) by each other.< / packagename>

Claims

1. A method for converting an XML document into an object, characterized in that: The method comprises: Obtain an XSD file of an XML document, parse the XSD file, and obtain XSD parsed data; Based on the XSD parsed data, corresponding rule data is configured using a rule configurator; Add the XSD parsed data and the rule data into a template engine, use the template engine to perform code filling, and generate a JAVA class; Use the Java class as a JAXB binding class and configure a JAXB context instance; Based on the JAXB context instance, an Unmarshaller instance is created using the Unmarshaller interface of JAXB, and based on the Unmarshaller instance, a deserialization operation is performed on the XML document to obtain a Java object.

2. A method for converting an XML document into an object according to claim 1, characterized in that: Also includes: Based on the JAXB context instance, create a Marshaller instance using the JAXB Marshaler interface; Based on the Marshaller instance, the Java object is serialized to obtain an XML document.

3. A method for converting an XML document into an object according to claim 1, characterized in that: The parsed data includes: elements, attributes and data types.

4. A method for converting an XML document into an object according to claim 1, characterized in that: The rule data includes: usage of annotations and mapping of specific data types.

5. The method for converting an XML document into an object according to claim 1, characterized in that: Configuring a JAXB context instance also includes using the created JAXB context instance.

6. A method for converting an XML document into an object according to claim 1, characterized in that: During the deserialization operation on the XML document, a lazy loading method is used to manage the loading of data.

7. A method for converting an XML document into an object according to claim 1, characterized in that: During the deserialization operation on the XML document, the XML document is read using a streaming method.

8. A system for converting XML documents into objects, characterized in that: include: A data parsing module is used to obtain an XSD file of an XML document, parse the XSD file, and obtain XSD parsing data; A rule configuration module, used for parsing data based on the XSD and configuring corresponding rule data using a rule configurator; A template engine module, used to add the XSD parsed data and the rule data into a template engine, perform code filling using the template engine, and generate a JAVA class; A JAXB configuration module, used to use the Java class as a JAXB binding class and configure a JAXB context instance; The deserialization module is used to create an Unmarshaller instance based on the JAXB context instance and using the Unmarshaller interface of JAXB, and to deserialize the XML document based on the Unmarshaller instance to obtain a Java object.

9. An electronic device, characterized in that: The method comprises a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the method according to any one of claims 1 to 7 when executing the computer program.

10. A computer storage medium, characterized in that: The computer storage medium stores a computer program, and when the computer program is executed by a processor, the method according to any one of claims 1 to 7 is implemented.

Citation Information

Patent Citations

  • Method and device for XML document analysis

    CN101221556A

  • Method for converting XML Schema document into Java codes

    CN108519964A

  • Document analysis method and device, equipment and medium

    CN115828892A

  • Systems and methods for processing extensible markup language data during runtime

    US20170262261A1