Мария Ковалева wrote:
Hi!

Hi there!

I need to make structure of xml like this and assign my value use Java.

- <#> <PresentationInfo>

   <Author>Romanov</Author>
   <Title>Сыночек - пирожочек</Title>
   <Description>About marsians taking control over Earth</Description>
   <PublicationDate>10-May-1996</PublicationDate>
   <Lang>ru</Lang>
   <PageCount>3</PageCount>

  </PresentationInfo>


How can I do it?


If I understand you correctly you need to generate that kind of information from OpenDocument presentation files.

I would suggest that you do look into the OpenDocument Spezifikation ( see http://xml.openoffice.org ) on where that information is located and than create an XSL-Tranformation ( see http://www.w3.org/TR/xslt ) for extracting and converting that information into the format you want to have.

Have a look at section 3 "Meta Data Elements" of the spec.
Most if not all what you want should be in the meta.xml substream of the OpenDocument package file.

To have a look at what is in such a meta.xml substream yourself rename a presentation to something.zip and unzip it.

You can use the odf4j java library of the opendocument toolkit project to apply an XSL-Tranformation to the meta.xml substream ( and any other substream ) of the presentation file. You can checkout odf4j from our source code repository via anonymous cvs by using the command:

cvs -d:pserver:[EMAIL PROTECTED]:/cvs co odftoolkit/odf4j

The odftoolkit project has it´s own mailing list at [EMAIL PROTECTED]


Kind regards,
Bernd Eilers

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to