Trouble parsing file with inline XML/XS schema

wxdqz

New Member
Please help - pretty new to this -

I am trying to write a web page that takes XML from a Web service and converts it into a table. The XML feed I get contains a schema (XS statements) as well as content , everytime I try to use XML spy etc to create an XSL template I fail. Ultimately I want to be able to write a java script that takes the feed then applies the XSL template and spits out the result to a web page containing a table. I have a stack of books and hours wasted on the net for something I am sure is trivial - if you can give me some pointers I would be greatful. If I can learn how to create an XSL template I can probably make some real headway.

Here is the sample (Please correct me if I am wrong in calling this XML - I am in acronym hell right now)

<?xml version="1.0" encoding="utf-8"?>
<DataSet xmlns="http://KiwiGod.ruthsx.com/MyNetService/">
<xs:schema id="AllProducts" xmlns="" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
<xs:element name="AllProducts" msdata:IsDataSet="true">
<xs:complexType>
<xs:choice maxOccurs="unbounded">
<xs:element name="Products">
<xs:complexType>
<xs:sequence>
<xs:element name="Number" type="xs:string" minOccurs="0" />
<xs:element name="Name" type="xs:string" minOccurs="0" />
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:choice>
</xs:complexType>
</xs:element>
</xs:schema>
<diffgr:diffgram xmlns:msdata="urn:schemas-microsoft-com:xml-msdata" xmlns:diffgr="urn:schemas-microsoft-com:xml-diffgram-v1">
<AllProducts xmlns="">
<Products diffgr:id="Products1" msdata:rowOrder="0">
<Number>FREIGHT</Number>
<Name>FREIGHT</Name>
</Products>
<Products diffgr:id="Products2" msdata:rowOrder="1">
<Number>FUEL</Number>
<Name>FUEL</Name>
</Products>
<Products diffgr:id="Products3" msdata:rowOrder="2">
<Number>GRP</Number>
<Name>Grapes</Name>
</Products>
</AllProducts>
</diffgr:diffgram>
</DataSet>
 
Back
Top