Discussions
Categories
Groups
Community Home
Categories
INTERNAL ENABLEMENT
POPULAR
THRUST SERVICES & TOOLS
CLOUD EDITIONS
Quick Links
MY LINKS
HELPFUL TIPS
Back to website
Home
Web CMS (TeamSite)
getdcr error handling for Visual Format Field Values
enthusiast
I am performing the following functions on a large number of dcrs in iwov format on Teamsite 6.5:
1. Finding a specific dcr node
2. Replacing the value of that node using set_inner_xml
3. Getting the resultant XML using getDcr() method
4. Writing out the updated DCR XML
Some of the DCRs have a sizeable HTML block added as a Visual Format Editor field value and after calling the getDCR method, I get unusual results like the following:
< remains unchanged but > gets changed to ">" etc.
This cause the getDCR method to fail in the case of those dcrs and hence aborts the script. Is there a way for me to handle either of the following:
1. Decode the Visual Format Editor field value to correct format in the resultant XML?
2. Ignore the error and continue running the script with the rest of the dcrs?
Any help would be greatly appreciated.
Find more posts tagged with
Comments
Pawan
Hi,
if you have got nothing to replace in the visual format portion, then one way around would be to skip the Visual Format Editor field tag in the dcr.
I am not sure how feasiblity of the implementation of this logic, just a guess for the current task to work out.
Some better way should be there to check this unusual result.
HTH