pa1a question

2 views
Skip to first unread message

mohamed

unread,
Feb 8, 2012, 7:22:20 PM2/8/12
to cs639_s12
Study the supplied example of recursive XML in $cs639/validate

what is the name of the recursive file ?

Jane H. DeBlois

unread,
Feb 8, 2012, 7:30:33 PM2/8/12
to cs63...@googlegroups.com
Hi Mohammed,
The README in $cs639/validate says the recursive examples are the
book*.xml examples.
Best regards,
Holly

mohamed

unread,
Feb 8, 2012, 7:34:41 PM2/8/12
to cs639_s12
Got it. Thanks.

mohamed

unread,
Feb 8, 2012, 7:43:48 PM2/8/12
to cs639_s12
Got still question about the same part.

Study the supplied example of recursive XML in $cs639/validate, and
write the DTD and schema for this one.

which one is this one ?

On Feb 8, 7:30 pm, "Jane H. DeBlois" <hdebl...@cs.umb.edu> wrote:

Jane H. DeBlois

unread,
Feb 8, 2012, 8:24:58 PM2/8/12
to cs63...@googlegroups.com
Hi Mohammed,
I haven't finished yet, so I'm not sure I have this right, but I see
three classes: DumpMethods (we're given it), DumpInnerClasses (we write it
and deliver it for pa1a) and DumpClass (we combine DumpMethods and
DumpInnerClasses into this recursive program and deliver it for pa1a). So
I believe we do the .dtd and schema for DumpClass. I think we have to
deliver it for pa1a, or DumpClass wouldn't run, right?
Best regards,
Holly

mohamed

unread,
Feb 8, 2012, 8:59:13 PM2/8/12
to cs639_s12
Holly,

I did DumpClass already and it runs fine. It is like javap utility.
Just reports the
parts of a java class. It has no use for dtd or scheme. I think the
dtd and scheme
we are supposed to write are for a general java class describing xml.
Hopefully Professor
will intervene and point us into the right direction.
--mohamed

Mark Tyrrell

unread,
Feb 8, 2012, 9:09:55 PM2/8/12
to cs63...@googlegroups.com
DumpClass produces the metadata about the class, but the second phase (pa1b) of the assignment is to produce that data in XML format. As I understand it, the dtd and schema are to describe that XML structure.

Jane H. DeBlois

unread,
Feb 9, 2012, 4:14:28 AM2/9/12
to cs63...@googlegroups.com
Hi Mark,
Are you using metadata to mean what you extract from something? So pa1a
is to get the metadata from a java class; and pa1b is to put
that metadata into the xml using the next metadata, .dtd and .xsd?
Thanks,
Holly

mohamed

unread,
Feb 9, 2012, 7:20:01 AM2/9/12
to cs639_s12
Thanks Mark. You clarified it well.

Betty O'Neil

unread,
Feb 9, 2012, 9:42:01 AM2/9/12
to cs63...@googlegroups.com
Metadata is just data that describes other data. So a DTD or an XML Schema
is metadata because it describes the structure of certain XML docs.

Yes, pa1a is just the first step: making sure you can extract some
of the needed data (method names, etc.) from the target Java classes
like Grid using reflection. pa1b further processes that data and
writes it out in XML. Separately, you will describe the structure of that
XML in your DTD and XML Schema.

Thanks for the earlier messages on this--I'm just repeating what
was already said, a lot later!--Betty O.

Reply all
Reply to author
Forward
0 new messages