<?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>XMLProNews</title>
	<atom:link href="http://www.xmlpronews.com/feed" rel="self" type="application/rss+xml" />
	<link>http://www.xmlpronews.com</link>
	<description>Just another DevWebPro Network site</description>
	<lastBuildDate>Tue, 21 Feb 2012 17:09:51 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>XML vs. JSON &#8212; How Many Data Structures Does It Take&#8230;</title>
		<link>http://www.xmlpronews.com/xml-vs-json-how-many-data-structures-does-it-take</link>
		<comments>http://www.xmlpronews.com/xml-vs-json-how-many-data-structures-does-it-take#comments</comments>
		<pubDate>Tue, 21 Feb 2012 15:07:47 +0000</pubDate>
		<dc:creator>Trevor Boland</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.xmlpronews.com/?p=6611</guid>
		<description><![CDATA[We&#8217;ve all probably seen the debates. Forums abound with web developers touting the pros of their preferred data structure while burning the other in effigy. What&#8217;s difficult to find in the sea of rhetoric is the actual answer. So we must ask ourselves, is there even an answer? Is one &#8230;]]></description>
			<content:encoded><![CDATA[<p>We&#8217;ve all probably seen the debates.  Forums abound with web developers touting the pros of their preferred data structure while burning the other in effigy.  What&#8217;s difficult to find in the sea of rhetoric is the actual answer.  So we must ask ourselves, is there even an answer?  Is one structure truly better than the other.  Well as the <a href="http://www.youtube.com/watch?v=Jhjb4P_jnKk">tootsie roll pop owl</a> said, let&#8217;s find out.</p>
<p><span id="more-6611"></span><br />
First, let&#8217;s discuss XML.  <a href="http://en.wikipedia.org/wiki/XML">XML (Extensible Markup Language)</a> was endorsed by WC3 in early 1998, giving it the leg up on age.  That age has given it the advantage of being widely utilized and accessible.  Another plus for XML is it&#8217;s readability.  A person with little to no understanding of data structures can look at an XML object and make safe assumptions as to it&#8217;s meaning.  Finally, XML has multiple frameworks associated with it as well as being used by nearly 80% of the online APIs available.</p>
<p>
Now onto JSON.  JSON (JavaScript Object Notation) began being used around 2001 by State Software.  While JSON is harder to read for some, programmers have no issues as the format is similar to most language&#8217;s arrays.  JSON also takes up considerably less space when considering larger amounts of data because it does not require the closing tags that XML does.  JSON is also far easier to process in a program.  XML requires nested each loops for a complex structure while JSON can accomplish the same with a simple for loop.</p>
<p>
Perhaps, however, I am not the owl with the answer in this case but the crotchety old turtle telling you to look somewhere else.  Like maybe the current trends in web development.  As of mid 2011, <a href="http://blog.programmableweb.com/2011/05/25/1-in-5-apis-say-bye-xml/">20% of the API&#8217;s were using strictly JSON</a>.  This may not seem that high but when you consider this is up from less than 5% only 3 years prior it&#8217;s impressive.  The fact is that JSON is preferred by web developers and those who offer APIs want to cater to those web developers.  But then again, we could be wrong.  After all, we all know that owl was just a sugar crazed scammer.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.xmlpronews.com/xml-vs-json-how-many-data-structures-does-it-take/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Wolfram Alpha Professional Available Wednesday, Supports XML Import/Export</title>
		<link>http://www.xmlpronews.com/wolfram-alpha-professional-available-wednesday-supports-xml-importexport</link>
		<comments>http://www.xmlpronews.com/wolfram-alpha-professional-available-wednesday-supports-xml-importexport#comments</comments>
		<pubDate>Tue, 07 Feb 2012 17:52:47 +0000</pubDate>
		<dc:creator>William Berry</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.xmlpronews.com/?p=6609</guid>
		<description><![CDATA[On Wednesday, Wolfram Research will release a professional edition of Alpha, its &#8216;computational knowledge engine&#8217;. For those not familiar with its current incarnation, Wolfram Alpha (also written WolframAlpha and Wolfram&#124;Alpha) is an answer-engine developed by Wolfram Research. It is an on-line service that answers factual queries directly by computing the &#8230;]]></description>
			<content:encoded><![CDATA[<p>On Wednesday, Wolfram Research will release a professional edition of <a target="_blank" href="http://www.wolframalpha.com/">Alpha</a>, its &#8216;computational knowledge engine&#8217;.<span id="more-6609"></span><br />
For those not familiar with its current incarnation, </p>
<blockquote><p>Wolfram Alpha (also written WolframAlpha and Wolfram|Alpha) is an answer-engine developed by Wolfram Research. It is an on-line service that answers factual queries directly by computing the answer from structured data, rather than providing a list of documents or web pages that might contain the answer as a search engine might. It was announced in March 2009 by British scientist Stephen Wolfram, and was released to the public on 15 May 2009.</p></blockquote>
<p>At present, Alpha draws all its answers only from Wolfram-curated data sets.</p>
<p>The <a target="_blank" href="http://www.wolframalpha.com/professional.html">professional edition</a> will be able to draw answers from user data sets (submitted as XML or other formats) also.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.xmlpronews.com/wolfram-alpha-professional-available-wednesday-supports-xml-importexport/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Belated Holiday Gift From Vasont to XML Developers</title>
		<link>http://www.xmlpronews.com/belated-holiday-gift-from-vasont-to-xml-developers</link>
		<comments>http://www.xmlpronews.com/belated-holiday-gift-from-vasont-to-xml-developers#comments</comments>
		<pubDate>Fri, 13 Jan 2012 14:42:37 +0000</pubDate>
		<dc:creator>Trevor Boland</dc:creator>
				<category><![CDATA[XML]]></category>

		<guid isPermaLink="false">http://www.xmlpronews.com/?p=6605</guid>
		<description><![CDATA[Pennsylvania based Vasont Systems has published two new white papers containing information relating to the implementation of a CCMS (component content management system) as well as tips to help technical communications teams and publishing groups strategize successfully. One of the white papers helps the reader choose the right CCMS for &#8230;]]></description>
			<content:encoded><![CDATA[<p>Pennsylvania based <a href="http://www.vasont.com/">Vasont Systems</a> has published two new white papers containing information relating to the implementation of a CCMS (component content management system) as well as tips to help technical communications teams and publishing groups strategize successfully.<br />
<span id="more-6605"></span><br />
One of the white papers helps the reader choose the right CCMS for their organization by explaining the associated factors they must consider. The paper explains why it may be advantageous to choose a system that stays in the organization&#8217;s comfort zone, as opposed to changing things from the bottom up. This paper is aptly titled Choosing the Right Content Management System.</p>
<p>The other paper sways to the financial side of development, focusing on issues of cost surrounding the use of translation memory in language translations. In the end (spoiler alert) it explains why the user can save significant costs by utilizing their Vasont Content Management System&#8217;s Translation Savings Feature within technical communications groups as well as buyers of localization services.<br />
Both papers are available to subscribers of Vasont&#8217;s website. If you&#8217;re not a subscriber you can <a href="http://www.vasont.com/">register here</a> for access.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.xmlpronews.com/belated-holiday-gift-from-vasont-to-xml-developers/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Introduction to XML Namespaces</title>
		<link>http://www.xmlpronews.com/introduction-to-xml-namespaces</link>
		<comments>http://www.xmlpronews.com/introduction-to-xml-namespaces#comments</comments>
		<pubDate>Thu, 15 Dec 2011 14:10:59 +0000</pubDate>
		<dc:creator>Michael Marr</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.xmlpronews.com/?p=6602</guid>
		<description><![CDATA[The flexibility of XML allows for you to automatically create ways to represent data in a meaningful way. If there is a particular organization or structure of a group of objects or set of data you are trying to represent, you can create the appropriate elements to represent these structures. &#8230;]]></description>
			<content:encoded><![CDATA[<p>The flexibility of XML allows for you to automatically create ways to represent data in a meaningful way. If there is a particular organization or structure of a group of objects or set of data you are trying to represent, you can create the appropriate elements to represent these structures. For example, we might use a <code>&lt;race&gt;</code> element to represent the race of a <code>&lt;person&gt;</code> element. Likewise, we might be storing infomation in the same file about a marathon the <code>&lt;person&gt;</code> has run in a <code>&lt;race&gt;</code> element. This situtation creates some confusion, and is where XML namespaces come in handy.</p>
<pre>&lt;person&gt;
  &lt;name&gt;Bob&lt;/name&gt;
  &lt;race&gt;Caucasian&lt;/race&gt;
  &lt;race&gt;Boston Marathon&lt;/race&gt;

&lt;/person&gt;
</pre>
<p>Utilizing namespaces, we can make each <span style="font-style: italic;">race</span> have more meaning.</p>
<pre>&lt;person
xmlns:p="<a href="http://www.xmlpronews.com/person" target="_blank">http://www.<wbr>xmlpronews.com/person</a>"
xmlns:r="<a href="http://www.xmlpronews.com/race" target="_blank">http://www.<wbr>xmlpronews.com/race</a>"&gt;

  &lt;p:name&gt;Bob&lt;/name&gt;
  &lt;p:race&gt;Caucasian&lt;/race&gt;
  &lt;r:race&gt;Boston Marathon&lt;/race&gt;
&lt;/person&gt;
</pre>
<p>With XML Namespaces declared, a <code>p:</code> element represents something in the namespace described at <a href="http://www.xmlpronews.com/person" target="_blank">http://www.xmlpronews.com/<wbr>person</a>. This file does not actually exist, but, if it did, would simply describe the available elements for the namespace. The W3C XML namespace for HTML4 can be found at <a href="http://www.w3.org/TR/html4" target="_blank">http://www.w3.org/TR/html4</a>. There is no required format for these namespace pages.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.xmlpronews.com/introduction-to-xml-namespaces/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Open Xml Gateway Released To The Public For Free</title>
		<link>http://www.xmlpronews.com/open-xml-gateway-released-to-the-public-for-free</link>
		<comments>http://www.xmlpronews.com/open-xml-gateway-released-to-the-public-for-free#comments</comments>
		<pubDate>Wed, 30 Nov 2011 21:18:35 +0000</pubDate>
		<dc:creator>Qushawn Clark</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.xmlpronews.com/?p=6599</guid>
		<description><![CDATA[Corisecio, a corporate information security firm, has recently released the Open Xml Gateway, which is built to protect IT infrastructure from specific types of outside attacks. &#160; According the the Corisecio website, the software “provides e.g. protection methods against SQL injection and XXE attacks and enables realization of scheme validation &#8230;]]></description>
			<content:encoded><![CDATA[<p><span style="color: #000080;"><span style="text-decoration: underline;"><a href="http://www.corisecio.com/">Corisecio</a></span></span>, a corporate information security firm, has recently released the <span style="color: #000080;"><span style="text-decoration: underline;"><a href="http://www.corisecio.com/products/soa/xml_gateway/overview.php">Open Xml Gateway</a></span></span>, which is built to protect IT infrastructure from specific types of outside attacks.</p>
<p>&nbsp;</p>
<p>According the the Corisecio website, the software “provides e.g. protection methods against SQL injection and XXE attacks and enables realization of scheme validation like WS-security standards.” Most people out there know about SQL injections, simply because there have been so many attacks of various types around the business sector lately. However, not many people know what an XXE attack actually is, and I am here to enlighten. According to <span style="color: #000080;"><span style="text-decoration: underline;"><a href="http://www.securiteam.com/securitynews/6D0100A5PU.html">SecuriTeam.com</a></span></span></p>
<p>&nbsp;</p>
<p><span style="font-size: x-small;">“(An) XXE (Xml eXternal Entity) attack is an attack on an application that parses XML input from untrusted sources using incorrectly configured XML parser. The application may be coerced to open arbitrary files and/or TCP connections.”</span></p>
<p>&nbsp;</p>
<p><span style="font-size: small;">Anybody that works in network administration or security can see how this could be extremely problematic. This offering is supposed to help protect against such attacks, and considering the fact that it is free, it may be worth a try. Some to the the listed features are:</span></p>
<ul>
<li>Easy to use, install, and administer</li>
<li>An XML Firewall</li>
<li>A Web Service Security Suite</li>
<li>can be implement in a variety of infrastructures, including a virtual platform</li>
</ul>
<p>If you are looking for something to cover another possible security hole that you may not have thought of, then go and check this out at <span style="color: #000080;"><span style="text-decoration: underline;"><a href="http://secrt.corisecio.com/">http://secrt.corisecio.com/</a></span></span>.</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
]]></content:encoded>
			<wfw:commentRss>http://www.xmlpronews.com/open-xml-gateway-released-to-the-public-for-free/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Major Flaw In XML Encryption Standard Comes To Light</title>
		<link>http://www.xmlpronews.com/major-flaw-in-xml-encryption-standard-comes-to-light</link>
		<comments>http://www.xmlpronews.com/major-flaw-in-xml-encryption-standard-comes-to-light#comments</comments>
		<pubDate>Tue, 01 Nov 2011 19:27:27 +0000</pubDate>
		<dc:creator>Qushawn Clark</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.xmlpronews.com/?p=6595</guid>
		<description><![CDATA[It looks like its time to really tighten up your XML implementations to stop all other types of attacks, because researchers say &#8220;there is no simple patch for this problem.&#8221; As anyone who would read this would know, XML is a hugely popular way to encrypt data being transferred over &#8230;]]></description>
			<content:encoded><![CDATA[<p>It looks like its time to really tighten up your XML implementations to stop all other types of attacks, because <a href="http://www.informationweek.com/news/security/vulnerabilities/231901532 ">researchers say</a> &#8220;there is no simple patch for this problem.&#8221;<br />
<span id="more-6595"></span><br />
As anyone who would read this would know, XML is a hugely popular way to encrypt data being transferred over the Internet. Back in 2002, W3C standardized the encryption system and many companies now offer open-source and commercial frameworks that can be easily implemented.</p>
<p>The researchers who found the problem, Juraj Somorovsky and Tibor Jager from Ruhr-University Bochum in Germany, <a href="http://www.informationweek.com/news/security/vulnerabilities/231901532">reported</a> in their paper that &#8220;they were able to decrypt data by sending modified ciphertexts to the server, by gathering information from the received error messages.&#8221; They also see it a such an important issue because &#8220;It is employed in a large number of major web-based applications, ranging from business communications, e-commerce, and financial solutions.&#8221;</p>
<p>According to <a href="http://www.theregister.co.uk/2011/11/01/amazon_downplays_cloud_crypto_flaw/">statements</a> from Amazon.com officials, they were notified by the researchers through the W3C email list and they have already taken care of the problem in their systems. They are doing their best to ensure their customers that all of their data is still safe and is no longer in any danger from this threat. This would mostly be an issue for those using Amazons cloud computing services under their EC2 platform.</p>
<p>If you are directly affected by this, do your best to either fix the problem yourself or at least keep your eye out for updates on revisions of the XML standard. As more problems will most likely arise from this situation, there will likely be a great deal of effort to get the fix out there to the public.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.xmlpronews.com/major-flaw-in-xml-encryption-standard-comes-to-light/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Popular XML Editors To Choose From</title>
		<link>http://www.xmlpronews.com/popular-xml-editors-to-choose-from</link>
		<comments>http://www.xmlpronews.com/popular-xml-editors-to-choose-from#comments</comments>
		<pubDate>Thu, 13 Oct 2011 14:36:14 +0000</pubDate>
		<dc:creator>Qushawn Clark</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.xmlpronews.com/?p=6592</guid>
		<description><![CDATA[For those of you out there looking for a professional XML editor, here a short list of some of the most popular ones at the moment. Oxygen XML Editor &#8211; this is definitely one of the most popular and feature heavy of the XML editors out there. It is supported &#8230;]]></description>
			<content:encoded><![CDATA[<p>For those of you out there looking for a professional XML editor, here a short list of some of the most popular ones at the moment.<span id="more-6592"></span></p>
<p>Oxygen XML Editor &#8211; this is definitely one of the most popular and feature heavy of the XML editors out there. It is supported on all three of the major platforms, has an XSLT debugger, and also can be run as a plugin for Eclipse (which is hugely popular itself). It also has the ability to edit files other than XML and XSL files such as CSS and HTML files, which would be very handy, given the typical usage for XML files in web environments. </p>
<p>Liquid XML Editor – This editor is very similar to Oxygen featurewise, but this editor is only available for the Windows platform, which clearly limits a lot of its customer base. Regardless of that, if for some reason you are running Windows, then this may be the editor for you.</p>
<p>Serna-free &#8211; This is an open-source editor available on the Syntex website. This editor is also available for all of the major platforms, but unlike the other editors does not have the ability to edit not XML files.  They also have an enterprise version available for download.  </p>
<p>Go out and take a look at some of these editors and see which one works for you (all of them have free trial versions for download).</p>
<p>http://www.oxygenxml.com/</p>
<p>http://www.liquid-technologies.com/xml-editor.aspx</p>
<p>http://www.syntext.com/products/serna-free/</p>
]]></content:encoded>
			<wfw:commentRss>http://www.xmlpronews.com/popular-xml-editors-to-choose-from/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Open Office XML: Formatting Text in WordprocessingML</title>
		<link>http://www.xmlpronews.com/open-office-xml-formatting-text-in-wordprocessingml</link>
		<comments>http://www.xmlpronews.com/open-office-xml-formatting-text-in-wordprocessingml#comments</comments>
		<pubDate>Tue, 27 Sep 2011 09:12:56 +0000</pubDate>
		<dc:creator>Michael Marr</dc:creator>
				<category><![CDATA[XML]]></category>

		<guid isPermaLink="false">http://www.devwebpro.com/?p=12052</guid>
		<description><![CDATA[Building a plain text document is something we can do via the wonderful .txt file. However, if we&#8217;re taking the time to use the Open Office XML format, specifically the WordprocessinML format, we want to be able to format our generated document. In this article, we&#8217;ll examine WordprocessingML closer so &#8230;]]></description>
			<content:encoded><![CDATA[<p>Building a plain text document is something we can do via the wonderful .txt file. However, if we&#8217;re taking the time to use the Open Office XML format, specifically the WordprocessinML format, we want to be able to format our generated document. In this article, we&#8217;ll examine WordprocessingML closer so that we can do just that.</p>
<p><span id="more-6434"></span></p>
<p>The key to text formatting is the run. As previously discussed, a run is a particular block of text with the particular purpose of applying formatting. If you are familiar with HTML, consider the run akin to the <code>&lt;span&gt;</code> tag.</p>
<pre style="font-family: courier, monospace;width: 85%;padding: 5px;background-color: #f0f0f0">
&lt;w:document&gt;
	&lt;w:body&gt;
		&lt;w:p&gt;
			&lt;w:r&gt;
				&lt;w:t&gt;Hello, world!&lt;/w:t&gt;
			&lt;/w:r&gt;
		&lt;/w:p&gt;
	&lt;/w:body&gt;
&lt;/w:document&gt;
</pre>
<p>The above is an unformatted run. To format a run, we need to supply properties for the particular run via the <code>rPr</code> element.</p>
<pre style="font-family: courier, monospace;width: 85%;padding: 5px;background-color: #f0f0f0">
. . .
	&lt;w:p&gt;
		&lt;w:rPr&gt;
			&lt;w:b/&gt;
		&lt;/w:rPr&gt;
		&lt;w:t&gt;I am bold!&lt;/w:t&gt;
	&lt;/w:p&gt;
. . .
</pre>
<p>By simply specifying a run properties entity and putting in other run property elements, we are able to format our text. However, we can also order a particular run to not use a particular format:</p>
<pre style="font-family: courier, monospace;width: 85%;padding: 5px;background-color: #f0f0f0">
. . .
   &lt;w:rPr&gt;
      &lt;w:b w:val="false" /&gt;
   &lt;/w:rPr&gt;
. . .
</pre>
<p>This would be useful for ignoring higher level formatting from being applied to a particular run of text. Other than explicitly stating whether or not to apply a format option, we also have formatting elements that need attribute values to work. For example, the color entity:</p>
<pre style="font-family: courier, monospace;width: 85%;padding: 5px;background-color: #f0f0f0">
. . .
   &lt;w:rPr&gt;
      &lt;w:color w:val="FF0000" /&gt;
   &lt;/w:rPr&gt;
. . .
</pre>
<p>This example will make the run of text red, and follows the HTML color attribute style. You can also define &#8220;auto&#8221; as a value, which will automatically apply the appropriate color based on other parts defined in the document, i.e. a background part may specify an appropriate default font color. </p>
<p>Furthermore, there are theme level attributes available, i.e. the <code>themeColor</code> attribute. Often, you may have a document that specifies a Default, Heading, Sub-Heading, etc. formats, and this attribute can tap into those defined formats. Since these defined formats are stored within the document, we can generate these along with our document. Doing so will make it easier for anyone potentially modifying our generated document to maintain the various heading and text formatting across any modifications or additions they make. For our next article, we&#8217;ll examine how to add these predefined formats to our generated document.</p>
<p>For a more in depth list of text formatting options and entities, check out: http://openxmldeveloper.org</p>
]]></content:encoded>
			<wfw:commentRss>http://www.xmlpronews.com/open-office-xml-formatting-text-in-wordprocessingml/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Open Office XML: Introduction to WordprocessingML</title>
		<link>http://www.xmlpronews.com/open-office-xml-introduction-to-wordprocessingml</link>
		<comments>http://www.xmlpronews.com/open-office-xml-introduction-to-wordprocessingml#comments</comments>
		<pubDate>Mon, 26 Sep 2011 15:31:40 +0000</pubDate>
		<dc:creator>Michael Marr</dc:creator>
				<category><![CDATA[XML]]></category>

		<guid isPermaLink="false">http://www.devwebpro.com/?p=11956</guid>
		<description><![CDATA[Previously, we were introduced to Open Office XML. The ability to leverage OOXML in our applications will allow us to create documents, spreadsheets, and presentations easily opened and usable in the most popular office applications. The most common of these applications is the word processor, and we&#8217;ll introduce ourselves to &#8230;]]></description>
			<content:encoded><![CDATA[<p>Previously, we were <span LANG="zxx"><u><a HREF="http://www.devwebpro.com/open-office-xml-an-introduction/">introduced  to Open Office XML</a></u></span>. The ability to leverage  OOXML in our applications will allow us to create documents,  spreadsheets, and presentations easily opened and usable in the most  popular office applications. The most common of these applications is  the word processor, and we&#8217;ll introduce ourselves to the world in  this tutorial.</p>
<p>A WordprocessingML package contains a  main part that strongly resembles an HTML document structure. A  <code style="font-family: courier, monospace;font-size: inherit;line-height: inherit">body</code> contains one to many  <code style="font-family: courier, monospace;font-size: inherit;line-height: inherit">paragraph</code>s, which contain one to many  <code style="font-family: courier, monospace;font-size: inherit;line-height: inherit">run</code>s. A <code style="font-family: courier, monospace;font-size: inherit;line-height: inherit">run</code> is akin  to an HTML <code style="font-family: courier, monospace;font-size: inherit;line-height: inherit">span</code>, which encapsulates a  segment of text that formatting can be applied to. In fact, a  <code style="font-family: courier, monospace;font-size: inherit;line-height: inherit">style</code> is used to repeat formatting across  various <code style="font-family: courier, monospace;font-size: inherit;line-height: inherit">run</code>s and/or <code style="font-family: courier, monospace;font-size: inherit;line-height: inherit">paragraph</code>s,  much like CSS does in HTML.</p>
<p><span id="more-6573"></span></p>
<p>As mentioned in our introduction, a  final OOXML document is actually a collection of files that make up  the document. Here is the structure we&#8217;ll be creating today:</p>
<pre style="font-family: courier, monospace;width: 500px;padding: 5px;background-color: #f0f0f0">
/[Content_Types].xml
  /_rels/.rels
  /document.xml</pre>
<p>This structure is actually the minimum  required by OOXML, and when we begin to do more advanced layouts,  we&#8217;ll need a much more complex structure. The  <code style="font-family: courier, monospace;font-size: inherit;line-height: inherit">[Content_Types].xml</code> file defines what types  of files this package contains. For our example:</p>
<pre style="font-family: courier, monospace;width: 630px;padding: 5px;background-color: #f0f0f0">&lt;Types  xmlns=&quot;http://schemas.openxmlformats.org/package/2006/content-types&quot;&gt;
  &lt;Default Extension=&quot;rels&quot;  ContentType=&quot;application/vnd
  .openxmlformats-package.relationships+xml&quot;/&gt;
  &lt;Override PartName=&quot;/document.xml&quot;  ContentType=&quot;application/vnd
  .openxmlformats-officedocument.wordpressingml.document.main+xml&quot;/&gt;
  &lt;/Types&gt;</pre>
<p>The <code style="font-family: courier, monospace;font-size: inherit;line-height: inherit">Default  Extension</code> element will tell the package to use the  specified <code style="font-family: courier, monospace;font-size: inherit;line-height: inherit">ContentType</code> for any file with the  specified extension. <code style="font-family: courier, monospace;font-size: inherit;line-height: inherit">Override PartName</code> will  explicitly define what <code style="font-family: courier, monospace;font-size: inherit;line-height: inherit">ContentType</code> should be  used for a given file (part). In our example, we have defined that  every file with the .rels extension is a relationship, and the  document.xml file is a WordprocessingML main part.</p>
<p>Next, we&#8217;ll define our single  relationship in our &quot;Hello, world&quot; document:</p>
<pre style="font-family: courier, monospace;width: 630px;padding: 5px;background-color: #f0f0f0">&lt;Relationships
xmlns=&quot;http://schemas.openxmlformats.org/package/2006/relationships&quot;&gt;
  &lt;Relationship Id=&quot;rId1&quot; Type=&quot;http://schemas.openxmlformats.org/
  officeDocument/2006/relationships/officeDocument&quot;  Target=&quot;document.xml&quot;/&gt;
  &lt;/Relationships&gt;</pre>
<p>Finally, we&#8217;ll build our document.xml:</p>
<pre style="font-family: courier, monospace;width: 500px;padding: 5px;background-color: #f0f0f0">&lt;w:document&gt;
  &lt;w:body&gt;
  &lt;w:p&gt;
  &lt;w:r&gt;&lt;w:t&gt;Hello,  world&lt;/w:t&gt;&lt;/w:r&gt;
  &lt;/w:p&gt;
  &lt;/w:body&gt;
  &lt;/w:document&gt;</pre>
<p>Now, we zip up our files as a .docx  file, and we can open it up any OOXML compliant word processor! Next  article, we&#8217;ll look at more advanced uses to format our document.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.xmlpronews.com/open-office-xml-introduction-to-wordprocessingml/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Open Office XML: An Introduction</title>
		<link>http://www.xmlpronews.com/open-office-xml-an-introduction</link>
		<comments>http://www.xmlpronews.com/open-office-xml-an-introduction#comments</comments>
		<pubDate>Sun, 25 Sep 2011 13:04:06 +0000</pubDate>
		<dc:creator>Michael Marr</dc:creator>
				<category><![CDATA[XML]]></category>

		<guid isPermaLink="false">http://www.devwebpro.com/?p=11867</guid>
		<description><![CDATA[Since Microsoft&#8217;s introduction of the Open Office XML format, it has slowly become an industry accepted standard. Those nifty little &#8220;.[file-type]x&#8221; formats, i.e. .docx, .xlsx, .pptx, are openable by the standard selection of office application suites. Because of this standard, we can programmatically create documents, spreadsheets, or even presentations via &#8230;]]></description>
			<content:encoded><![CDATA[<p>Since Microsoft&#8217;s introduction of the Open Office XML format, it has slowly become an industry accepted standard. Those nifty little &#8220;.[file-type]x&#8221; formats, i.e. .docx, .xlsx, .pptx, are openable by the standard selection of office application suites. Because of this standard, we can programmatically create documents, spreadsheets, or even presentations via XML. In this article, we&#8217;ll introduce you to the terminology and basic concepts you&#8217;ll need to know.<br />
<span id="more-5977"></span><br />
A file is made up of packages and parts. A package is, in essence, the collective file, or can also be simply a collection of parts. A part can be a block of text, an image, or a cell in a spreadsheet.</p>
<p>The standard office formats, documents, spreadsheets, and presentations, have particular sub-languages of the Open Office XML structure: WordrocessingML, SpreadsheetML, and PresentationML, respectively. Each of these sub-languages go into more depth on how to build the appropriate parts, relationships, and characteristics of that particular filetype. There also existing supporting sub-languages, such as DrawingML, that are more directly tuned and related to typical parts found in these documents.</p>
<p>Generating parts is pretty straightforward:</p>
<pre style="font-family: courier, monospace;width: 550px;padding: 5px;background-color: #f0f0f0">
&lt;w:document&gt;
  &lt;w:body&gt;
    &lt;w:p/&gt;
  &lt;/w:body&gt;
&lt;/w:document&gt;
</pre>
<p>In this example, we have a document part, a body to that document, and a paragraph. Each XML entity, in this example, is considered to be a part of an OOXML package.</p>
<p>Where OOXML becomes powerful, however, is not the simple creation and customization of parts. Relationships, i.e. how parts relate to one another and the package itself, is where you can truly begin to build more advanced documents. A common relationship is for an image:</p>
<pre style="font-family: courier, monospace;width: 550px;padding: 5px;background-color: #f0f0f0">
&lt;w:pict&gt;
  &lt;v:imagedata r:id="rId4"/&gt;
&lt;/w:pict&gt;
</pre>
<pre style="font-family: courier, monospace;width: 550px;padding: 5px;background-color: #f0f0f0">
&lt;Relationships ...&gt;
   &lt;Relationship Id="rId4" Type="../relationships/image"
      Target="image.jpg" /&gt;
&lt;/Relationships&gt;
</pre>
<p>With this example, we have an image referenced to the external file of image.jpg via a relationship. Relationships are referenced via the <code style="font-family: courier, monospace;font-size: inherit;line-height: inherit">Id</code> attribute.</p>
<p>In our next article, we&#8217;ll build a &#8220;Hello, world!&#8221; document with Open Office XML and WordprocessingML.</p>
<p>For more information, check out: http://openxmldeveloper.org/</p>
]]></content:encoded>
			<wfw:commentRss>http://www.xmlpronews.com/open-office-xml-an-introduction/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>

