I am going nuts with this thing. I wanted (and still do) to have a phone book of sorts with avatar type pictures to the left of each name, address, phone, and email entry. I can do that in a snap with a table but, hey, I'm using EW and becoming a better web master. Right?
I said to my self, "Self, you need to use that thingy they are calling xml to display that data on your web page." Well, I dug right in with blissful abandon. I created a staff.xml page with the correct doctype and all. I won't even talk about the ignominy of attempting to create that in Excel. Nope, won't even go there. Then I created a new page in EW, called it staff.htm believe it or not. Now I remember seeing a video, training what-U-might call it thingy that said drag the .xml file onto the design view of your ,htm file, so I did. Damb! oops Darn! There was my data in a table format on the page. Didn't look good in that table format but it was there.
No problem I'm thinking, I can format this and make it look just like I want it to look. Well, drag and drop didn't do anything for me so I clicked on the little arrow up at the top right. Wa-la, there are some layouts to pick from. This is getting pretty easy even if I do say so myself. Couldn't get what I wanted that way. Sooooo, I went to code view and found that my data was in and ifram and there was nothing for me to format or play with. I decided I must need more information about the xml stuff so I went to www.w3schools.com and read, read, and re-read the stuff on xml.
Their stuff didn't look anything like my stuff so I figured, no biggie, I'l just do what they say with the data they are using and figure it out. IT DON'T WORK in my version (registered retail copy) of EW.
They are using <xml id="staff" src="staff.xml"></xml> and then a table to plug the data into. As soon as I type <xml I get this red line and holding the cursor over the xml I get told "can't do that here." I was in code view so plowed on and put every thing on the page exactly like it was in the tutorial. I figured maybe EW didn't know what it was talking about. Seems like EW knows but I don't. Looking at my page in the browser shows an empty table but no data. I thought maybe I needed some special doctype for the html page but that wasn't it.
Now don't get upset at me for asking inane questions but can someone please tell me why the <xml id="staff" src="staff.xml"></xml> won't work?