Quick Nav:  Online Store   |   Login | Register

Config Safety Question

Rate this topic:

Please Register to post a reply. Another benefit of registration is the ability to subscribe to and recieve notifications of new posts.
AuthorMessages
Will Strohl
<250Posts
Posts:100


04/10/2008 10:48 AM  

I have the need to use a & character in one of my excludePaths.  Is it safer, more correct, or better to use &amp; or wrap the regex in a CDATA?

Host Account
<250Posts
Posts:104


04/10/2008 11:03 AM  

For an attribute in an xml file you need to use the entity value & amp;

For node data, I prefer the CDATA block so that the literal value is there.

Will Strohl
<250Posts
Posts:100


04/10/2008 11:57 AM  
I am talking about the attribute value. I tried using the & symbol explicitly, and it wouldn't validate in the editor, and the site went down. (Typical .Net error screen)

Should we not use CDATA in the attribute fields? I am concerned about the & character being parsed correctly.
Host Account
<250Posts
Posts:104


04/10/2008 12:06 PM  
Use the entity in attribute values, it should parse correctly.

You can't use the CDATA block in an attribute because a < is illegal as well as &
Please Register to post a reply. Another benefit of registration is the ability to subscribe to and recieve notifications of new posts.
Forums >Snapsis Product Support >PageBlaster > Config Safety Question



ActiveForums 3.7
Powered by: Snapsis Software