tag:help-archives.hannonhill.com,2010-02-09:/discussions/web-services/1587-swapping-structureddata-from-old-to-newCascade CMS: Discussion 2016-04-14T19:07:56Ztag:help-archives.hannonhill.com,2010-02-09:Comment/391487152016-03-09T12:55:06Z2016-03-09T22:41:50ZSwapping structuredData from old to new<div><p>Judging from your dumps, the phantom node is created by adding
another field to your data definition in use. Correct me if I am
wrong here.</p>
<p>I plan to do two things in the next few days. First, I will add
another lesson in my web service courses to talk about phantom
nodes and switching content type. Second, I will enhance my library
to deal with phantom nodes specifically. No one in the entire
Cascade community has been interested in phantom nodes at all until
recently. I think it's time for me to deal with them properly in my
library.</p>
<p>If you cannot wait, then please check <a href="https://github.com/wingmingchan/php-cascade-ws-ns-examples/blob/master/online-tutorials/05asset_tree_traversal/from_rwd2_to_one_region_template.php">
from_rwd2_to_one_region_template.php<br></a>, especially the part
of code from line 115 to line 123. Here I use the code to deal with
new nodes missing from the old data definition. The method
<code>mapData</code> was added to the class just a few days ago.
You may want to update the entire library to take advantage of
these new methods.</p>
<p><a href="http://www.upstate.edu/cascade-admin/projects/web-services/courses/intermediate-course/intermediate-lesson-10.php">
Lesson 10: Phantom Nodes</a> is taking shape. I have added new code
to my library to deal with phantom nodes. I am writing programs to
illustrate how to use the library to fix the problem.</p>
<p>Wing</p></div>Wing Ming Chantag:help-archives.hannonhill.com,2010-02-09:Comment/391487152016-03-10T14:37:38Z2016-03-10T14:38:10ZSwapping structuredData from old to new<div><p>Added a bit of phantom-node related code to various classes.</p>
<p><a href="https://github.com/wingmingchan/php-cascade-ws-ns/tree/master/cascade_ws_ns">
https://github.com/wingmingchan/php-cascade-ws-ns/tree/master/casca...</a></p>
<p>Also added a few programs, illustrating how to remove phantom
nodes of both types:</p>
<p><a href="https://github.com/wingmingchan/php-cascade-ws-ns-examples/tree/master/online-tutorials/05asset_tree_traversal">
https://github.com/wingmingchan/php-cascade-ws-ns-examples/tree/mas...</a><br>
<a href="https://github.com/wingmingchan/php-cascade-ws-ns-examples/tree/master/online-tutorials/09mapping_data">
https://github.com/wingmingchan/php-cascade-ws-ns-examples/tree/mas...</a></p>
<p>Stilling working on the new lesson.</p>
<p>Wing</p></div>Wing Ming Chan