wood burning stoves*
The moose likes XML and Related Technologies and the fly likes Java data tags used with xml Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Engineering » XML and Related Technologies
Bookmark "Java data tags used with xml" Watch "Java data tags used with xml" New topic
Author

Java data tags used with xml

Michele Smith
Ranch Hand

Joined: Oct 27, 2010
Posts: 418
Hello I have a simple question for today.

I have a person in Canada that wants me to reformat a date to be in their format, going from 06/25/2012 to 25/6/2012.

I have looked through the servlet that holds these data tag references and this is a sample. I was wondering if you think it will work okay to simple reference this new data tag in the servlet or if I will need some other type of logic. The reason why I am asking is that I am working with another programmer who is versed in Visual Basic, as this program has some visual basic in it. The visual basic enables the "Add-ons" menu in Excel and Word to take the data tags from Java. I know, another crazy question, I am sorry






Thanks,
William P O'Sullivan
Ranch Hand

Joined: Mar 28, 2012
Posts: 859

Sorry, But what does this have to do with XML?

Are you being asked to convert XML elements or attributes from one date format to another?

WP
Michele Smith
Ranch Hand

Joined: Oct 27, 2010
Posts: 418
yes actually. There are a bunch of dates that our clients use and they format them in a word document and upload it to our server. the code listed in Java handles the object from VB. So to do this, it is a technique that is like 10-12 years old that pre-dates xml kinda, anyway, I just wondered if I write a method to parse the data as a string in VB, will the Java code or something similar be enough to make it available as a string to the xml document that is being served?

Thanks,
and sorry I know this is a weird question.
William P O'Sullivan
Ranch Hand

Joined: Mar 28, 2012
Posts: 859

So...

Client App prepares a word document
Server App receives a word document and uses some VB libraries to extract data
Server App needs to convert dates?

A sequence diagram would help.

If you have visibility on the Object/data in Java then it should be easy to convert internally.

It sounds like you want to convert first, retain the Word format, then unmarshall in Java land.

WP
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Java data tags used with xml