You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@hivemind.apache.org by hi...@jakarta.apache.org on 2004/09/28 15:12:31 UTC

[jira] Created: (HIVEMIND-62) Add ability to parse extenal files using a Schema

Message:

  A new issue has been created in JIRA.

---------------------------------------------------------------------
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 6:11 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: hivemind-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: hivemind-dev-help@jakarta.apache.org


[jira] Commented: (HIVEMIND-62) Add ability to parse extenal files using a Schema

Posted by hi...@jakarta.apache.org.
The following comment has been added to this issue:

     Author: Knut Wannheden
    Created: Tue, 28 Sep 2004 7:51 AM
       Body:
Sounds interesting.  But I don't quite understand what purpose it would serve ;-)  Could you provide a use case?

I also don't quite understand how you can get a List of objects from a Resource.  After all an XML fragment validated by a schema just maps to one object and an XML document only has one root.  Would we need an artificial root element with the fragments to be converted to objects as children thereof?  Or would an additional XPath argument identify the node set in the XML file to process?
---------------------------------------------------------------------
View this comment:
  http://issues.apache.org/jira/browse/HIVEMIND-62?page=comments#action_53464

---------------------------------------------------------------------
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 7:51 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: hivemind-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: hivemind-dev-help@jakarta.apache.org


[jira] Commented: (HIVEMIND-62) Add ability to parse extenal files using a Schema

Posted by hi...@jakarta.apache.org.
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: hivemind-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: hivemind-dev-help@jakarta.apache.org