cancel
Showing results for 
Search instead for 
Did you mean: 

WebForms related issues (HELP!)

gumiyo
Champ in-the-making
Champ in-the-making
I have a few quick questions:

1. after i save the input data via the Webform, the output XML is generated and a node of the XML output look like <null:Company>, how do we replace the "null" prefix with something like "cm" e.g. <cm:Company>

2. Once the Webform is launched, we start to fill out the fields using the inline HTML editor, how do we tell editor not to convert special characters like <Testing> to &lt;Testing&gt;. The data we plan to input to one of the Webform field can also be XML data. Something similar to CDATA would be great.

Thanks
1 REPLY 1

arielb
Champ in-the-making
Champ in-the-making
after i save the input data via the Webform, the output XML is generated and a node of the XML output look like <null:Company>, how do we replace the "null" prefix with something like "cm" e.g. <cm:Company>

set the targetNamespace attribute on your schema to a namespace whose prefix is cm.  something along the lines of
<xs:schema xmlns:xs="…" xmlns:cm="foo" targetNamespace="foo">…

Once the Webform is launched, we start to fill out the fields using the inline HTML editor, how do we tell editor not to convert special characters like <Testing> to &lt;Testing&gt;. The data we plan to input to one of the Webform field can also be XML data. Something similar to CDATA would be great.

i'm not quite sure.  we use tinymce for the richtexteditor and there may very well be an option to do that - but i've not used it.  if you're able to find something that does what you want, you can patch xforms.js to ignore that tag.

for 2.1 i'm working on making a distinction between xs:anyTypes and xs:strings in order to better support unescaped output from tinymce - but at the moment i don't have a solution for this out of the box.