Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / General / July 2006

Tip: Looking for answers? Try searching our database.

Make XML from text

Thread view: 
Eivind - 31 Jul 2006 10:09 GMT
Hi,

I'm in the process of making an application that should convert a
Word-document into XML. The Word files will use style names such as
Heading1, Heading2 etc. Since the application has to work on both Macs
and PCs I cannot use Word 2003 XML-features, and this Java is the way
to go. Now I'm a little uncertain on how to "attack" this problem. We
already have a Word-application that extract all information from a
Word-document into a text file. This file is tagged, but not in XML.
I'm planning to extract all text from Word, into a Java application
that makes the XML-file.

Any thoughs or suggestion on how to build an XML-file from this tagged
text file?

Eivind Løland-Andersen
Paul Davis - 31 Jul 2006 12:49 GMT
> Any thoughs or suggestion on how to build an XML-file from this tagged
> text file?
First you probably want to define some kind of schema for your XML
file. I would suggest going for the Open Document format.
http://www.oasis-open.org/committees/tc_home.php?wg_abbrev=office
This could help with future maintainability (also, they already have a
schema)

Just curious, what are you using to read the Word docs?
(I'm guessing POI or the libs in Open Office)


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.