Why aren't you using XSLT to export the content from ODF to your custom format. Take a look into the HTML-Export or Doc-Book-Export-Filters.
Tom
Maurizio Stasolla wrote:
> Hi all,
>
> I'm developing a xml parser using macro that reads information in writer
> document and creates a xml file in a custom format.
> I'm using services in the package com::sun::star::xml::dom. How can I
> extract the dom structure in an output xml file ?
>
> Example code:
>
> dim MyObj as object
> dim oggettoXMLdoc as object
> MyObj = createUnoService("com.sun.star.xml.dom.DocumentBuilder")
> 'msgbox Myobj.DBG_methods
> oggettoXMLdoc = MyObj.newDocument
> msgbox oggettoXMLdoc.DBG_methods
>
> ..................................................
> element = oggettoXMLdoc.createElement("help")
>
> element.setAttribute("id",MyoutSTR)
>
>
> Thanks
>
> Maurizio
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
>
signature.asc
Description: OpenPGP digital signature
