- Patent Number:
8,112,704
- Appl. No:
11/789385
- Application Filed:
April 23, 2007
- نبذة مختصرة :
Systems and methods for loading XML documents on demand are described. The system provides a Wrapper class for the XML Document class and the Element class. A user application then utilizes the Wrapper class in the same way that the Element class and Document class would be used to access any element in the XML Document. The Wrapper class loads external components as required. The external component retrieval is completely transparent to the user application and the user application is able to access the entire XML document as if it were completely loaded into a DOM object in memory. Accordingly, each element is accessible in a random manner. In one configuration, the XML document components or external components are stored in a database in a BLOB field as a Digital Document. The system uses external components to efficiently use resources as compared to systems using Xlink and external entities.
- Inventors:
Clarke, William D. (Florence, MA, US); Zhan, Tao (Belchertown, MA, US)
- Assignees:
Pitney Bowes Inc. (Stamford, CT, US)
- Claim:
1. A method for creating a virtual memory model compatible digital document representation of an XML document comprising: receiving an XML document having external component attributes; obtaining a unique identifier for each external attribute; and producing a digital document having a root element and at least one child element having an attribute identifying a unique identifier to a child component as a one-way link, wherein the root element is a memory resident portion and the at least one external portion includes an external portion that is loaded into memory when used; producing at least one wrapper class in the digital document, and wherein at least one of the external attributes includes an external link tag that includes a database key.
- Claim:
2. A method for loading a virtual DOM model of an XML document into memory comprising: receiving a virtual DOM compatible digital document having a parent element and at least one child element including a child component attribute that is associated with an external portion of the XML document; loading the virtual DOM compatible digital document into memory; receiving a request for the child component; in response to the request for the child component, retrieving the child component and loading the child component into memory using the child component attribute to obtain the child component, wherein the parent element is a memory resident portion and the at least one external portion includes an external portion that is loaded into memory when used, wherein, the digital document includes at least one wrapper class, and the child component attribute includes an external link tag that includes a database key.
- Claim:
3. The method of claim 1 further comprising: storing the external portion in a database.
- Claim:
4. The method of claim 1 wherein: the database includes a relational database.
- Claim:
5. The method of claim 1 wherein: the attribute includes an external link tag that includes a database key.
- Claim:
6. The method of claim 5 wherein: the database key is unique for a particular computing system.
- Claim:
7. The method of claim 1 further comprising: producing a wrapper XMLDocument class in the digital document; and producing a wrapper XMLElement class in the digital document.
- Claim:
8. The method of claim 2 further comprising: maintaining the relationship between the parent element and the child element after the child element is loaded into memory.
- Claim:
9. The method of claim 2 further comprising: retrieving the child component from an external database.
- Claim:
10. The method of claim 9 wherein: the database includes a relational database.
- Claim:
11. The method of claim 2 wherein: the database key is unique for a particular computing system.
- Claim:
12. The method of claim 2 wherein: the digital document includes a wrapper XMLDocument class; and the digital document includes a wrapper XMLElement class.
- Claim:
13. The method of claim 9 wherein: the database includes a compressed archive file.
- Claim:
14. The method of claim 2 further comprising: determining if the child component is seldom accessed.
- Claim:
15. The method of claim 2 further comprising: determining if the child component is needed in memory; and if the child component is not needed in memory, performing a garbage collection operation to remove the child component from memory.
- Claim:
16. The method of claim 15 further comprising: performing the garbage collection operation if the child component is seldom accessed.
- Claim:
17. The method of claim 15 further comprising: dynamically determining if the child component is needed.
- Claim:
18. A computing system for loading a virtual DOM model of an XML document into memory comprising: a data processor; a memory device connected to the processor; the memory device storing a logic program; and the data processor operative with the logic program to causing the computing system to load a virtual DOM model of an XML document into the memory device by performing the following steps: receiving a virtual DOM compatible digital document having at least one child element including a child component attribute that is associated with an external portion of the XML document located on a storage device; loading the virtual DOM compatible digital document into the memory; receiving a request for the child component; then loading the child component into the memory using the child component attribute to obtain the child component from the storage device, wherein, the digital document includes at least one wrapper class, and the child component attribute includes an external link tag that includes a database key.
- Claim:
19. The system of claim 18 further comprising: the data processor operative with the logic program to causing the computing system to load a virtual DOM model of an XML document into the memory by performing the following steps: determining if the child component is needed in the memory; and if the child component is not needed in the memory, performing a garbage collection operation to remove the child component from the memory.
- Current U.S. Class:
715/234
- Patent References Cited:
2002/0087596 July 2002 Lewontin
- Other References:
Cimprich, Inside Sblotron: Virtual XML Documents, xml..com**, Mar. 13, 2002, pp. 1-2. cited by examiner
Wes Biggs et al., Simplify Programming with JDOM, May 1, 2001, IBM, pp. 1-11. cited by examiner
Jason Hunter et al., Easy Java/XML integration with JDOM, part 1, May 18, 2000, pp. 1-12. cited by examiner
Jason Hunter et al., Easy Java/XML integration with JDOM, part 2, Jul. 28, 2000, pp. 1-14. cited by examiner
- Assistant Examiner:
Patel, Manglesh
- Primary Examiner:
Hong, Stephen
- Attorney, Agent or Firm:
Macdonald, George M.
Malandra, Jr., Charles R.
Shapiro, Steven J.
- الرقم المعرف:
edspgr.08112704
No Comments.