<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Replace Archives - scmGalaxy</title>
	<atom:link href="https://www.scmgalaxy.com/tutorials/tag/replace/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.scmgalaxy.com/tutorials/tag/replace/</link>
	<description>A Platform for Software Engineers</description>
	<lastBuildDate>Wed, 13 Apr 2022 16:30:44 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=7.1</generator>
	<item>
		<title>Replace/Append Cookies in JavaScript</title>
		<link>https://www.scmgalaxy.com/tutorials/replace-append-cookies-in-javascript/</link>
					<comments>https://www.scmgalaxy.com/tutorials/replace-append-cookies-in-javascript/#respond</comments>
		
		<dc:creator><![CDATA[rajeshkumar]]></dc:creator>
		<pubDate>Sat, 14 Aug 2021 12:56:29 +0000</pubDate>
				<category><![CDATA[JavaScript]]></category>
		<category><![CDATA[Append]]></category>
		<category><![CDATA[Cookies]]></category>
		<category><![CDATA[Javascript]]></category>
		<category><![CDATA[Replace]]></category>
		<guid isPermaLink="false">https://www.scmgalaxy.com/tutorials/?p=7957</guid>

					<description><![CDATA[<p>Replace/Append Cookies When we assign a new cookie value to document.cookie, the current cookie is not replaced. The new cookie [&#8230;]</p>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/replace-append-cookies-in-javascript/">Replace/Append Cookies in JavaScript</a> appeared first on <a href="https://www.scmgalaxy.com/tutorials">scmGalaxy</a>.</p>
]]></description>
										<content:encoded><![CDATA[
<h2 class="wp-block-heading"><strong>Replace/Append Cookies</strong></h2>



<p class="wp-block-paragraph">When we assign a new cookie value to document.cookie, the current cookie is not replaced. The new cookie is parsed and its name-value pair is appended to the list. The exception is when you assign a new cookie with the same name (and same domain and path, if they exist) as a cookie that already exists. In this case, the old value is replaced with the new.</p>



<script src="https://gist.github.com/vijaypk376/446d251d1474e260e3353013eb9b8871.js"></script>



<script src="https://gist.github.com/vijaypk376/d6f9c779cd7e06d9db6bacafcefc4f7f.js"></script>



<h2 class="wp-block-heading"><strong>Reading Cookie</strong></h2>



<p class="wp-block-paragraph">We can read cookies by a document.cookie. The problem occurs when we need the specific part of the cookie to perform some action.</p>



<script src="https://gist.github.com/vijaypk376/1cd4305d71987896e26f5a77beaabb73.js"></script>



<h2 class="wp-block-heading"><strong>Deleting Cookies</strong></h2>



<p class="wp-block-paragraph">A cookie is deleted by setting a cookie with the same name (and domain and path, if they were set) with an expiration date in the past and if using max-age then must set a negative value.</p>



<p class="wp-block-paragraph">Ex: <strong>&#8211;</strong></p>



<script src="https://gist.github.com/vijaypk376/41404c6b09198948b4505ae95d4b4572.js"></script>



<h2 class="wp-block-heading"><strong>Updating Cookies</strong></h2>



<p class="wp-block-paragraph">A cookie is possible to update by setting a new value to a cookie with the same name.</p>



<script src="https://gist.github.com/vijaypk376/d2c0fe84f70231bd257c4ae0eef4bac0.js"></script>



<h2 class="wp-block-heading"><strong>Cookies Security Issues</strong></h2>



<ul class="wp-block-list"><li><strong>Can misuse Client Details</strong></li><li><strong>Can track User</strong></li><li><strong>Client Can Delete Cookies</strong></li><li><strong>Client can Manipulate Cookies</strong></li></ul>



<h2 class="wp-block-heading"><strong>Cookies Limitation</strong></h2>



<ul class="wp-block-list"><li><strong>Support HTML4 / HTML 5</strong></li><li><strong>Each cookie can contain 4kb Data</strong></li><li><strong>Cookies can be stored in Browser and server</strong></li><li><strong>It is sent with each request</strong></li></ul>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/replace-append-cookies-in-javascript/">Replace/Append Cookies in JavaScript</a> appeared first on <a href="https://www.scmgalaxy.com/tutorials">scmGalaxy</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.scmgalaxy.com/tutorials/replace-append-cookies-in-javascript/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>Replace xml values using ant</title>
		<link>https://www.scmgalaxy.com/tutorials/replace-xml-values-using-ant/</link>
					<comments>https://www.scmgalaxy.com/tutorials/replace-xml-values-using-ant/#respond</comments>
		
		<dc:creator><![CDATA[scmgalaxy K]]></dc:creator>
		<pubDate>Wed, 06 Dec 2017 10:49:27 +0000</pubDate>
				<category><![CDATA[Apache Ant]]></category>
		<category><![CDATA[Replace]]></category>
		<guid isPermaLink="false">http://www.scmgalaxy.com/tutorials/?p=1906</guid>

					<description><![CDATA[<p>tpatil created the topic: Replace xml values using ant I want to replace xml values using ant. Any idea? e.g [&#8230;]</p>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/replace-xml-values-using-ant/">Replace xml values using ant</a> appeared first on <a href="https://www.scmgalaxy.com/tutorials">scmGalaxy</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p><strong>tpatil created the topic: Replace xml values using ant</strong><br />
I want to replace xml values using ant. Any idea?</p>
<p>e.g<br />
<code><property name="hibernateProperties">
		  	<props>
<prop key="hibernate.dialect">org.hibernate.dialect.Oracle10gDialect</prop>
</props>
</property></code></p>
<p>I want to replace the value of hibernate.dialect property using ant.</p>
<p><strong>rajeshkumar replied the topic: Re: Replace xml values using ant</strong><br />
You can opt for any one of these based on senario&#8230;</p>
<p>1. if you can your Value as holding place such as&#8230;
<prop key="hibernate.dialect">@org.hibernate.dialect.Oracle10gDialect@</prop>
<p>Then u can use Filterset task in Ant&#8230;for more info&#8230;</p>
<p><a href="http://ant.apache.org/manual/Types/filterset.html">ant.apache.org/manual/Types/filterset.html</a> </p>
<p>2. If you have same requirement as you mentioned abobe&#8230; then probably you can try ReplaceRegExp ant task.</p>
<p><a href="http://ant.apache.org/manual/Tasks/replaceregexp.html">ant.apache.org/manual/Tasks/replaceregexp.html</a> </p>
<p>Please let me know if this solve your problem. <img src="https://s.w.org/images/core/emoji/17.0.2/72x72/1f642.png" alt="🙂" class="wp-smiley" style="height: 1em; max-height: 1em;" /><br />
Regards,<br />
Rajesh Kumar<br />
Twitt me @ <a href="http://twitter.com/RajeshKumarIn">twitter.com/RajeshKumarIn</a></p>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/replace-xml-values-using-ant/">Replace xml values using ant</a> appeared first on <a href="https://www.scmgalaxy.com/tutorials">scmGalaxy</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.scmgalaxy.com/tutorials/replace-xml-values-using-ant/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
	</channel>
</rss>
