The following comment has been added to this issue:
Author: Howard M. Lewis Ship
Created: Tue, 28 Sep 2004 9:01 AM
Body:
The list would typically contain a single object.
What I found on my current project was that I was parsing a bunch of secondary
XML files. These are kept seperate from the HiveMind module descriptors for
historical reasons, and because they change frequently.
However, I'd like to use <schema> (<element>, <attribute>, <rules>, etc.) to
parse them, rather than an ad-hoc parser.
I could envision an ExternalParser service, into which I pass a Schema instance
and a Resource instance, and it passes me back a List of what was parsed.
Also, say I had a structure like:
<filelist>
<file> ... </file>
<file> ... </file>
</filelist>
If my root object is just a container, I might just want to objects for the
<files>, as a list.
---------------------------------------------------------------------
View this comment:
http://issues.apache.org/jira/browse/HIVEMIND-62?page=comments#action_53468
---------------------------------------------------------------------
View the issue:
http://issues.apache.org/jira/browse/HIVEMIND-62
Here is an overview of the issue:
---------------------------------------------------------------------
Key: HIVEMIND-62
Summary: Add ability to parse extenal files using a Schema
Type: New Feature
Status: Unassigned
Priority: Minor
Project: HiveMind
Components:
framework
Assignee:
Reporter: Howard M. Lewis Ship
Created: Tue, 28 Sep 2004 6:11 AM
Updated: Tue, 28 Sep 2004 9:01 AM
Description:
It would be nice to be able to use a Schema, defined within HiveMind, to parse
an external file (a Resource) using either a validating or non-validating XML
parser.
This implies a number of changes; it will be necessary to have a lookup
mechanism for Schemas (that honors their visibility). A "schema:" object
provider, as well. A service (in the library) that can be "fed" a schema and a
Resource, and provide back a List of objects.
---------------------------------------------------------------------
JIRA INFORMATION:
This message is automatically generated by JIRA.
If you think it was sent incorrectly contact one of the administrators:
http://issues.apache.org/jira/secure/Administrators.jspa
If you want more information on JIRA, or have a bug to report see:
http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]