The moose likes XML and Related Technologies and the fly likes semi-easy question Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » XML and Related Technologies
Bookmark "semi-easy question" Watch "semi-easy question" New topic

semi-easy question

Stephen Huey
Ranch Hand

Joined: Jul 15, 2003
Posts: 618
This will seem really simple to most of you--I just want to make sure I'm doing this right. I'm sending customers a simple XML notification of shipments, and currently it looks like this:

I would like to give customers the ability to pull their shipment history for a particular date or date range, and if I group all the shipments for a given date within that date, I'm wondering how you specify the date's value--is it like this:

Something seems a little bit wrong with the date and datevalue...
Balaji Loganathan
author and deputy

Joined: Jul 13, 2001
Posts: 3150
Something like this ??


does it make sense ??

Spritle Software Blogs
Stephen Huey
Ranch Hand

Joined: Jul 15, 2003
Posts: 618
Yeah, I guess that should be ok. It's just that I've read that sometimes you might not want to have data in an attribute (like having the date value be an attribute of the date tag), so I wasn't sure how to handle it otherwise. But if that's pretty typical, I guess I could use it. I suppose another way I could do it would be like this:
I agree. Here's the link:
subject: semi-easy question
It's not a secret anymore!