News and expert insight that help managers create strategy and change directions.
Contact | About
July 01, 2010
To Parse or Not to Parse: CDATA Explained
By Michael Marr
To parse, or not to parse: that is the problem when your XML element values have characters that would otherwise be interpreted by an XML parser as syntax. However, we can use a special XML wrapper around our potentially dangerous text to solve this problem.

All the data in an XML document is initially considered PCDATA, or parsed character data. When interpreting a XML file, a parser will build the nodes by looking for a <element> tag to start an element, and a </element> to end the same element. In short, a parser is looking for the less than sign (<) to parse the text following it as an element name and attributes or the close of an element. After a element definition or closure finished, signified by the greater than sign (>), the parser will continue to look for another element and, if inside an existing element, the close of an element.

Continue Reading
Interested in contributing to the XML community?
Can you write expert tutorials and articles about the ever evolving landscape of XML environments? If so, we are looking for you. Contact techwriters@ientry.com.



Today's Top Videos:
Social Media Benefits for Search
As the interest in social media continues to grow, it's fascinating to see how it intersects with search. WebProNews recently spoke...
How Testing Results in Smart Decisions
Most people understand that testing is important, but as Conrad Saam of Avvo tells WebProNews, properly testing is...
Online Attribution: Give Credit Where Credit Is Due
According to Richard Zwicky of Eightfold Logic, formerly Enquisite, marketers are not effectively monitorin...
Recent Articles:
The Mystique of XSLT: Changing XML to Other Usable Formats
With the use of XML as prevalent as finding an X-gene at Xavier's School for Gifted Youngsters, it is vital to know how to change XML to a different data format. With XSLT, this can be done easily.

For an easy to replicate example, let's take a Wordpress blog, dump the wp_posts table into XML, and then use XSLT to generate properly formed SQL INSERT statements. To dump our SQL data, we use the –xml flag on mysql and/or mysqldump:
Read More...

XSLTransforming Society
I previously wrote about how XPath can ease the pains of working with large XML files. The example used there revolved around a storage/retrieval type of situation, and thus XPath handled the job nicely. However, what happens when you are needing to grab...
Read More...
New Partners Aim To Improve XML Content...
Enterprises that have to deal with XML content may now have an easier time of things thanks to JustSystems and Stilo International. The two companies recently announced a partnership precisely for the sake of enabling enterprises...
Read More...
Using XML Sitemaps To Find Important Content
I don't know about you, but I stopped worrying about using XML sitemaps on most of the websites I manage a long time ago. Frankly, I felt It was a complete waste of my time trying to keep them updated regularly. There was no noticeably difference...
Read More...
Other iEntry Business Resources:
- WebProNews.com
- Jayde.com
- MarketingNewz.com
- SalesNewz.com
- CareerNewz.com
- InvestNewz.com
- eCommNewz.com
- WebsiteNotes.com
- AdvertisingDay.com
iEntry
footer
-- XMLProNews is an iEntry, Inc. publication --
iEntry, Inc. 2549 Richmond Rd. Lexington KY, 40509
2010 iEntry, Inc. All Rights Reserved Privacy Policy Legal