-
1. Re: Does Adobe hate xml tags that start with an underscore? <_TYPE_>
ilssac Feb 9, 2010 12:13 PM (in response to wmkolcz)It worked for me, once I modified the pasted code to include closing versions of the underscore tags.
<cfsavecontent variable="theXML"><?xml version="1.0" encoding="ISO-8859-1" ?> <document> <_ASSET_>Media_C</_ASSET_> <_ITEMNAME_>videoURL</_ITEMNAME_> <_TYPE_>YouTube</_TYPE_> <_ITEMDESCRIPTION_><![CDATA[#title#]]></_ITEMDESCRIPTION_> <_GROUP_Media_Parent>Pressreleases</_GROUP_Media_Parent> <youtube_url>videoURL</youtube_url> <media_height>265</media_height> <media_width>320</media_width> <media_text_equivalent></media_text_equivalent> <media_title></media_title> <media_author></media_author> <media_date></media_date> <media_thumbnail></media_thumbnail> <media_duration></media_duration> <media_summary></media_summary> <video_keywords></video_keywords> <video_closed_captions></video_closed_captions> <video_audio_description></video_audio_description> </document> </cfsavecontent> <cffile action = "write" output="#theXML#" file = "C:\Inetpub\wwwroot\videoURL.xml">
-
videoURL.xml 764 bytes
-
-
2. Re: Does Adobe hate xml tags that start with an underscore? <_TYPE_>
ilssac Feb 9, 2010 12:12 PM (in response to wmkolcz)Ok, I think I see what you are talking about.
Dreamweaver does not seeem to like something about cutting and pasting and saving a file with </_...> tags. It does remove them at the point of saving the file.
But once I added them back and saved the file all worked fine.
So it does look like a bug with Dreamweaver.... you may want to report it.
-
3. Re: Does Adobe hate xml tags that start with an underscore? <_TYPE_>
wmkolcz Feb 9, 2010 12:14 PM (in response to ilssac)I ran your code (changing the destination) and it came out like this:
<?xml version="1.0" encoding="ISO-8859-1" ?>
<document>
<_ASSET_>Media_C<_ASSET_>
<_ITEMNAME_>videoURL<_ITEMNAME_>
<_TYPE_>YouTube<_TYPE_>
<_ITEMDESCRIPTION_><![CDATA[Blacks not receiving chemotherapy for rectal cancer, despite seeing cancer specialists, U-M study finds]]><_ITEMDESCRIPTION_>
<_GROUP_Media_Parent>Pressreleases<_GROUP_Media_Parent>
<youtube_url>videoURL</youtube_url>
<media_height>265</media_height>
<media_width>320</media_width>
<media_text_equivalent></media_text_equivalent>
<media_title></media_title>
<media_author></media_author>
<media_date></media_date>
<media_thumbnail></media_thumbnail>
<media_duration></media_duration>
<media_summary></media_summary>
<video_keywords></video_keywords>
<video_closed_captions></video_closed_captions>
<video_audio_description></video_audio_description>
</document> -
4. Re: Does Adobe hate xml tags that start with an underscore? <_TYPE_>
ilssac Feb 9, 2010 12:29 PM (in response to wmkolcz)To expand on my second post, I noticed that Dreamweaver elminiated all the slashes in the underscore tags the first time I saved the file after I copied and pasted the xml.
But when I went in and typed the slashs back into the closing tags and saved the file a second time, it all worked correctly.
That is all the farther I tested it.


