Content area

Abstract

Tag trackers are markers that represent positions within the XML document. To reflect the structure of the XML document, tag trackers have one parent and zero-to-many children. Starting with a root tag tracker, all other tag trackers are connected via a parent-child relationship. When a startElement SAX event occurs, the active tag tracker compares the tag name to the tag names that were associated with each of its children tag trackers when they were created. When a match is found, the active tag tracker places itself on the stack and makes the matching child tag tracker the new active tag tracker.. Later, when the child has finished processing SAX events, the parent will be popped back off of the stack and reestablished as the active tag tracker.

Tag trackers work as a group in a tag tracker network to navigate an XML document. Programs that use a tag tracker network start by creating a root tag tracker node. Then they create child tag trackers and bind them to the root tag tracker for each possible XML tag that can occur in the root of the XML document. That process is repeated recursively for each child until all XML tags in which the program is interested have a tag tracker linked to the tag tracker network. That is continued for every level in the XML document that is to be mapped. In that way, a network is created.

Details

Key topics
Powered by Web of Science® Description for Powered by Web of Science
Identifier / keyword
Title
Mapping XML to Java, Part 2; Create a class library that uses the SAX API to map XML documents to Java objects
Publication title
JavaWorld; San Francisco
Pages
1
Number of pages
0
Publication year
2000
Publication date
Oct 6, 2000
Publisher
Foundry
Place of publication
San Francisco
Country of publication
United States
ISSN
10918906
Source type
Trade Journal
Language of publication
English
Document type
PERIODICAL
ProQuest document ID
237200569
Document URL
https://www.proquest.com/trade-journals/mapping-xml-java-part-2-create-class-library-that/docview/237200569/se-2?accountid=208611
Copyright
Copyright Web Publishing, Inc. Oct 6, 2000
Last updated
2024-08-25
Database
ProQuest One Academic