Click to See Complete Forum and Search --> : New to XML --> XML-File shows only code


Mischamel
07-25-2003, 09:02 AM
Hi,

I´m new to XML, so my question might be easy to solve for you. I´ve been generating a XML-file by using a certain method in VB.NET, called write XML.
It generates a XML-File basing on a Dataset.
It works fine. But when I click the file and it opens with IExplore, it only shows XML-code.

I´ve read something about schemas but I don´t know how to use it. I even generated a XML-Schema by code with my VB.NET App. Can someone help ??

Charles
07-25-2003, 09:23 AM
A schema is simply a DTD on steroids.

There are two ways to make you XML user friendly in a browser.

1) You can use CSS. I'm not to sure if this is MSIE specific at this time.

2) You can use XML Style Sheel Language (XSL) to transform the document into HTML. MSIE will let you do this at the browser, but you are better off using a processor. See http://xml.apache.org/xalan-j/index.html and http://xml.apache.org/xalan-c/index.html.

Khalid Ali
07-25-2003, 10:27 AM
Originally posted by Charles
[A schema is simply a DTD on steroids.


Totally..

Originally posted by Charles


2) You can use XML Style Sheel Language (XSL) to transform the document into HTML. MSIE will let you do this at the browser

If I understood you correctly...
one can apply XSL/XSLT directly to an XML file in the browser using both NS6+ and IE browsers

Charles
07-25-2003, 12:36 PM
I create my XSLT dox using HTML Kit which uses the MSIE engine, so I am certain that it works in MSIE. But I haven't had much luck getting it to work in Netscape. And I wont consider it web safe until it works in Opera.

Khalid Ali
07-25-2003, 12:48 PM
If doesn't work onopera then they should upgrade their software ...pronto..:-)

here are some links,which cater all 3 aspects of viewing XML doc in browsers.

1.Just and IE specific XML data island page.
http://68.145.35.86/skills/javascripts/xmlstuff/XMLReadElementNamesAndValues.html

2.second A work around that simmulates IE specific xml data island(works in IE and NS6+);
http://68.145.35.86/skills/javascripts/xmlstuff/XMLIslandNSAndIE.html

3. Direct approach to include and xsl file in XML document using browsers built in xsl/xslt parser.(NS6+ and IE)
http://68.145.35.86/skills/javascripts/xmlstuff/xmlfiles/DOMXMLParsing.xml

Let me know what you think