473,398 Members | 2,427 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,398 software developers and data experts.

Problem in Deserializing data which has <xsi:type> in xml thru XSLT

All
I have my class serialised correctly.
I have to apply style sheet to that data and display it in some other format.
Everything works fine,I can not read the following xml tag,
Expand|Select|Wrap|Line Numbers
  1.   <PrescriptionRefillMeds>
  2.     <anyType xsi:type="PrescriptionRefillMed">
  3.       <Description>Drug1</Description>
I have written code to conert the object in to the serialising/deserialising in C#.
XSLT has the required namespacses also,not able to read the PrescriptionRefillMed class,where as PrescriptionRefillMeds is an IList.

Expand|Select|Wrap|Line Numbers
  1. <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
  2.   <xsl:output method="xml"  omit-xml-declaration="yes" indent="yes"/>
  3. <DRUG>
  4. <PrescriptionRefillMeds>
  5.           <PrescriptionRefillMed>
  6.             <Description>
  7.               <xsl:value-of select="DescriptionId"/>
  8.             </Description>
  9. </PrescriptionRefillMed>
  10. </PrescriptionRefillMeds>
  11. </DRUG>
  12. </xsl:stylesheet>
I have read one article,some one called Chris also had the same problem and he himself foundout the solution and the solution is passing the parameter to Serializer constructor?
Does antbody know whats this parameter? and any other ideas?

Final thing is how to read the <anyType xsi:type="test">
from XSLT ???

Very urgent,appreciate your help.
Uma.
Sep 30 '06 #1
0 1697

Sign in to post your reply or Sign up for a free account.

Similar topics

2
by: Stewart | last post by:
Hi, I'm hoping that someone will be able to help out with a problem we are having. We have a web service built in .Net 1.1. We are trying to call it from PHP4 using the NuSOAP add on. It...
0
by: Kent Boogaart | last post by:
Hi, Suppose an XSD as follows: <xsd:complexType name="myType"> <xsd:complexContent> <xsd:extension base="myBaseType"> <xsd:sequence> <xsd:element name="thing" minOccurs="0"...
8
by: xmail123 | last post by:
Hi, As was pointed out whatever you return from a WebMethod needs to be serializable to SOAP. An ArrayList is not serializable. I will be needing to return other data types from web methods. ...
1
by: citnamor | last post by:
Hello, I'm trying to access a webservice which runs on our SOAP Server (Apache Tomcat) with Windows 2000 Advanced Server. I simply added the webreference local copy of wsdl file into dotNet...
2
by: yqlu | last post by:
I hava developed a client in C# that is connected to a 3-party XML Web Services developed in Java based on the AXIS 1.1. Most methods call are successful except for one method named "findObjects"...
0
by: Samuel | last post by:
All, I am at wits end with this one. Spent hours going through MSDN and online articles to try to resolve this. XmlSerializer is including the “xsi:type” attribute when I serialize a...
3
by: Rotsey | last post by:
Hi, I am ceating a xml file from SQL data using VS2003. I want to then use xslt to transform xml to my web page. But the xml file when after serialisation has some nodes like this <anyType...
0
by: leon70 | last post by:
Hi Group, I built a gSoap 2.7.11 Web services client in C++ on AIX and have got it talking to the remote service. The service is sending back an array of objects to my client but the client is...
0
by: vigneshrao | last post by:
Hi, I have been working on a script that loops through multiple records and sends data (one record per call) to a WS. I am supposed to make a new call for each record before sending the data....
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
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
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
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...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development projectplanning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

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.