How apply XSD, XSLT to XML file from VB.NET?

B

bill salkin

I have an XML file that I want to validate against an XSD
and then transforma using an XSLT. I have no problem doing
this with external commercial tools but how it this done
from VB.NET code?

TIA,

Bill

P.S. I looked at code samples on the Internet but they
make references to "URL"s. None of these files will be
displayed in a browser -- I have no URLs to use -- they
will be used as data files passed between processes.
 
H

Herfried K. Wagner [MVP]

* "bill salkin said:
I have an XML file that I want to validate against an XSD
and then transforma using an XSLT. I have no problem doing
this with external commercial tools but how it this done
from VB.NET code?

Did you have a look at the classes in the 'System.Xml' namespace in the
MSDN documentation?
 
J

Jay B. Harlow [MVP - Outlook]

Bill,
P.S. I looked at code samples on the Internet but they
make references to "URL"s. None of these files will be
displayed in a browser -- I have no URLs to use -- they
will be used as data files passed between processes.
Remember that .NET considers a file path a URL also, you can use "C:\My
Folder\My file.xml" when its says URL.

Or are you saying you are not saving to disk at all, that you are using
streams or strings? Most places that require a url also have an overload for
a System.IO.Stream object. There are methods of converting a string into a
stream.

The following is a good place to start to learn about the extensive XML, XSD
& XSLT support in .NET:
http://msdn.microsoft.com/library/d...uide/html/cpconemployingxmlinnetframework.asp

Also the microsoft.public.dotnet.xml newsgroup have individuals that work
with XML, XSD & XSLT more extensively then most individuals in this
newsgroup.

Hope this helps
Jay
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top