DHTMLEdit - Registered Users - Helpdesk
Save as XML
Thread Starter: Ronald Ruijs Started: 7/7/2008 7:43 PM UTC
Replies: 2
Save as XML
Hello,

I would like to load and save a document to be edited edited as xml,  using a fixed xslt document. Anyone who has experinece with such a construction, or anyone who can tell why it will never work?

Thanks, Ronald
Re: Save as XML

Hello Ronald,

I'm using Tidy to convert the HTML to XHTML and use the result of that to feed to the Microsoft XML parser and apply XSL templates on that. It works (kind of) fine, apart from the occasional problem when somebody pastes something from Word into the editor.

I've set this up both ways: loading the XML document (from a database), apply XSL to make it HTML. Saving the HTML from the editor feeds it to Tidy, after that it goed to the XML parser which converts it back the format that I want.

It took me quite a bit of time to get this going and it is not fail safe, but it works. You will have to create a couple of safety nets to keep the user away from parsing errors and the like.

If you want more specific details or help on this please contact me directly on bart.roozendaal@sevensteps.nl

Bye,

Bart

Re: Save as XML
Hi Bart,
 
Thanks for the suggestion, I will give it a try!
 
Best regards, Ronald
"Bart Roozendaal" <bart.roozendaal@sevensteps.nl> wrote in message news:669d762e$49274e69$2b33@vlad...

Hello Ronald,

I'm using Tidy to convert the HTML to XHTML and use the result of that to feed to the Microsoft XML parser and apply XSL templates on that. It works (kind of) fine, apart from the occasional problem when somebody pastes something from Word into the editor.

I've set this up both ways: loading the XML document (from a database), apply XSL to make it HTML. Saving the HTML from the editor feeds it to Tidy, after that it goed to the XML parser which converts it back the format that I want.

It took me quite a bit of time to get this going and it is not fail safe, but it works. You will have to create a couple of safety nets to keep the user away from parsing errors and the like.

If you want more specific details or help on this please contact me directly on bart.roozendaal@sevensteps.nl

Bye,

Bart