| Author |
Total newbee question data island using XML tag in HTML
|
|
| XMLNewbee 2004-02-27, 12:28 am |
| Well I thought atleast i'll get started today. What I am trying to do is real simple. Well I was expecting this to work before I get into some real stuff but there's obviously something wrong that I cant figure out. Please help !!!
<HTML><HEAD><TITLE>HTML Document with Data Island</TITLE></HEAD><BODY><XML ID="Sanjeev1"><xml><person><name>Sanjeev</name><phone>7145331308</phone></person><person><name>Shikha</name><phone>5625331308</phone></person></xml></XML></BODY></HTML>
| |
| Brian Staff 2004-02-27, 3:28 am |
| What were you expecting? An XML data-island will not display anything on its
own. I'd say its working perfectly...except you do not need dual <xml> tags.
Are you now wanting to bind it to a table?
Brian
"XMLNewbee" <anonymous@discussions.microsoft.com> wrote in message
news:A16DC6A1-9308-4CFD-BF2F-8FD4854215E0@microsoft.com...
> Well I thought atleast i'll get started today. What I am trying to do is
real simple. Well I was expecting this to work before I get into some real
stuff but there's obviously something wrong that I cant figure out. Please
help !!!
>
> <HTML><HEAD><TITLE>HTML Document with Data Island</TITLE></HEAD><BODY><XML
ID="Sanjeev1"><xml><person><name>Sanjeev</name><phone>7145331308</phone></pe
rson><person><name>Shikha</name><phone>5625331308</phone></person></xml></XM
L></BODY></HTML>
| |
| Buddy Ackerman 2004-02-27, 6:30 pm |
| First don't use data islands. They are stuck at the version supported by
the browser. Create objects in JScript like this:
var XML = new ActiveXObject("MSXML2.DomDocument.x.0")
Replace the "x" with the version that is installed on your client. Don't
know what the version is? Try this code:
var xml
try {
XML = new ActiveXObject("MSXML2.DomDocument.4.0")
}
catch (e){
try {
XML = new ActiveXObject("MSXML2.DomDocument.3.0")
}
catch (e) {
try{
XML = new ActiveXObject("MSXML2.DomDocument")
}
catch (e){
alert("No valid parser installed");
}
}
}
// after this you can load an XML document from a webserver (or webservice)
like this
xml.load("http://somewebserver/somedocumentthatreturnsXML.asp")
Then use XSL transforms to create your HTML or make sure that the xml
Document that you load is properly formed xhtml.
--Buddy
"XMLNewbee" <anonymous@discussions.microsoft.com> wrote in message
news:A16DC6A1-9308-4CFD-BF2F-8FD4854215E0@microsoft.com...
> Well I thought atleast i'll get started today. What I am trying to do is
real simple. Well I was expecting this to work before I get into some real
stuff but there's obviously something wrong that I cant figure out. Please
help !!!
>
> <HTML><HEAD><TITLE>HTML Document with Data Island</TITLE></HEAD><BODY><XML
ID="Sanjeev1"><xml><person><name>Sanjeev</name><phone>7145331308</phone></pe
rson><person><name>Shikha</name><phone>5625331308</phone></person></xml></XM
L></BODY></HTML>
|
|
|
|
| Copyright 2003 - 2008 forum4designers.com Software forum Computer Hardware reviews |