[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

extracting data from an element

Subject: extracting data from an element
From: Mike Stroud <stroudmw@xxxxxxxxx>
Date: Tue, 3 Feb 2009 13:39:08 +0200
 extracting data from an element
Hello everyone,

Today I have a different problem. How do I extract data from an
element? for example if I have something that looks like this:

<?xml version="1.0" encoding="UTF-8"?>
<DIMENSIONS>
  <DIMENTION> T=60 896 x 476</DIMENTION>
  <DIMENTION> T=160 89 x 46</DIMENTION>
</DIMENSIONS>

into something like this:

<?xml version="1.0" encoding="UTF-8"?>
<DIMENSIONS>
  <DIMENTION>
    <Length>60</Length>
    <Width>896></Width>
    <Mass>476></Mass>
  </DIMENSION>
  <DIMENTION>
    <Length>160</Length>
    <Width>89></Width>
    <Mass>46></Mass>
  </DIMENSION>
</DIMENSIONS>

I'm learning a lot here. Many thanks for the assistance you've given me so far.

Cheers,

Mike.

Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2007 All Rights Reserved.