Page 1 of 1

Adding XML Tags

Posted: Thu Jan 24, 2008 8:38 pm
by hrafnagud
Hello,

im developing a small Java Modul who creates documents based on an open office writer document.

i want to add placeholders in form of xml-tags, eg <placeholder>this is the repeatable text</placeholder> in my odt-document. if i save this, the xml-filter of open office removes this form for some good reasons.

what is the best way to add xml-attributes into an odt-document. ive readed something about it, this elements are called as aliens, cause i dont find a way to add it into the document.

best regards

Re: Adding XML Tags

Posted: Sat Jan 26, 2008 8:17 pm
by acknak
I don't think there are too many xml developers or ODF wizards available. You might try dev-at-openoffice.org.

My only thought is that you should be able to extend the format (it is the eXtensible Markup Language after all), but I don't know what the best approach with something like ODF is.

You could also use the existing style tags, i.e., assign a particular style to be your tag. The style need not have any effect on the presentation, but your processor can pick them out based on the style name.

That seems a bit of a hack, but it would not require any extensions.

Re: Adding XML Tags

Posted: Sat Jan 26, 2008 8:56 pm
by Villeroy