Topic: xml newbee (Page 1 of 1) Pages that link to <a href="https://ozoneasylum.com/backlink?for=27765" title="Pages that link to Topic: xml newbee (Page 1 of 1)" rel="nofollow" >Topic: xml newbee <span class="small">(Page 1 of 1)</span>\

 
Blacknight
Paranoid (IV) Inmate

From: INFRONT OF MY PC
Insane since: Dec 2001

IP logged posted posted 04-10-2006 23:47 Edit Quote

so i started playing around with xml this is what i have

<?xml version="1.0" encoding="ISO-8859-1"?>

<article>
<posted>10.04.2006</posted>
<from>Benedict</from>
<title>first xml</title>
<content>This is the first xml test</content>
</article>

as my xml file

and this as html file

<html>
<body>

<xml id="articles" src="test.xml"></xml>


<table border="1" datasrc="#articles">
<tr>
<td><span datafld="posted"></span></td>
<td><span datafld="from"></span></td>
</tr>
<tr>
<td colspan="2"><span datafld="title"></span></td>
</tr>
<tr>
<td colspan="2"><span datafld="content"></span></td>
</tr>
</table|

</body>
</html>

now this displays nicely in IE but shows nothing what so ever in my firefox.... any ideas???

HZR
Paranoid (IV) Inmate

From: Cold Sweden
Insane since: Jul 2002

IP logged posted posted 04-11-2006 11:27 Edit Quote
quote:

Blacknight said:

now this displays nicely in IE but shows nothing what so ever in my firefox.... any ideas???


Yes.

code:
<xml id="articles" src="test.xml"></xml>


This is IE-specific.

Blacknight
Paranoid (IV) Inmate

From: INFRONT OF MY PC
Insane since: Dec 2001

IP logged posted posted 04-11-2006 13:53 Edit Quote

so how would i go about making it compatible to all browsers .....i kick to a good recource would do ..i only know w3schools and the above is what i got there

(Edited by Blacknight on 04-11-2006 13:56)

HZR
Paranoid (IV) Inmate

From: Cold Sweden
Insane since: Jul 2002

IP logged posted posted 04-11-2006 19:09 Edit Quote

There is nothing remotely similar in other browsers. I suggest you look into XSLT.

poi
Paranoid (IV) Inmate

From: Norway
Insane since: Jun 2002

IP logged posted posted 04-11-2006 20:50 Edit Quote

w3schools is really really bad at advocating the standards. They have a lot of IE proprietary stuffs. I have nothing against explaining how to use those things, but then the name of the site is a misnomer.

Blacknight: As HZR suggested you should have a look at XSLT ( check also the nicely done XSLT references on zvon.org ). Another option is to use JavaScript and the XMLHttpRequest object to load the XML document, and parse it in JavaScript using the regular DOM methods.

Blacknight
Paranoid (IV) Inmate

From: INFRONT OF MY PC
Insane since: Dec 2001

IP logged posted posted 04-11-2006 21:31 Edit Quote

well thanks a lot will red through the stuff and hopefully understand it^^

WarMage
Maniac (V) Mad Scientist

From: Rochester, New York, USA
Insane since: May 2000

IP logged posted posted 04-12-2006 15:23 Edit Quote

I would also change <from> into <author> or <creator> or some other descriptive noun. I find it best to use nouns to describe resources. Using verbs or in this case prepisitions can be a little confusing. This fits better into REST style architecture.

Dan @ Code Town



Post Reply
 
Your User Name:
Your Password:
Login Options: Remember Me On This Computer
 
Your Text:
Loading...
Options: Show Signature
Enable Slimies
Enable Linkwords

« BackwardsOnwards »

Show Forum Drop Down Menu