File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Java data tags used with xml

 
Michele Smith
Ranch Hand
Posts: 421
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 859
Chrome IBM DB2 Java
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 421
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 859
Chrome IBM DB2 Java
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic