473,320 Members | 1,988 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

Embedded XML data islands -- and referencing specific fields

OK, so my XML data looks like this:
Expand|Select|Wrap|Line Numbers
  1. <xml id = "internalXMLData">
  2.  
  3.      <Contacts>
  4.           <Contact>
  5.              <Name>Jonnie Graham</Name>
  6.              <Phone type="home">(09) 3888 466</Phone>
  7.              <Phone type ="mobile"/>
  8.              <Phone type ="work"/>
  9.              <email>jonnie@poomail.com</email>
  10.              <email>jonnie@shitmail.com</email>
  11.          </Contact>
  12.  
  13.          <Contact>
  14.              <Name>Andre Sapeas</Name>
  15.              <Phone type="home"/>
  16.              <Phone type="mobile">(123) 456 3757</Phone>
  17.              <Phone type="work"/>
  18.              <email>info@somedomain.co.nz</email>
  19.              <email>andre_sapeas@somedomain.com</email>
  20.          </Contact>
  21.      <Contacts>
  22.  
  23. </xml>
  24.  
...see how there is more than 1 "type" of phone number, and more than 1 possible email address?

to reference, say the Name, we would write: <span datafld="Name">, but how would we reference each "type" of phone number (or in other words how woud one reference each specifically/uniquely attributed phone number?), -for example??

Thanks heaps!
Dec 2 '08 #1
1 1861
Dormilich
8,658 Expert Mod 8TB
if you want all users to use your functionality go for JavaScript/DOM (DOM gives you the ultimate access to the document tree you need for this). see Using XML Data Islands in Mozilla (more on Google)

regards

PS: this is the first time I heard of this
Dec 3 '08 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

2
by: Simon | last post by:
Hi, I am having a little problem with my PHP - MySQl code, I have two tables (shown below) and I am trying populate a template page with data from both. <disclaimer>Now I would like to say my...
1
by: Aaron | last post by:
I've been using MySQL for several months and enjoyed great success when installing other people's scripts to databses I make using phpMyAdmin. My challenge is developing from scratch the...
1
by: jlynker | last post by:
Can href= value be filled in by a datafld variable? After reviewing the link object, data islands and anchors array, there's something missing here. I would like to keep an XML file of URLs and...
2
by: Rooksarii | last post by:
Hello folks, Let me first apologize for any impropper terminology I may use as I am presently trying to broaden my Office knowledge by diving into Access head on. My specific problem is this....
2
by: Dnna | last post by:
I have a table which is bound to an Internet Explorer XML data island. I'm using ASP.NET's client-side validators for an input field in the table. The problem is that if the input fields are in...
9
by: Brett Romero | last post by:
Say I have a library (A.dll) with a method that accepts a collection of a specific type. The type is defined in B.dll. In A.dll, I need to loop through this collection and reference fields of...
4
by: toby989 | last post by:
Hi All Anyone came across this problem before? I have an X<L file created by excel <xml id="model"> <root> <Row>
0
by: blitzenn | last post by:
I am attempting to use triggers to add some simple auditing to my database structure (SQL Server 2005). I am running an ASP with this so I have many databases (dozens) with identical structure. My...
3
by: Gary W. Smith | last post by:
I had a couple questions about data caching. We have a site that gets a huge amount of traffic to a few specific pages that have a lot of data on them (300k hits/hour during peak, about 6-10 data...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
0
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.