xml-to-word document

Hi all,
I would like to perform xml-to-word conversion. Is there a perl module
that can perform it?
If not, maybe there are other ways to do it ..
Thanks in advance, Moti.
Moti [ Sa, 19 Januar 2008 22:16 ] [ ID #1912230 ]

Re: xml-to-word document

I don't have an exact knowledge about XML, but I can say that XML is
much more than a text file format. You can describe/store things with
it that you cant describe/store with a word document. Thus it is not
possible to convert from XML in general to a word document.
Florian Kaufmann [ So, 20 Januar 2008 00:33 ] [ ID #1912748 ]

Re: xml-to-word document

On Sat, 19 Jan 2008 13:16:15 -0800, Moti wrote:

> Hi all,
> I would like to perform xml-to-word conversion. Is there a perl module
> that can perform it?
> If not, maybe there are other ways to do it .. Thanks in advance, Moti.

Read Florian response first. That said, convert to html, word generally
reads that fine. Store in it a file with a .doc extension and it will
even be opened by Word by default on Windows.

M4
Martijn Lievaart [ So, 20 Januar 2008 00:54 ] [ ID #1912750 ]

Re: xml-to-word document

Moti <motic.mail [at] gmail.com> wrote:
>I would like to perform xml-to-word conversion.

I don't understand what you are looking for. XML is just plain text with
specific syntax rules. Microsoft Office Word will open an XML file just
fine. There is no need for any conversion.

jue
jurgenex [ So, 20 Januar 2008 02:03 ] [ ID #1912756 ]

Re: xml-to-word document

On 2008-01-20 01:03, Jürgen Exner <jurgenex [at] hotmail.com> wrote:
> Moti <motic.mail [at] gmail.com> wrote:
>>I would like to perform xml-to-word conversion.
>
> I don't understand what you are looking for. XML is just plain text with
> specific syntax rules. Microsoft Office Word will open an XML file just
> fine.

Any XML file, or just XML files with a DTD it recognizes? If the former,
it probably just opens them as text files, which is trivially possible
but not very useful.

> There is no need for any conversion.

There is, but it depends almost certainly on the DTD. For example, when
you convert a DocBook document, you would want to convert a title
element within a section element to a paragraph with the appropriate
heading style.

hp
hjp-usenet2 [ So, 20 Januar 2008 12:48 ] [ ID #1912767 ]

Re: xml-to-word document

"Peter J. Holzer" <hjp-usenet2 [at] hjp.at> wrote:
>On 2008-01-20 01:03, Jürgen Exner <jurgenex [at] hotmail.com> wrote:
>> Moti <motic.mail [at] gmail.com> wrote:
>>>I would like to perform xml-to-word conversion.
>>
>> I don't understand what you are looking for. XML is just plain text with
>> specific syntax rules. Microsoft Office Word will open an XML file just
>> fine.
>
>Any XML file, or just XML files with a DTD it recognizes? If the former,
>it probably just opens them as text files, which is trivially possible
>but not very useful.

Any XML file. And I agree with both of your assessments :-)

>> There is no need for any conversion.
>
>There is, but it depends almost certainly on the DTD. For example, when
>you convert a DocBook document, you would want to convert a title
>element within a section element to a paragraph with the appropriate
>heading style.

Sooooo, first of all we need to know more about what kind of XML files the
OP is talking about and _how_ he wants to convert them.

jue
jurgenex [ So, 20 Januar 2008 13:46 ] [ ID #1912771 ]
Perl » comp.lang.perl.misc » xml-to-word document

Vorheriges Thema: FAQ 8.32 How can I write expect in Perl?
Nächstes Thema: FAQ 8.23 How can I open a pipe both to and from a command?