Jump to content
xisto Community
Sign in to follow this  

Extracting "attributed" Data From An Xml Document/data-island

Recommended Posts

OK, so my XML data looks like this:<xml id = "internalXMLData"> <Contacts> <Contact> <Name>Jonnie Graham</Name> <Phone type="home">(09) 3888 466</Phone> <Phone type ="mobile"/> <Phone type ="work"/> <email>jonnie@poomail.com</email> <email>jonnie@shitmail.com</email> </Contact> <Contact> <Name>Andre Sapeas</Name> <Phone type="home"/> <Phone type="mobile">(123) 456 3757</Phone> <Phone type="work"/> <email>info@somedomain.co.nz</email> <email>andre_sapeas@somedomain.com</email> </Contact> <Contacts></xml>...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! :rolleyes:

Share this post

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

  • Create New...

Important Information

Terms of Use | Privacy Policy | Guidelines | We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.