<?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>IT Engineer's Blog, Malaysia Life Tech Blog &#187; Webmastering</title>
	<atom:link href="http://www.icalvyn.com/category/webmastertools/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.icalvyn.com</link>
	<description>Your Gateway To IT Engineer Knowledge, Life experience on Malaysia Tech Blog</description>
	<lastBuildDate>Tue, 07 Feb 2012 14:04:27 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>The Real ROI on a Web-Based System</title>
		<link>http://www.icalvyn.com/the-real-roi-on-a-web-based-system/</link>
		<comments>http://www.icalvyn.com/the-real-roi-on-a-web-based-system/#comments</comments>
		<pubDate>Sun, 27 Feb 2011 15:11:25 +0000</pubDate>
		<dc:creator>calvyn</dc:creator>
				<category><![CDATA[Internet]]></category>
		<category><![CDATA[Webmastering]]></category>

		<guid isPermaLink="false">http://www.icalvyn.com/?p=3054</guid>
		<description><![CDATA[How do we determine the real ROI on a web-based system? As a administrators know the challenge of determining a product’s true ROI, but without that data, we can’t justify purchases especially big, expensive systems. At Vero Beach High School, we developed a checklist of features that, when combined, should provide a clearer picture of [...]]]></description>
			<content:encoded><![CDATA[<p>How do we determine the real ROI on a web-based system? As a administrators know the challenge of determining a product’s true ROI, but without that data, we can’t justify purchases especially big, expensive systems. At Vero Beach High School, we developed a checklist of features that, when combined, should provide a clearer picture of a school’s investment.</p>
<p style="text-align: center;"><img class="aligncenter" src="http://i650.photobucket.com/albums/uu226/calvynlee/web-based-training.jpg" alt="" /></p>
<p><strong>Less is more</strong> <br />
A solution that addresses the needs of all grade levels and all core content areas provides a huge cost savings. The use of one system eliminates the need for different technology configurations, multiple licenses, multiple trainings, support contracts, etc<span id="more-3054"></span></p>
<p><strong>Put it to the test </strong><br />
No one likes to say we’re teaching to the test, but it’s certainly our job to prepare students to do well on tests. The question is, does your system help all students prepare for all tests? Thousands of dollars can be saved by employing one system that helps prepare all students for the state’s high-stakes exams but also prepares high school students for Advanced Placement tests, exit exams, and the all-important ACT and SAT exams.</p>
<p><strong>Open 24/7/365</strong><br />
Make sure teachers, students, and even parents can easily access your new solution anytime, anywhere</p>
<p><strong>Assessing the situation</strong><br />
Does it allow for customized ad hoc and formative assessments to coincide with teachers’ needs and prescribe activities<br />
to support student-specific learning?</p>
<p><strong>Does it fall in “align?” </strong><br />
Any instructional program, whether supplemental or core, must be aligned to<br />
your state’s standards and scalable to the Common Core State Standards. If you can’t get that automatically without<br />
spending thousands of dollars for upgrades, the solution should receive a failing grade.</p>
<p><strong>Professional development on demand </strong><br />
Be sure to select a program that provides an economical and easy way for teachers to gain skills that can immediately be utilized in the classroom.</p>
<p><strong>A penny saved is a dollar earned</strong><br />
Prices for instructional solutions vary widely, so pay attention to the bang you are getting for the buck</p>
<p><strong>Adding It All Up </strong><br />
Make sure your online learning solution incorporates everything teachers need to effectively<br />
engage learners, inform instructional decisions, and increase student achievement. Without it, there is no ROI.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.icalvyn.com/the-real-roi-on-a-web-based-system/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Website Trend in 2011</title>
		<link>http://www.icalvyn.com/website-trend-in-2011/</link>
		<comments>http://www.icalvyn.com/website-trend-in-2011/#comments</comments>
		<pubDate>Sun, 02 Jan 2011 16:01:48 +0000</pubDate>
		<dc:creator>calvyn</dc:creator>
				<category><![CDATA[Webmastering]]></category>

		<guid isPermaLink="false">http://www.icalvyn.com/?p=2992</guid>
		<description><![CDATA[But therein lies the attraction for Web professionals, and much of the opportunity as well. Businesses that strive to stay ahead of the curve will have a much greater chance at success. Business owners that can accurately predict the next trend. Well, that’s how multibillion dollar  companies are born. We make no promises about the [...]]]></description>
			<content:encoded><![CDATA[<p>But therein lies the attraction for Web professionals, and much of the opportunity as well. Businesses that strive to stay ahead of the curve will have a much greater chance at success. Business owners that can accurately predict the next trend. Well, that’s how multibillion dollar  companies are born.</p>
<p style="text-align: center;"><img class="aligncenter" src="http://img191.imageshack.us/img191/1167/2008webtrend.png" alt="2011 trend" /></p>
<p>We make no promises about the latter, but we can definitely improve your odds of achieving the former. To that end, we have identified the most important trends to watch in the year 2011. Before you examine the following pages, however, it is important to understand our definition of an important trend.</p>
<p>You may be tired of hearing about social media, for instance, and you hardly consider it a new development. But if you employ the same social strategies in 2011 as you did in 2010, and fail to account for the changes coming in the next year, your business will suffer the consequences.<span id="more-2992"></span></p>
<p>Therefore, the most important <strong>Web trends in 2011</strong> are those developments that your online business cannot afford to ignore. With that said, here are the trends to which every Web professional should pay close attention in the coming year, as well as some predictions, plenty of solutions and even more instructions along the way.</p>
<p><strong>Everything’s in real time</strong><br />
The developments taking place in real-time technology will impact every industry across the Internet in 2011 from SEO to e-commerce to Web design. Google fired the loudest shot when it introduced Google Instant real-time search in 2010, but versions of the technology have been around for several years.</p>
<p>What are now more significant than the technologies themselves are the many different ways in which they can and will be used. Real-time search, real-time content distribution, real-time ad bidding, real-time analytic and real-time content translation are just some of the areas in which the technologies are changing the Web, thus creating the need for a new set of strategies across the board</p>
<p>To ensure that your website stays ahead of this trend, direct your focus on providing continually fresh and useful content that matters in real time content that addresses the current needs of your audience. There is no better way to achieve this than by engaging with your customers on social networks.</p>
<p>Create and distribute helpful blog posts and informational videos on which users can comment and share with one another, and invite them to write reviews about your products, services and business. Build an application or optimize your website to ensure that users can access your business on their mobile devices and get the information they need right away.</p>
<p>To monitor the engagement, explore some real-time analytic solutions to determine how visitors are interacting with your site while they are on-site. Optics provides just one of the solutions in this rapidly growing space, giving website owners instant analysis that allows them to immediately address the needs of their visitors.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.icalvyn.com/website-trend-in-2011/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>Advanced XML regular expression features [Part 1]</title>
		<link>http://www.icalvyn.com/advanced-xml-regular-expression-features-part-1/</link>
		<comments>http://www.icalvyn.com/advanced-xml-regular-expression-features-part-1/#comments</comments>
		<pubDate>Mon, 12 Jul 2010 09:01:37 +0000</pubDate>
		<dc:creator>calvyn</dc:creator>
				<category><![CDATA[Webmastering]]></category>

		<guid isPermaLink="false">http://www.icalvyn.com/?p=2793</guid>
		<description><![CDATA[Regular expressions are sets of special characters or character sequences that are used to match string values in text data. XPath 2.0 offers improved support for regular expressions. This is useful because it enables you to search for particular string patterns and return nodes that match those string patterns. XPath 2.0 functions In XPath 2.0, [...]]]></description>
			<content:encoded><![CDATA[<p>Regular expressions are sets of special characters or character sequences that are used to match string values in text data. XPath 2.0 offers improved support for regular expressions. This is useful because it enables you to search for particular string patterns and return nodes that match those string patterns.</p>
<p style="text-align: center;"><img class="aligncenter" src="http://img692.imageshack.us/img692/7808/xmllogo.png" alt="xml regular expression" /></p>
<p><strong>XPath 2.0 functions</strong></p>
<p>In XPath 2.0, three new functions provide support for regular expressions:</p>
<ul>
<li>tokenize()</li>
<li>matches()</li>
<li>replace()</li>
</ul>
<p><strong>tokenize()</strong></p>
<p>You use the tokenize() function to split a string into substrings. For example, you can use this function to split a sentence into separate words. The syntax for the tokenize() function is<span id="more-2793"></span></p>
<blockquote><p>fn:tokenize( $input as xs:string?,</p>
<p>$pattern as xs:string,</p>
<p>$flags as xs:string) as xs:string+</p></blockquote>
<p>The fn prefix is used to identify the function as belonging to the XPath 2.0 function namespace – http://www.w3.org/2003/11/xpath-functions. The $input parameter represents the string you want to split, $pattern represents the regular expression you want to use on this string, and $flags is an optional parameter representing a number of predefined options that determine the way the function operates, such as whether it works case sensitively.</p>
<p><strong>matches()</strong></p>
<p>You use the matches() function to return a Boolean value – true or false. If a match exists for the regular expression, a value of true is returned. Otherwise, a value of false is returned. The syntax for the matches() function is</p>
<blockquote><p>fn:matches( $input as xs:string?,</p>
<p>$pattern as xs:string,</p>
<p>$flags as xs:string) as xs:boolean</p></blockquote>
<p>The following code example uses the matches() function in an XSL template to identify people with Boston area codes in a list containing customer details. It does this by using a regular expression to test whether a customer&#8217;s phone number has an area code of 617. It then outputs those customers&#8217; names in a results table.</p>
<blockquote><p>&lt;xsl:template match=&#8221;customer&#8221;&gt;</p>
<p>&lt;table&gt;</p>
<p>&lt;xsl:if test=&#8221;matches</p>
<p>(address/phoneNumber, &#8217;617-[0-9]{3}-[0-9]{4}&#8217;)&#8221;&gt;</p>
<p>&lt;tr&gt;</p>
<p>&lt;td&gt;</p>
<p>&lt;xsl:value-of select=&#8221;name/firstName&#8221;/&gt;</p>
<p>&lt;/td&gt;</p>
<p>&lt;td&gt;</p>
<p>&lt;xsl:value-of select=&#8221;name/lastName&#8221;/&gt;</p>
<p>&lt;/td&gt;</p>
<p>&lt;/tr&gt;</p>
<p>&lt;/xsl:if&gt;</p>
<p>&lt;/table&gt;</p>
<p>&lt;/xsl:template&gt;</p></blockquote>
<p><strong>replace()</strong></p>
<p>The replace() function enables you to search for and replace a string. The syntax for this function is</p>
<blockquote><p>fn:replace( $input as xs:string?,</p>
<p>$pattern as xs:string,</p>
<p>$replacement as xs:string,</p>
<p>$flags as xs:string) as xs:string</p></blockquote>
<p>The function accepts an input string, $string, searches it for values represented by $pattern, and replaces these with whatever you specify in the $replacement parameter. As is the case with the tokenize() and matches() functions, $flags is an optional parameter that determines how the function operates.</p>
<p>For example, say you want to ensure that US addresses in customer lists are always displayed as &#8220;U.S.A.&#8221; rather than &#8220;USA&#8221; or &#8220;US&#8221;. The following XSL code searches for alternative address formats and replaces them with U.S.A..</p>
<blockquote><p>&lt;xsl:for-each select=&#8221;address/country&#8221;&gt;</p>
<p>&lt;xsl:value-of select=&#8221;replace</p>
<p>(., &#8216;[Uu]\.?[Ss]\.?[Aa]?\.?$&#8217;, &#8216;U.S.A.&#8217;)&#8221;/&gt;</p>
<p>&lt;/xsl:for-each&gt;</p></blockquote>
]]></content:encoded>
			<wfw:commentRss>http://www.icalvyn.com/advanced-xml-regular-expression-features-part-1/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Examining an XBRL taxonomy [Part 2]</title>
		<link>http://www.icalvyn.com/examining-an-xbrl-taxonomy-part-2/</link>
		<comments>http://www.icalvyn.com/examining-an-xbrl-taxonomy-part-2/#comments</comments>
		<pubDate>Thu, 01 Jul 2010 09:38:36 +0000</pubDate>
		<dc:creator>calvyn</dc:creator>
				<category><![CDATA[Webmastering]]></category>

		<guid isPermaLink="false">http://www.icalvyn.com/?p=2709</guid>
		<description><![CDATA[After getting know on examining and XBRL taxonomy part 1, let continue the rest of the topic. The structure of an XBRL GL document This diagram shows the basic structure of an XBRL GL document. The top-level element of an XBRL GL document, which appears directly after the XBRL instance document root element, is accountingEntries, [...]]]></description>
			<content:encoded><![CDATA[<p>After getting know on <a href="http://www.icalvyn.com/examining-an-xbrl-taxonomy-part-1/">examining and XBRL taxonomy</a> part 1, let continue the rest of the topic.</p>
<p><strong>The structure of an XBRL GL document</strong></p>
<p style="text-align: center;"><img class="aligncenter" src="http://img227.imageshack.us/img227/5247/xml1.jpg" alt="XBRL" /></p>
<p>This diagram shows the basic structure of an XBRL GL document.</p>
<p>The top-level element of an XBRL GL document, which appears directly after the XBRL instance document root element, is <em>accountingEntries</em>, which is a tuple.<span id="more-2709"></span></p>
<p>The <em>documentInfo</em> element appears directly after <em>accountingEntries</em>, and provides information about all the data in the file.</p>
<p>The<em> documentInfo</em> element has several child elements. One of the most important is <em>entriesType</em>, which has several predefined values that specify the purpose of the XBRL GL instance document, such as whether it is a ledger or a list of assets.</p>
<p>The <em>entityInformation</em> element holds information about the reporting organization and the entryHeader element is the parent element that describes all the entry or journal entry headers, as well as containing the elements that hold the financial data in the document.</p>
<p>The <em>entryHeader</em> element has a number of child elements. The most important is <em>entryDetail</em>, which is the parent element for each ledger entry. It, in turn, has several child elements, including account, <em>documentType</em>, <em>debitCreditCode</em>, and amount.</p>
<p><strong>The instance document</strong><br />
XBRL GL instance documents may vary in structure depending on whether they use the XBRL GL 1.0 or 1.1 taxonomies. Whereas the XBRL GL 1.0 taxonomy uses a single schema and three linkbase documents, the XBRL GL 1.1 uses four additional schema and many additional linkbases. So although it uses the same core elements as version 1.0, it also defines new elements and requires the use of additional namespace prefixes to<br />
qualify these. For example, instead of using glc as the XBRL GL recommended namespace prefix, it uses gl-cor, which identifies elements from the core schema. Here is a section of an XBRL GL instance document based on the version 1.1 taxonomy. Because the XBRL specification used by this taxonomy is version 2.0 rather than version 2.1, the root element is group rather than xbrl.</p>
<blockquote><p>&lt;?xml version=&#8221;1.0&#8243; encoding=&#8221;UTF-8&#8243;?&gt;<br />
&lt;xbrli:group<br />
xmlns:link=&#8221;http://www.xbrl.org/2001/XLink/xbrllinkbase&#8221;<br />
xmlns:xbrli=&#8221;http://www.xbrl.org/2001/instance&#8221;<br />
xmlns:xhtml=&#8221;http://www.w3.org/1999/xhtml&#8221;<br />
xmlns:gl-plt=&#8221;http://www.xbrgl.com/gl-plt/&#8221;<br />
xmlns:gl-cor=<br />
&#8220;http://www.xbrl.org/taxonomy/int/gl/cor/2003-08-29/&#8221;<br />
xmlns:gl-bus=<br />
&#8220;http://www.xbrl.org/taxonomy/int/gl/bus/2003-08-29/&#8221;<br />
xmlns:gl-muc=<br />
&#8220;http://www.xbrl.org/taxonomy/int/gl/muc/2003-08-29/&#8221;<br />
xmlns:gl-usk=<br />
&#8220;http://www.xbrl.org/taxonomy/int/gl/usk/2003-08-29/&#8221;<br />
xmlns:xsi=&#8221;http://www.w3.org/2001/XMLSchema-instance&#8221;<br />
xmlns:ISO4217=&#8221;http://www.xbrl.org/2003/iso4217&#8243;<br />
xsi:schemaLocation=<br />
&#8220;http://www.xbrlgl.com/gl-plt/ XBRLGL.xsd&#8221;&gt;<br />
&lt;gl-cor:accountingEntries&gt;<br />
&lt;gl-cor:documentInfo&gt;<br />
&lt;gl-cor:entriesType nonNumericContext=&#8221;s1&#8243;&gt;<br />
entries<br />
&lt;/gl-cor:entriesType&gt;<br />
&lt;gl-cor:language nonNumericContext=&#8221;s1&#8243;&gt;</p>
<p>ISO693:ja<br />
&lt;/gl-cor:language&gt;<br />
&lt;gl-cor:creationDate nonNumericContext=&#8221;s1&#8243;&gt;<br />
2002-06-18<br />
&lt;/gl-cor:creationDate&gt;<br />
&lt;gl-cor:entriesComment nonNumericContext=&#8221;s1&#8243;&gt;<br />
XXX-FI<br />
&lt;/gl-cor:entriesComment&gt;<br />
&lt;/gl-cor:documentInfo&gt;<br />
&lt;gl-cor:entryHeader&gt;<br />
&lt;gl-cor:enteredBy nonNumericContext=&#8221;s1&#8243;&gt;<br />
001<br />
&lt;/gl-cor:enteredBy&gt;<br />
&lt;gl-cor:enteredDate nonNumericContext=&#8221;s1&#8243;&gt;<br />
2001-04-01<br />
&lt;/gl-cor:enteredDate&gt;<br />
&lt;gl-cor:sourceJournalID nonNumericContext=&#8221;s1&#8243;&gt;<br />
se<br />
&lt;/gl-cor:sourceJournalID&gt;<br />
&lt;gl-cor:entryNumber nonNumericContext=&#8221;s1&#8243;&gt;<br />
4<br />
&lt;/gl-cor:entryNumber&gt;<br />
&lt;gl-cor:entryDetail&gt;<br />
&lt;gl-cor:account&gt;<br />
&lt;gl-cor:accountSub&gt;<br />
&lt;gl-cor:accountSubType<br />
nonNumericContext=&#8221;s1&#8243;&gt;<br />
division<br />
&lt;/gl-cor:accountSubType&gt;<br />
&lt;gl-cor:accountSubID<br />
nonNumericContext=&#8221;s1&#8243;&gt;<br />
001<br />
&lt;/gl-cor:accountSubID&gt;<br />
&lt;gl-cor:accountSubDescription<br />
nonNumericContext=&#8221;s1&#8243;&gt;<br />
Tokyo Head Office<br />
&lt;/gl-cor:accountSubDescription&gt;<br />
&lt;/gl-cor:accountSub&gt;</p></blockquote>
<p><strong>Summary</strong><br />
As summary, An XBRL taxonomy is a document or set of documents defining a specific information set that can be reported using the XBRL specification. Financial reporting taxonomies are created specifically for individual regions or companies but the XBRL General Ledger<br />
taxonomy (XBRL GL) is a widely applicable standard taxonomy. XBRL GL provides a structure for presenting any accounting information in an XBRL report, collecting all general ledger receivables and payables, and presenting them in a traditional reporting format.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.icalvyn.com/examining-an-xbrl-taxonomy-part-2/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Examining an XBRL taxonomy [Part 1]</title>
		<link>http://www.icalvyn.com/examining-an-xbrl-taxonomy-part-1/</link>
		<comments>http://www.icalvyn.com/examining-an-xbrl-taxonomy-part-1/#comments</comments>
		<pubDate>Wed, 21 Apr 2010 00:01:34 +0000</pubDate>
		<dc:creator>calvyn</dc:creator>
				<category><![CDATA[Webmastering]]></category>

		<guid isPermaLink="false">http://www.icalvyn.com/?p=2703</guid>
		<description><![CDATA[An XBRL taxonomy is a document or set of documents defining a specific information set that can be reported using the XBRL specification. It assigns unique tags to specific accounting elements such as gross profit or price/earnings ratio. Financial reporting taxonomies Because accounting standards and business requirements vary between regions and organizations, financial reporting taxonomies [...]]]></description>
			<content:encoded><![CDATA[<p>An XBRL taxonomy is a document or set of documents defining a specific information set that can be reported using the XBRL specification. It assigns unique tags to specific accounting elements such as gross profit or price/earnings ratio.</p>
<p style="text-align: center;"><img class="aligncenter" src="http://img63.imageshack.us/img63/3931/xbrllogo.jpg" alt="XBRL" width="525" /></p>
<p><strong>Financial reporting taxonomies</strong><br />
Because accounting standards and business requirements vary between regions and organizations, financial reporting taxonomies are created specifically for individual regions, industries, or even companies. To improve the usability of taxonomy documents, XBRL International specifies recommended taxonomy design architecture guidelines on its web site. <span id="more-2703"></span></p>
<p><strong>General Ledger taxonomy</strong> The XBRL General Ledger taxonomy (XBRL GL) is a standard taxonomy that is more widely applicable than financial reporting taxonomies. It is also known as the Journal taxonomy. XBRL GL provides a structure for presenting any accounting information in an XBRL report. It collects all general ledger receivables and payables and represents them alongside inventory information in a traditional reporting format. Because it deals with general ledger entries rather than industry or region-specific terms, it is reportingindependent, unlike financial reporting taxonomies.</p>
<p>XBRL GL can also be used to present non-financial information found in an accounting system and it enables legacy accounting charts of accounts to be presented in a standardized way.</p>
<p>XBRL GL is system-independent and can handle imported data from any accounts application or operating system. It also facilitates the transfer of general ledger data from one system to another.</p>
<p><strong>Applying the General Ledger taxonomy to an XBRL document</strong><br />
The latest release of XBRL GL is the draft version of release 1.1, which includes schemas and linkbases that handle business and inventory metrics as well as the general ledger. XBRL GL 1.0 is the approved version. To apply XBRL GL 1.0 to an instance document, you reference the namespaces shown in the following table.</p>
<p><strong>XBRL GL Namespaces</strong></p>
<p style="text-align: center;"><img class="aligncenter" src="http://img80.imageshack.us/img80/3373/xbrl.jpg" alt="XBRL taxonomy" /></p>
<p>XBRL GL also uses the standard XHTML and XLink namespace URIs &#8211; http://www.w3.org/1999/xhtml and http://www.w3.org/1999/xlink. Versions 1.0 and 1.1 of the XBRL GL taxonomy schemas can be downloaded from the XBRL organization&#8217;s web site.</p>
<p>Following next, we shall talk about &#8220;The structure of an XBRL GL document&#8221; in Examining an XBRL taxonomy [Part 2], coming up next. If you are looking for some XBRL training, you can look for computer institute like <a href="http://www.computersystemsinstitute.net" target="_blank">CSI Chicago</a> offers special classes and computer certifications about this.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.icalvyn.com/examining-an-xbrl-taxonomy-part-1/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Encrypting and authenticating XML data [Part 2]</title>
		<link>http://www.icalvyn.com/encrypting-and-authenticating-xml-data-part-2/</link>
		<comments>http://www.icalvyn.com/encrypting-and-authenticating-xml-data-part-2/#comments</comments>
		<pubDate>Tue, 09 Mar 2010 04:29:02 +0000</pubDate>
		<dc:creator>calvyn</dc:creator>
				<category><![CDATA[Webmastering]]></category>

		<guid isPermaLink="false">http://www.icalvyn.com/?p=2601</guid>
		<description><![CDATA[After get some understanding on encrypting and authentication on xml on XML web services. Now we getting to know more about the XML signature and also some summarize of XML encrypting and authenticating. XML Signature Standard The W3C XML Signature standard provides a specification for creating and using digital signatures in XML. You use XML [...]]]></description>
			<content:encoded><![CDATA[<p>After get some understanding on <a title="encrypting and authentication xml data" href="http://www.icalvyn.com/encrypting-and-authenticating-xml-data-part-1" target="_blank">encrypting and authentication on xml</a> on XML web services. Now we getting to know more about the XML signature and also some summarize of XML encrypting and authenticating.</p>
<p style="text-align: center;"><img class="aligncenter" src="http://img692.imageshack.us/img692/7808/xmllogo.png" alt="xml authentication" /></p>
<p><strong>XML Signature Standard</strong><br />
The W3C XML Signature standard provides a specification for  creating and using digital signatures in XML. You use XML Signature to provide  authentication when transmitting documents. You can use XML Signature with any  content, including XML data. You can sign just a portion of a document, in the  same way that you can encrypt just part of it.<span id="more-2601"></span></p>
<p>Authenticating XML documents is difficult, however, because  their structure may change even when the data in them does not. Most digital  signature methods treat the structure of a document as significant when  generating the unique value, or <em>message digest</em>, that can be used to  validate the document&#8217;s authenticity To address this, the W3C uses XML  Canonicalization. This specification defines how to generate a canonical form of  an XML document. This is a highly formalized version of the XML document. Two  XML documents that differ textually as a result of comments, empty tags, or line  breaks for example, but have the same logical structure will produce identical  canonical documents.</p>
<p>The basic structure of a digital signature is as follows,  where <code>?</code> indicates zero or one occurrence and <code>*</code> indicates zero or more occurrences:</p>
<blockquote><p>&lt;Signature  ID?&gt;<br />
&lt;SignedInfo&gt;<br />
&lt;CanonicalizationMethod/&gt;<br />
&lt;SignatureMethod/&gt;<br />
(&lt;Reference  URI?  &gt;<br />
(&lt;Transforms&gt;)?<br />
&lt;DigestMethod&gt;<br />
&lt;DigestValue&gt;<br />
&lt;/Reference&gt;)+<br />
&lt;/SignedInfo&gt;<br />
&lt;SignatureValue&gt;<br />
(&lt;KeyInfo&gt;)?<br />
(&lt;Object  ID?&gt;)*<br />
&lt;/Signature&gt;</p></blockquote>
<p><code>Signature</code> is the root element, and its  <code>ID</code> attribute is an optional one used to identify the signature. The  mandatory <code>SignedInfo</code> element represents the data that is signed.  Then the <code>CanonicalizationMethod</code> element provides the  canonicalization algorithm that has been applied to the signed data. The  <code>Reference</code> element provides a reference to the data object being  signed. This element contains the <code>Transforms</code>,  <code>DigestMethod</code>, and <code>DigestValue</code> child elements, which  describe how the signed data object has been compiled. The <code>KeyInfo</code> element enables you to obtain the key to validate the signature. Note that,  although this element is qualified when used in encryption, it does not need to  be qualified when used with digital signatures because it is part of the digital  signature namespace.</p>
<p>The following is an example of a signature:</p>
<blockquote><p>&lt;Signature  Id=&#8221;ENTSecureSig&#8221;<br />
xmlns=&#8221;http://www.w3.org/2000/09/xmldsig#&#8221;&gt;<br />
&lt;SignedInfo&gt;<br />
&lt;CanonicalizationMethod  Algorithm=<br />
&#8220;http://www.w3.org/TR/2001/REC-xml-c14n-20010315&#8243;/&gt;<br />
&lt;SignatureMethod  Algorithm=<br />
&#8220;http://www.w3.org/2000/09/xmldsig#dsa-sha1&#8243;/&gt;<br />
&lt;Reference  URI=<br />
&#8220;http://www.w3.org/TR/2000/REC-xhtml1-20000126/&#8221;&gt;<br />
&lt;DigestMethod  Algorithm=<br />
&#8220;http://www.w3.org/2000/09/xmldsig#sha1&#8243;/&gt;<br />
&lt;DigestValue&gt;<br />
j6lwx3rvEPO0vKtMup4NbeVu8nk=<br />
&lt;/DigestValue&gt;<br />
&lt;/Reference&gt;<br />
&lt;/SignedInfo&gt;<br />
&lt;SignatureValue&gt;MC0CFFrVLtRlk=&#8230;&lt;/SignatureValue&gt;<br />
&lt;KeyInfo&gt;<br />
&lt;KeyValue&gt;<br />
&lt;DSAKeyValue&gt;<br />
&lt;P&gt;&#8230;&lt;/P&gt;&lt;Q&gt;&#8230;&lt;/Q&gt;&lt;G&gt;&#8230;&lt;/G&gt;&lt;Y&gt;&#8230;&lt;/Y&gt;<br />
&lt;/DSAKeyValue&gt;<br />
&lt;/KeyValue&gt;<br />
&lt;/KeyInfo&gt;<br />
&lt;/Signature&gt;</p></blockquote>
<p>The <code>Signature</code> element declares the XML Signature  namespace. The <code>Reference</code> element identifies the W3C XHTML  specification as the object that&#8217;s being signed in this case. The  <code>DigestMethod</code> element&#8217;s Algorithm attribute indicates that the SHA-1  algorithm was used to generate a hash, or message digest of this, the value of  which is indicated in <code>DigestValue</code>. Everything within the  <code>SignedInfo</code> element is canonicalized according to the Canonical XML  specification indicated by the <code>CanonicalizationMethod</code> element. Then  the DSA algorithm specified by the Algorithm attribute in  <code>SignatureMethod</code> is used to produce the <code>SignatureValue</code>,  which is the digest of everything in the <code>SignedInfo</code> element.  <code>KeyInfo</code> specifies what key should be used to validate this  signature &#8211; in this case, DSA keys. The <code>P</code>, <code>Q</code>,  <code>G</code>, and <code>Y</code> elements are used only with  <code>DSAKeyValue</code> and specify DSA public key values.</p>
<p>For this signature to be validated, the contents of  <code>SignedInfo</code> must be canonicalized, and then processed with the  algorithm specified in <code>SignatureMethod</code> using the public key  supplied by <code>KeyInfo</code>. If the value this produces matches the one in  <code>SignatureValue</code>, the signature is valid. For the signed data to be  validated, its unsigned version is retrieved using the <code>Reference</code> URI, processed according to <code>DigestMethod</code>, and compared to the value  in <code>DigestValue</code>.</p>
<p>As a summary on Encrypting and authenticating of XML data, XML Encryption enables you to encrypt an entire document, a  specific element, or the content of a specific element. It also facilitates the  transmission of data between more than two parties and ensures end-to-end  security rather than party-to-party security. XML Signature provides  authentication when using web services. It enables users to receive data that is  signed by the sender and to verify the integrity of the data.</p>
<p>XML Encryption encrypts data using the following elements &#8211;  <code>EncryptedData</code>, <code>CipherData</code>, <code>CipherValue</code>,  <code>CipherReference</code>, and <code>EncryptionMethod</code>. These elements  are in the <code>http://www.w3.org/2001/04/xmlenc#</code> namespace. XML  encryption is key-based and can be asymmetric or symmetric.</p>
<p>The W3C XML Signature standard provides a specification for  creating and using digital signatures in XML. You can sign just a portion of a  document, in the same way that you can encrypt just part of it. XML Signature  relies on XML Canonicalization to generate a canonical form of an XML document.  This ensures that the data in a document can still be verified even if its  structure changes.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.icalvyn.com/encrypting-and-authenticating-xml-data-part-2/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>HTML standards and compliance [Part 2]</title>
		<link>http://www.icalvyn.com/html-standards-and-compliance-part-2/</link>
		<comments>http://www.icalvyn.com/html-standards-and-compliance-part-2/#comments</comments>
		<pubDate>Fri, 26 Feb 2010 16:06:39 +0000</pubDate>
		<dc:creator>calvyn</dc:creator>
				<category><![CDATA[Webmastering]]></category>

		<guid isPermaLink="false">http://www.icalvyn.com/?p=2579</guid>
		<description><![CDATA[After knowing how the HTML Standard and compliance on HT (Hyper Text) and Markup, let us get more understand on tag wars, xhtml and etc. Tag wars In the early days of the Web, HTML proved to be an extremely popular authoring language. With HTML, publishing content to the Web was easy – you inserted [...]]]></description>
			<content:encoded><![CDATA[<p>After knowing how the <a title="HTML standard" href="http://www.icalvyn.com/html-standards-and-compliance-part-1/" target="_blank">HTML Standard and compliance</a> on <strong>HT</strong> (Hyper Text) and <strong>Markup</strong>, let us get more understand on<strong> tag wars</strong>,<strong> xhtml</strong> and etc.</p>
<p style="text-align: center;"><img class="aligncenter" src="http://img707.imageshack.us/img707/5938/hypertext.jpg" alt="html standard" width="525" /></p>
<p><strong>Tag wars</strong><br />
In the early days of the Web, HTML proved to be an extremely popular authoring language. With HTML, publishing content to the Web was easy – you inserted some tags into a document using a text editor and uploaded the document to a web site, where it could be read by anybody with a browser.<span id="more-2579"></span> However, this very simplicity was a drawback, because the people who were actually developing web browsers wanted to include exciting new features that were not supported by early versions of HTML. So these developers decided to create their own tags, which could only be interpreted properly by their browsers. This threatened to lead to a situation where the type of web page you could visit would depend on the browser you were using. Clearly what was needed was an agreed HTML standard.</p>
<p><strong>The W3C to the rescue</strong><br />
The need for a body to develop common standards for the Web led to the formation, by Tim Berners-Lee in 1994, of the World Wide Web Consortium (W3C). A specification that has been approved by members of the W3C and is appropriate for widespread use is published as a recommendation document.</p>
<p>One of the most important initial tasks for the W3C was to develop a standard for HTML, and in 1995 this body was busily working on HTML 3.0, a badly needed update for the two previous versions – HTML 1.0 and HTML 2.0. However, the draft specification for HTML 3.0 included many new tags, most of which were not, and would not, be supported by browsers available at the time. So the W3C changed tack – instead of attempting to cram in lots of new features, it focused on what was currently supported. HTML 3.0 was abandoned and, in 1996, the W3C published its recommendation for HTML 3.2, which represented the consensus on HTML at that time.</p>
<p>The next recommendation after HTML 3.2 described the widely used HTML 4.0, released in 1997, and was followed in 1999 by a recommendation for HTML 4.01.<br />
<strong><br />
The latest recommendation – XHTML 1.0 </strong><br />
XHTML 1.0 is W3C&#8217;s recommendation for the latest version of HTML. XHTML 1.0 is a hybrid of XML – another, more powerful markup language called the Extensible Markup Language – and HTML 4.01. XHTML 1.0 is specified in three &#8220;flavors&#8221;:</p>
<ul>
<li> XHTML 1.0 Transitional – if you are a developer creating web pages for the general public, you should use this &#8220;flavor&#8221; because it allows you to take advantage of XHTML features such as Cascading Style Sheets, and you only have to make small changes to your documents to accommodate users viewing your pages with older browsers that don&#8217;t support XHTML</li>
<li>XHTML 1.0 Strict – this is used when you want your document to be free of any tags associated with the layout of text</li>
<li>XHTML 1.0 Frameset – this is useful when you want to use HTML Frames to partition the browser window into two or more frames</li>
</ul>
<p><strong>Watch out for old tags </strong><br />
If you read the documentation for XHTML 1.0, you will see that some tags and attributes are deprecated – which means that, although they are supported in XHTML 1.0, they may not be supported in future versions. As a result, you are strongly urged not to use the deprecated tags and attributes on the list provided by the W3C.</p>
<p>However, one of the difficulties is that some browsers may not support the tag that replaces a deprecated one. For example, in XHTML 1.0, the &lt;applet&gt; tag is deprecated in favor of &lt;object&gt;, but recent versions of Netscape Navigator do not support &lt;object&gt;. In this case, you may be forced to use &lt;applet&gt;, even though it is not recommended.</p>
<p><strong>Return of the tag wars – proprietary extensions </strong><br />
You might think that with the release of XHTML 1.0, everybody is happy – that all web site developers adhere to this specification when creating web pages and all browsers provide full support for this code. Nothing is ever this neat, however, and browser developers have included features that are not part of the current recommendation. These features are called proprietary extensions, because they supposedly &#8220;extend&#8221; the existing standard, although in most cases it&#8217;s possible to adhere to the current recommendation and develop the features that these extensions offer.</p>
<p>Two (in)famous proprietary extensions are the &lt;marquee&gt; and &lt;blink&gt; tags. Neither is part of XHTML 1.0, and in any case both are browser-specific – the &lt;marquee&gt; tag is supported by Internet Explorer but not by Netscape Navigator, and the &lt;blink&gt; tag is supported by Netscape Navigator but not Internet Explorer. For these and other reasons, such extensions should be avoided.</p>
<p><strong>Stick to the recommendation and check your code</strong><br />
When creating web pages, it&#8217;s always a good idea to conform to the latest recommendation from the W3C, who will even check any code you send them to see if it is valid. And you should test any pages you develop with several browsers and older versions of these browsers.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.icalvyn.com/html-standards-and-compliance-part-2/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Encrypting and authenticating XML data [Part 1]</title>
		<link>http://www.icalvyn.com/encrypting-and-authenticating-xml-data-part-1/</link>
		<comments>http://www.icalvyn.com/encrypting-and-authenticating-xml-data-part-1/#comments</comments>
		<pubDate>Mon, 08 Feb 2010 16:34:03 +0000</pubDate>
		<dc:creator>calvyn</dc:creator>
				<category><![CDATA[Webmastering]]></category>

		<guid isPermaLink="false">http://www.icalvyn.com/?p=2588</guid>
		<description><![CDATA[To lean on advance xml, we might need to know some W3C standards to extending the XML understanding, Encrypting and authenticating on XML data is one of the XML, XHTML and Webservices that we might need to know in order to master the XML skills Using encryption and authentication with web services As web services [...]]]></description>
			<content:encoded><![CDATA[<p>To lean on advance xml, we might need to know some W3C standards to extending the XML understanding, Encrypting and authenticating on XML data is one of the XML, XHTML and Webservices that we might need to know in order to master the XML skills</p>
<p><strong>Using encryption and authentication with web services</strong><br />
As web services become more prevalent, the issue of security becomes more important. Encryption and authentication are vital tools for achieving secure web services.</p>
<p style="text-align: center;"><img class="aligncenter" src="http://img692.imageshack.us/img692/7808/xmllogo.png" alt="encryption on xml" /></p>
<p>Security protocols such as Transport Layer Security (TLS) and Secure Sockets Layer (SSL) enable you to encrypt data and transmit it safely over the Internet. However, these protocols have a number of shortfalls, in that they provide security only between the two parties sending and receiving data at a particular moment in a transaction, rather than among all the parties in a multi-part online information exchange. For example, SSL can encrypt all details of an online purchase you make. This ensures that your credit card number is encrypted when sent to an online merchant, but it cannot ensure that the merchant then sends the number securely to a credit card verification service. XML Encryption serves to address these shortfalls. It enables you to:<span id="more-2588"></span></p>
<ul>
<li>encrypt specific parts of the data being transmitted</li>
<li>provide end-to-end security</li>
</ul>
<p>This means that you can choose to encrypt an entire document, a specific element, or the content of a specific element. For example, in an online transaction, you may need to encrypt the credit card details, but not the product details. In this case, you would encrypt a specific element or the content of a specific element rather than encrypting the entire document. You can also transmit data between more than two parties and ensure end-to-end security rather than party-to-party security. This provides opportunities for more advanced e-commerce applications.</p>
<p>Digital signatures provide authentication when using web services. They enable users to receive data that is signed by the sender and to verify the identity of the sender and the integrity of the document – that is to verify that the data has not been altered since it was sent.</p>
<p>Encryption and authentication can be used together to provide powerful security solutions. The W3C has published recommendations for both encryption and digital signatures using XML. However, these are only specifications. They do not provide implementation details. To implement XML Encryption or XML Signatures, you&#8217;ll need to create programs that use these standards.<br />
<strong><br />
Encrypting data using XML</strong><br />
The W3C&#8217;s XML Encryption standard provides a way to encrypt  any data. That data can be an entire document, a specific element, or the  content of an element. Also, it doesn&#8217;t necessarily have to be XML. The standard  then specifies a way to create an XML document to store the encrypted data.</p>
<p>Data is encrypted using the following elements &#8211;  <code>EncryptedData</code>, <code>CipherData</code>, <code>CipherValue</code>,  <code>CipherReference</code>, and <code>EncryptionMethod</code>.</p>
<p>Encrypted data generally takes the following format, where  <code>?</code> indicates zero or one occurrence and <code>*</code> indicates  zero or more occurrences of an element or attribute:</p>
<blockquote><p>&lt;EncryptedData Id? Type? MimeType?  Encoding?&gt;<br />
&lt;EncryptionMethod/&gt;?<br />
&lt;ds:KeyInfo&gt;<br />
&lt;EncryptedKey&gt;?<br />
&lt;AgreementMethod&gt;?<br />
&lt;ds:KeyName&gt;?<br />
&lt;ds:RetrievalMethod&gt;?<br />
&lt;ds:*&gt;?<br />
&lt;/ds:KeyInfo&gt;?<br />
&lt;CipherData&gt;<br />
&lt;CipherValue&gt;?<br />
&lt;CipherReference  URI?&gt;?<br />
&lt;/CipherData&gt;<br />
&lt;EncryptionProperties&gt;?<br />
&lt;/EncryptedData&gt;</p></blockquote>
<p>The <code>EncryptedData</code> element identifies the section  of an XML document that holds encrypted information. If an entire document is  encrypted, this element will serve as the root element for the encrypted  document. The <code>EncryptedData</code> element can have the following child  elements – <code>EncryptionMethod</code>, <code>ds:KeyInfo</code>,  <code>CipherData</code>, and <code>EncryptionProperties</code>. The  <code>EncryptionMethod</code> element specifies the encryption algorithm used.  The <code>ds:KeyInfo</code> element contains information on the key used to  encrypt and decrypt the data. For example, it can provide the public key that  was used for encryption.</p>
<p>The <code>CipherData</code> element can contain a  <code>CipherValue</code> or a <code>CipherReference</code> element. The  <code>CipherValue</code> element contains the encrypted data, whereas the  <code>CipherReference</code> element provides a URI describing the location of  the encrypted data. Finally, the <code>EncryptedData</code> element can contain  an optional <code>EncryptionProperties</code> element, which describes the  properties of the encrypted data, such as when it was generated.</p>
<p>For example, say you want to encrypt the following document:</p>
<blockquote><p>&lt;?xml version=&#8221;1.0&#8243; ?&gt;<br />
&lt;booking<br />
xmlns=&#8221;http://www.easynomadtravel.com/securebookings&#8221;&gt;<br />
&lt;vacation&gt;<br />
&lt;destination&gt;Acapulco&lt;/destination&gt;<br />
&lt;startDate&gt;2004-05-14&lt;/startDate&gt;<br />
&lt;endDate&gt;2004-05-28&lt;/endDate&gt;<br />
&lt;/vacation&gt;<br />
&lt;customer&gt;<br />
&lt;name&gt;Jonathan  Gold&lt;/name&gt;<br />
&lt;creditCard&gt;<br />
&lt;cardNumber&gt;1234898888999968&lt;/cardNumber&gt;<br />
&lt;cardType&gt;VISA&lt;/cardType&gt;<br />
&lt;validTo&gt;2005-01-31&lt;/validTo&gt;<br />
&lt;creditCard&gt;<br />
&lt;/customer&gt;<br />
&lt;/booking&gt;</p></blockquote>
<p>Encrypting the entire file would result in the following code:</p>
<blockquote><p>&lt;?xml version=&#8221;1.0&#8243; ?&gt;<br />
&lt;EncryptedData  xmlns=&#8221;http://www.w3.org/2001/04/xmlenc#&#8221;<br />
MimeType=&#8221;text/xml&#8221;&gt;<br />
&lt;CipherData&gt;<br />
&lt;CipherValue&gt;A23B45C56&lt;/CipherValue&gt;<br />
&lt;/CipherData&gt;<br />
&lt;/EncryptedData&gt;</p></blockquote>
<p>All of the encrypted data is contained within the  <code>EncryptedData</code> element. This element is in the XML Encryption  namespace, whose URI is <code>http://www.w3.org/2001/04/xmlenc#,</code> and  whose recommended namespace prefix is <code>xenc</code>. The  <code>MimeType</code> attribute specifies the format of the original data. Note  that the <code>CipherValue</code> in this example is a sample. A real  <code>CipherValue</code> would probably be considerably longer.</p>
<p>Encrypting the <code>creditCard</code> element only would  result in a document such as:</p>
<blockquote><p>&lt;?xml version=&#8221;1.0&#8243; ?&gt;<br />
&lt;booking<br />
xmlns=&#8221;http://www.easynomadtravel.com/securebookings&#8221;&gt;<br />
&lt;vacation&gt;<br />
&lt;destination&gt;Acapulco&lt;/destination&gt;<br />
&lt;startDate&gt;2004-05-14&lt;/startDate&gt;<br />
&lt;endDate&gt;2004-05-28&lt;/endDate&gt;<br />
&lt;/vacation&gt;<br />
&lt;customer&gt;<br />
&lt;name&gt;Jonathan  Gold&lt;/name&gt;<br />
&lt;EncryptedData  Type=<br />
&#8220;http://www.w3.org/2001/04/xmlenc#Element&#8221;<br />
xmlns=&#8221;http://www.w3.org/2001/04/xmlenc#&#8221;&gt;<br />
&lt;CipherData&gt;<br />
&lt;CipherValue&gt;A23B45C564587&lt;/CipherValue&gt;<br />
&lt;/CipherData&gt;<br />
&lt;/EncryptedData&gt;<br />
&lt;/customer&gt;<br />
&lt;/booking&gt;</p></blockquote>
<p>Only the encrypted <code>creditCard</code> element is  contained in the <code>EncryptedData</code> element. All other elements in the  document are visible. Once again, the <code>EncryptedData</code> element uses  the <code>http://www.w3.org/2001/04/xmlenc#</code> namespace. However, this time  it also uses the <code>Type</code> attribute with the value  <code>http://www.w3.org/2001/04/xmlenc#Element</code>. Note the word  <code>Element</code> at the end of the URI. This indicates that an element is  encrypted.</p>
<p>Alternatively, you could encrypt just the credit card number,  in which case the resulting document would be as follows:</p>
<blockquote><p>&lt;?xml version=&#8221;1.0&#8243; ?&gt;<br />
&lt;booking  xmlns=<br />
&#8220;http://www.easynomadtravel.com/securebookings&#8221;&gt;<br />
&lt;vacation&gt;<br />
&lt;destination&gt;Acapulco&lt;/destination&gt;<br />
&lt;startDate&gt;2004-05-14&lt;/startDate&gt;<br />
&lt;endDate&gt;2004-05-28&lt;/endDate&gt;<br />
&lt;/vacation&gt;<br />
&lt;customer&gt;<br />
&lt;name&gt;Jonathan  Gold&lt;/name&gt;<br />
&lt;creditCard&gt;<br />
&lt;cardNumber&gt;<br />
&lt;EncryptedData  Type=<br />
&#8220;http://www.w3.org/2001/04/xmlenc#Content&#8221;<br />
xmlns=&#8221;http://www.w3.org/2001/04/xmlenc#&#8221;&gt;<br />
&lt;CipherData&gt;<br />
&lt;CipherValue&gt;A23B45C564587&lt;/CipherValue&gt;<br />
&lt;/CipherData&gt;<br />
&lt;/EncryptedData&gt;<br />
&lt;/cardNumber&gt;<br />
&lt;cardType&gt;VISA&lt;/cardType&gt;<br />
&lt;validTo&gt;2005-01-31&lt;/validTo&gt;<br />
&lt;creditCard&gt;<br />
&lt;/customer&gt;<br />
&lt;/booking&gt;</p></blockquote>
<p>This time all tags remain visible. Only the content of the  <code>cardNumber</code> element has been encrypted. Again, the  <code>EncryptedData</code> element uses the  <code>http://www.w3.org/2001/04/xmlenc#</code> namespace. However, it uses the  following value for the <code>Type</code> attribute &#8211;  <code>http://www.w3.org/2001/04/xmlenc#Content</code>. The word  <code>Content</code> at the end of this URI indicates that the content of an  element is being encrypted.</p>
<p>XML encryption is key-based. Key-based encryption can be  asymmetric or symmetric. Asymmetric encryption uses public and private keys. You  use an algorithm to generate both keys. Then you send your public key to anyone  who wants to send encrypted data to you. They use the public key to encrypt the  data and then send the encrypted data to you. Then you use your private key to  decrypt the data. Symmetric encryption uses secret keys. Using symmetric  encryption, you exchange a secret key with someone who wants to send encrypted  data to you. Then you can both use the secret key to encrypt and decrypt data.</p>
<p>In a document that uses encryption, the <code>ds:KeyInfo</code> element contains  information about the key:</p>
<blockquote><p>&lt;ds:KeyInfo&gt;<br />
&lt;EncryptedKey&gt;?<br />
&lt;AgreementMethod&gt;?<br />
&lt;ds:KeyName&gt;?<br />
&lt;ds:RetrievalMethod&gt;?<br />
&lt;ds:*&gt;?<br />
&lt;/ds:KeyInfo&gt;?</p></blockquote>
<p>Note that these elements use the <code>ds</code> namespace prefix because they  occur in the XML Signature namespace rather than in the XML Encryption  namespace. For example,</p>
<blockquote><p>&lt;EncryptedData  xmlns=&#8221;http://www.w3.org/2001/04/xmlenc#&#8221;<br />
Type=&#8221;http://www.w3.org/2001/04/xmlenc#Element&#8221;/&gt;<br />
&lt;EncryptionMethod  Algorithm=<br />
&#8220;http://www.w3.org/2001/04/xmlenc#tripledes-cbc&#8221;/&gt;<br />
&lt;ds:KeyInfo  xmlns:ds=<br />
&#8220;http://www.w3.org/2000/09/xmldsig#&#8221;&gt;<br />
&lt;ds:KeyName&gt;Jonathan  Gold&lt;/ds:KeyName&gt;<br />
&lt;/ds:KeyInfo&gt;<br />
&lt;CipherData&gt;<br />
&lt;CipherValue&gt;A23B45C564587&lt;/CipherValue&gt;<br />
&lt;/CipherData&gt;<br />
&lt;/EncryptedData&gt;</p></blockquote>
<p>The <code>KeyInfo</code> and <code>KeyName</code> elements are  qualified to indicate they belong to the XML Signature namespace.</p>
<p>The data in this code sample has been encrypted using the  Triple DES algorithm. This is specified using the <code>Algorithm</code> attribute in the <code>EncryptionMethod</code> element:</p>
<blockquote><p>&lt;EncryptionMethod  Algorithm=<br />
&#8220;http://www.w3.org/2001/04/xmlenc#tripledes-cbc&#8221;/&gt;</p></blockquote>
<p>The <code>KeyInfo</code> element declares the XML Signature namespace:</p>
<blockquote><p>&lt;ds:KeyInfo xmlns:ds=<br />
&#8220;http://www.w3.org/2000/09/xmldsig#&#8221;&gt;</p></blockquote>
<p>Triple DES uses symmetric keys, and the <code>KeyName</code> element is used  here to indicate that the key used is Jonathan Gold&#8217;s.</p>
<blockquote><p>&lt;ds:KeyName&gt;Jonathan Gold&lt;/ds:KeyName&gt;</p></blockquote>
<p>Alternatively, you could use the AES algorithm to encrypt the data:</p>
<blockquote><p>&lt;EncryptedData Id=&#8217;ED&#8217;<br />
xmlns=&#8217;http://www.w3.org/2001/04/xmlenc#&#8217;&gt;<br />
&lt;EncryptionMethod  Algorithm=<br />
&#8216;http://www.w3.org/2001/04/xmlenc#aes128-cbc&#8217;/&gt;<br />
&lt;ds:KeyInfo  xmlns:ds=<br />
&#8216;http://www.w3.org/2000/09/xmldsig#&#8217;&gt;<br />
&lt;ds:RetrievalMethod  URI=&#8217;#EK&#8217;<br />
Type=&#8221;http://www.w3.org/2001/04/xmlenc#EncryptedKey&#8221;/&gt;<br />
&lt;ds:KeyName&gt;Antonia  Suares&lt;/ds:KeyName&gt;<br />
&lt;/ds:KeyInfo&gt;<br />
&lt;CipherData&gt;<br />
&lt;CipherValue&gt;A23B45C564587&lt;/CipherValue&gt;<br />
&lt;/CipherData&gt;<br />
&lt;/EncryptedData&gt;</p></blockquote>
<p>This time the value of the <code>Algorithm</code> attribute in the  <code>EncryptionMethod</code> element is  <code>http://www.w3.org/2001/04/xmlenc#aes128-cbc</code>, to indicate 128-bit  AES. The <code>RetrievalMethod</code> element is used to identify  <code>KeyInfo</code> information that is stored remotely.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.icalvyn.com/encrypting-and-authenticating-xml-data-part-1/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>HTML standards and compliance [Part 1]</title>
		<link>http://www.icalvyn.com/html-standards-and-compliance-part-1/</link>
		<comments>http://www.icalvyn.com/html-standards-and-compliance-part-1/#comments</comments>
		<pubDate>Thu, 04 Feb 2010 02:19:15 +0000</pubDate>
		<dc:creator>calvyn</dc:creator>
				<category><![CDATA[Webmastering]]></category>

		<guid isPermaLink="false">http://www.icalvyn.com/?p=2577</guid>
		<description><![CDATA[As you probably know, HTML stands for Hypertext Markup Language, the language used to create documents on the World Wide Web. It was developed during 1989 and 1990 by Tim Berners-Lee and Robert Cailliau while they were both working at CERN, the European particle physics laboratory. HTML is similar to the Standard Generalized Markup Language [...]]]></description>
			<content:encoded><![CDATA[<p>As you probably know, HTML stands for Hypertext Markup Language, the language used to create documents on the World Wide Web. It was developed during 1989 and 1990 by Tim Berners-Lee and Robert Cailliau while they were both working at CERN, the European particle physics laboratory. HTML is similar to the Standard Generalized Markup Language (SGML), which was standardized by the International Organization for Standardization in 1986. However, HTML is less complex than SGML and is much easier to learn.</p>
<p style="text-align: center;"><img class="aligncenter" src="http://img689.imageshack.us/img689/5060/htmlj.jpg" alt="hypertextmarkuplanguage" width="525" /></p>
<p><strong>The &#8216;HT&#8217; part – hypertext </strong><br />
Hypertext – invented by Ted Nelson in the 1960s – is really a special type of database format in which individual documents can be linked to each other in any number of ways. The links between different documents are called hyperlinks – these are the embedded instructions within a document that link it to another document. On the Web, hyperlinks are typically indicated by blue text. When you click the blue text, you are brought to another related file or web page.<span id="more-2577"></span></p>
<p>As its name implies, the World Wide Web is a single huge hypertext system in which an enormous amount of individual web pages are connected by an enormous number of hyperlinks. Of course, most web pages include other media elements besides text, such as graphics, animation, and audio, so the Web is more accurately described as a hypermedia system.</p>
<p><strong>The &#8216;M&#8217; – markup </strong><br />
Markup refers to the characters or symbols that you place within a document to determine how the document will look when printed or displayed. Markup indicators can also give a document its logical structure.</p>
<p>In HTML, these indicators are usually called tags, which are the characters or words enclosed in angle brackets that you can see in any HTML document if you open it in your browser and select View &#8211; Source (Internet Explorer) – or View &#8211; Page Source (Netscape Navigator).</p>
<p>Opening tags mark the start of the tagged part of the document affected by the tag and have a pair of angle brackets &lt;&gt;, whereas closing tags, which mark the end of the tagged section, have a forward slash within a pair of angle brackets &lt;/&gt;. Characters inside the brackets determine what the tag actually does. So, for example, these are the opening &lt;b&gt; and closing &lt;/b&gt; bold tags. If you surround some text in an HTML document with the &lt;b&gt; and &lt;/b&gt; tags, the text inside the tags will be displayed as bold if the document is opened by an HTML interpreter, such as a web browser. Other common tags include the opening &lt;body&gt; and closing &lt;/body&gt; tags for marking the body of a document, the opening &lt;ul&gt; and closing &lt;/ul&gt; tags for bulleted lists, and the opening &lt;tr&gt; and closing &lt;/tr&gt; table row tags.</p>
<p>You can also add hyperlinks to your document by using the opening &lt;a href = &#8220;URL&#8221;&gt; and closing &lt;/a&gt; tags, where URL is the address of the web page or resource that will be opened or called when the user clicks the link. In essence, HTML is the set of markup indicators, or tags, that you can insert into a file so that it can be displayed as a web page.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.icalvyn.com/html-standards-and-compliance-part-1/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Submit Your Website to Bing.com, a New Search Engine from Microsoft</title>
		<link>http://www.icalvyn.com/submit-your-website-to-bingcom-a-new-search-engine-from-microsoft/</link>
		<comments>http://www.icalvyn.com/submit-your-website-to-bingcom-a-new-search-engine-from-microsoft/#comments</comments>
		<pubDate>Tue, 09 Jun 2009 16:01:16 +0000</pubDate>
		<dc:creator>calvyn</dc:creator>
				<category><![CDATA[Blogging Tips & Tools]]></category>
		<category><![CDATA[Webmastering]]></category>

		<guid isPermaLink="false">http://www.icalvyn.com/?p=1948</guid>
		<description><![CDATA[Honestly, I am a traffic freak who very fever on Search Engine (SE) traffic. People said No matter black cat or white cat, as long can catch mouse is a good cat. For me, No matter is Big Search Engine or Small Search Engine, new or old, famous or non famous, as long can bring [...]]]></description>
			<content:encoded><![CDATA[<p>Honestly, I am a <strong>traffic freak</strong> who very fever on Search Engine (SE) traffic.</p>
<p>People said</p>
<blockquote><p>No matter black cat or white cat, as long can catch mouse is a good cat.</p></blockquote>
<p>For me,</p>
<blockquote><p>No matter is Big Search Engine or Small Search Engine, new or old, famous or non famous, as long can bring me traffic is a GOOD Search Engine.</p></blockquote>
<p style="text-align: center;"><img class="aligncenter" src="http://img410.imageshack.us/img410/9070/msbing.jpg" alt="bing.com" /></p>
<p>Recently I come across this new Search Engine name BING.com; this SE belong to Microsoft, basically the algorithm are almost same with their others SE, such as live.com and msn.com. (I guess).</p>
<p>A lot of blogger blog about this Search Engine, but non of them show <strong>how to submit your website to this Bing.com</strong> Search Engine&#8230; Well,without talking much, let this <strong>Malaysia LIFE Tech Blog</strong> show you what is call <strong>LIFE blogging</strong> <img src='http://www.icalvyn.com/wp-includes/images/smilies/icon_razz.gif' alt=':P' class='wp-smiley' />  <span id="more-1948"></span></p>
<p>Here the URL you need.</p>
<h1><a rel="nofollow" href="http://www.bing.com/docs/submit.aspx" target="_blank"><strong><span style="color: #ff0000;">http://www.bing.com/docs/submit.aspx</span></strong></a></h1>
<p>Ok, without talking much, lets submit our website togetgher. If you feel not enough to submit only for 1 Search Engine, here have a list of major search engine in the world. Let <a title="how to submit website to search engine" href="http://www.icalvyn.com/submit-your-website-to-search-engine/">Submit URL to Search Engine</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.icalvyn.com/submit-your-website-to-bingcom-a-new-search-engine-from-microsoft/feed/</wfw:commentRss>
		<slash:comments>21</slash:comments>
		</item>
	</channel>
</rss>

