Webmaster Forum

Go Back   Webmaster Forum > Web Development > Coding Forum

Coding Forum Problems with your code? Discuss coding issues, including JavaScript, PHP & MySQL, HTML & CSS, Flash & ActionScript, and more.


 
 
LinkBack Thread Tools Display Modes
Prev Previous Post   Next Post Next
Old 10-02-2009, 05:12 AM   #1 (permalink)
Contributing Member
 
Foxtrck's Avatar
 
Join Date: 11-29-06
Location: Scotland, UK
Posts: 201
iTrader: 0 / 0%
Latest Blog:
None

Foxtrck is liked by somebodyFoxtrck is liked by somebodyFoxtrck is liked by somebodyFoxtrck is liked by somebodyFoxtrck is liked by somebody
Send a message via MSN to Foxtrck
Thumbs down XML/PHP Unstructured data problem

Hi all,

Looking to see if anyone can help in this scenario, I have generated XML files that are generated from a report coming from video conferencing. The structure of data in XML is like this:

Code:
<text textHeight="9.199219" lineSpacingFactor="1.1499023" leadingOffset= "-1.5644531" hyperlinkType="None"> <reportElement mode="Opaque" x="20" y="131" width="539" height="11" forecolor="#FFFFFF" backcolor="#000000"/> <font isBold="true" pdfEncoding="CP1252"/> <textContent><![CDATA[Guest/Host: Guest]]></textContent> </text> <text textHeight="9.199219" lineSpacingFactor="1.1499023" leadingOffset="-1.5644531" hyperlinkType="None"> <reportElement style="DetailData" mode="Transparent" x="113" y="142" width="65" height="11"/> <font pdfEncoding="CP1252"/> <textContent><![CDATA[82.71.32.74]]></textContent> </text> <text textHeight="9.199219" lineSpacingFactor="1.1499023" leadingOffset="-1.5644531" hyperlinkType="None"> <reportElement style="DetailData" mode="Transparent" x="185" y="142" width="93" height="11"/> <font pdfEncoding="CP1252"/> <textContent><![CDATA[Guest]]></textContent> </text> <text textAlignment="Center" textHeight="9.199219" lineSpacingFactor="1.1499023" leadingOffset="-1.5644531" hyperlinkType="None"> <reportElement style="DetailData" mode="Transparent" x="286" y="142" width="79" height="11"/> <font pdfEncoding="CP1252"/> <textContent><![CDATA[30 Sep 2009 09:54:03]]></textContent> </text> <text textAlignment="Center" textHeight="9.199219" lineSpacingFactor="1.1499023" leadingOffset="-1.5644531" hyperlinkType="None"> <reportElement style="DetailData" mode="Transparent" x="373" y="142" width="86" height="11"/> <font pdfEncoding="CP1252"/> <textContent><![CDATA[30 Sep 2009 09:54:03]]></textContent> </text> <text textAlignment="Right" textHeight="9.199219" lineSpacingFactor="1.1499023" leadingOffset="-1.5644531" hyperlinkType="None"> <reportElement style="DetailData" mode="Transparent" x="466" y="142" width="36" height="11"/> <font pdfEncoding="CP1252"/> <textContent><![CDATA[0]]></textContent> </text> <text textAlignment="Right" textHeight="9.199219" lineSpacingFactor="1.1499023" leadingOffset="-1.5644531" hyperlinkType="None"> <reportElement style="DetailData" mode="Transparent" x="509" y="142" width="50" height="11"/> <font pdfEncoding="CP1252"/> <textContent><![CDATA[ 0.014]]></textContent> </text> <line> <reportElement style="DetailData" mode="Opaque" x="20" y="154" width="540" height="1"/> <graphicElement pen="Thin" fill="Solid"/> </line> <text textHeight="9.199219" lineSpacingFactor="1.1499023" leadingOffset="-1.5644531" hyperlinkType="None"> <reportElement style="DetailData" mode="Transparent" x="20" y="142" width="87" height="11"/> <font pdfEncoding="CP1252"/> <textContent><![CDATA GVTest]]></textContent> </text>

Basically it is structured in such a way for tables as you can see from the co-ordinates. There are 7 columns in the table, you can see a heading for example:

<textContent><![CDATA[Guest/Host: Guest]]></textContent>

this is a heading, but you can also see the actual column data in the same format i.e. the column data for that heading would be

<textContent><![CDATA GVTest]]></textContent>

The actual data I need to pull out is the column data as above, but there is no differential tags for different data and columns and is encapsulated in CDATA.

I don't think regular expressions would work as most of the data is always different and contains times, dates, names etc...


anybody have any suggestions on how to parse this and get the information I need out of it?
__________________
http://www.dund.co.uk - DD1 Designs
Foxtrck is offline  
Add Post to del.icio.us
Reply With Quote
Go Back   Webmaster Forum > Web Development > Coding Forum

 


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Using php,how to grab data from a sql data table thats already stored in $data_table? 2939195631902 Web Design Lobby 0 02-06-2009 08:17 PM
Dynamic PHP problem !! transfer data from one page to another using PHP and mysql 2939195631902 Coding Forum 6 01-22-2009 06:30 AM
Why google analytic data is different from my admin data Batch Google Forum 8 12-04-2008 12:07 PM
lost data problem bunnny Tech Support Forum 3 04-15-2008 05:35 AM
accept post data from form, process, then redirect data to another script gnznroses Coding Forum 4 09-29-2007 03:39 PM


Sponsor Links
Get exposure! Contextual Links V7N SEO Blog V7N Directory


All times are GMT -7. The time now is 04:48 AM.
© Copyright 2008 V7 Inc
Powered by vBulletin
Copyright © 2000-2009 Jelsoft Enterprises Limited.


Search Engine Optimization by vBSEO 3.3.0 ©2009, Crawlability, Inc.