473,395 Members | 1,530 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

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

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.
Nov 20 '05 #1
2 4050
* "bill salkin" <an*******@discussions.microsoft.com> scripsit:
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?

--
Herfried K. Wagner [MVP]
<http://www.mvps.org/dotnet>
Nov 20 '05 #2
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/de...tframework.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

"bill salkin" <an*******@discussions.microsoft.com> wrote in message
news:01****************************@phx.gbl... 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.

Nov 20 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Stefan Siegl | last post by:
Hello, I am trying to learn XSLT to use it in another project. I start reading the book "Java and XSLT" and tried the examples and they are went quite fine (how suprising *g*). Then I tried...
1
by: Vijay singh | last post by:
Hi wonder if anybody can clear by doubt XML file : <score id="1"> <film>A Little Princess</film> <composer>Patrick Doyle</composer>
6
by: JJBean | last post by:
Hi Oleg and All, Is this correct? Can I do this? <code> XmlDocument doc=new XmlDocument(); XPathNavigator nav = doc.CreateNavigator(); //Load the xml file. Change path if needed...
0
by: marcum williams | last post by:
Below I'm generating an updategram via xslt and currently referencing schema via <updg:sync mapping-schema="hpXSD.xsd"> .... </updg:sync> But I would like to LOAD the .xsd schema into memory...
3
by: Blaise Garant | last post by:
Hi I've made a stylesheet to transform my data into XSL-FO. This stylesheet used to work with MSXSL 4.0 but I've got some issues in ..NET. First, I changed removed all the "node-set()" function...
3
by: TnaG | last post by:
Can someone answer this probably obvious question. I have an xmldocument that i want to apply an xslt file to. All the examples i find assume u are applying the xslt to an xml file you've read...
2
by: jimbo_vr5 | last post by:
Hey I think i've figured out the idea behind apply-templates. But going through the tutorial on <http://www.w3schools.com/xsl/xsl_apply_templates.asp> theres simply just something that i dont...
3
by: abhishek.smu | last post by:
Given an XML like: <root> <node>8</node> <node>21</node> <node>-7</node> <node>13</node> <node>43</node> <node>2</node> </root>
2
by: RccH | last post by:
Beginner using xslt... So. I have an XML file which has a link into xslt file like following... <?xml version='1.0' encoding='utf-8' ?> <?xml-stylesheet type="text/xsl" href="transform.xsl"?>...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.