[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now


Looking to get into XML

Posted on 2007-08-03
Medium Priority
Last Modified: 2013-11-26
I am looking to get my feet wet with XML data (typically in the form of files) using vb.net 2005 and I would like to learn a few things.
1. How to navigate through the data in teh XML file.
2. How to use XLT to transform the data
3. Basic concepts of XML and the power of the data format.

Any links or books you can offer would be appreciated...
Question by:NTGuru705
LVL 25

Expert Comment

ID: 19628900
For books, Wrox's Professional XML and Professional XSL are good resources.  For VB.NET specific samples try Beginning VB.NET XML.

For online samples check out MSDN:
LVL 13

Accepted Solution

R7AF earned 2000 total points
ID: 19630348
* Learn how to make XML well formed and know the difference between well formed and valid XML.
* You can start out with learning XHTML, which is HTML according to the rules of XML. This will teach you the basic concepts. The only catch here is that browsers are lenient and don't punish you too bad if you make mistakes.
* The first step here is to make all tags and attributes lowercase, nest all your tags properly, and close them all. That includes <img />, <br />, <meta />, <input />.
* XPATH: this is the language to "navigate" through the XML. It basically works like UNIX-style folder navigation. An XML file has to have a root node (/), and from there on it is basically like a tree-structure.
* XSLT: XSL Transformations; meant to transform XML into something else, which can be XML, XHTML, XSL-FO, but also text, SQL, whatever you like.
* To transform XML into something else, you need an engine that supports this. Modern browsers can do this clientside. You can do it serverside using e.g. Saxon or Xalan. You can run these engines in a terminal/cmd shell if you want to. And several XML editors like oXygen can do these transformations inside the editor.
* XSLT comes in two versions. Version 2.0 has a lot more functionality. But not many processors support it. None of the browsers support it yet. It's okay to start with 1.0, and most people use that.
* XSL-FO: XSL Formatting Objects; language to format XML for display, like in PDF. To create PDF you need a special processor like FOP.
* XSL: originally the creators of XSL thought one language could do all these things: transform, navigate, layout. It turned out that it was easier to split them into XSLT, XPATH and XSL-FO. XSL and XSLT are mixed in everyday language, but there is a difference! Just so you know.
* XLINK, XQUERY, XFORMS: these are new languages for adding extra functionality. I haven't used them yet. They are quite new, and not much supported.
* SVG: this is an XML language for vector images (like Flash/Illustrator). You can do a lot with it, but the downside is that IE doesn't support this. You need a plugin (free from Adobe). Firefox supports it natively.

There is a lot more to it. The best thing you can do is buy some books. If you want to learn how to use XSLT, I can recommend XSLT 2.0 from Jenni Tennison (Apress), or XSLT from Tidwell (O'Reilly). These books give you a general introduction to XML as well, good enough to get started.
LVL 51

Expert Comment

by:Ted Bouskill
ID: 19631883
One piece of advice.  Don't percieve XML as a  "Silver Bullet".  XML is great at making hetrogenous data homogenous.  However, it is a poor choice for large datasets unless it is a stream transfer data between systems.  Most DOM (Document Object Model) manipulation or managment of database sets have to been executed in memory or streamed from disk which can be VERY expensive with large datasets.

I work for a large company that decided to use XML as the primary method for managing data in a complex system.  Post deployment we ran into scaling and performance issues.  Serializing, searching and managing relational data in the XML was not working as well as expected.  The applicaiton was rewritten to use a RDMS and lo and behold, it worked properly!  All XML was removed.

I'm an avid proponent of XML and use it extensively.  But I know it's strengths and weaknesses and use it when appropriate.

R7AF's comment on well formed XML is VERY, VERY important.  Most issues with XML systems I have had to fix are due to poorly formed XML.

Featured Post

Get your Disaster Recovery as a Service basics

Disaster Recovery as a Service is one go-to solution that revolutionizes DR planning. Implementing DRaaS could be an efficient process, easily accessible to non-DR experts. Learn about monitoring, testing, executing failovers and failbacks to ensure a "healthy" DR environment.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

The Client Need Led Us to RSS I recently had an investment company ask me how they might notify their constituents about their newsworthy publications.  Probably you would think "Facebook" or "Twitter" but this is an interesting client.  Their cons…
Browsing the questions asked to the Experts of this forum, you will be amazed to see how many times people are headaching about monster regular expressions (regex) to select that specific part of some HTML or XML file they want to extract. The examp…
This lesson discusses how to use a Mainform + Subforms in Microsoft Access to find and enter data for payments on orders. The sample data comes from a custom shop that builds and sells movable storage structures that are delivered to your property. …
Screencast - Getting to Know the Pipeline
Suggested Courses
Course of the Month20 days, 5 hours left to enroll

873 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question