GeekInterview.com
  I am new, Sign me up!
 
GeekInterview.com  >  Interview Questions  >  Microsoft  >  ASP.NET 2.0
Go To First  |  Previous Question  |  Next Question 
 ASP.NET 2.0  |  Question 114 of 161    Print  
XSLT Transformation on xml in C#.Net (Apple Safari)
HI
I am transforming XSLT on my xml on C#.Net code and returning back xml string to javascript code, When I am checking from IE xml string is coming with all attribute and value with XSLT transformation, But when I am checking same code on Apple safari that return xml string is coming with attribute which does contain any value.

Here is the C# method which I am calling from javascript functaion, same code I am using for both, can any one help me in this,

public string getTransformedXSLTTemplateTicketBlock(string xmlString, string xsltString, string parameters)
{
string ticketInformation = String.Empty;
try
{
XmlDocument xmlDocument = new XmlDocument();
XslCompiledTransform xslTransform = new XslCompiledTransform();


xslTransform.Load(@"C:TicketBlock.xslt");

xmlDocument.LoadXml(xmlString);

System.Text.StringBuilder xmlBuilder = new System.Text.StringBuilder();
XmlWriterSettings settings = new XmlWriterSettings();
settings.Indent = true;
settings.IndentChars = "t";
//settings.ConformanceLevel = ConformanceLevel.Auto;
XmlWriter xmlWriter = XmlWriter.Create(xmlBuilder);

xslTransform.Transform(new XmlNodeReader(xmlDocument), xmlWriter);

ticketInformation.TicketsXml = xmlBuilder.ToString(); //xmlDocument.OuterXml;
}
catch (Exception ex)
{
}
return ticketInformation;

}


Thanks in advance,
Dhara.




  
Total Answers and Comments: 0 Last Update: March 17, 2007     Asked by: Dhara3011 
  
 Sponsored Links

 

No answers are posted for this question yet.
Be the first to answer it!


 Related Questions

Latest Answer : Before developing any application in .NET it is better to define data types which can be used in creating objects of that type.This is where XSD plays a great role. develop the XSD file for the simple and complex types and genereate the classes using ...
Read Answers (2) | Asked by : mdchaus

HI I am transforming XSLT on my xml on C#.Net code and returning back xml string to javascript code, When I am checking from IE xml string is coming with all attribute and value with XSLT transformation, 
View Question | Asked by : Dhara3011


 Sponsored Links

 
Related Articles

Performing XSLT Transformations inside the Database

Performing XSLT Transformations inside the Database Now that you have the employees XSL stylesheet stored in the database and the xmlusr schema is permitted to access the hr employees table you can create a script that will instruct the database to build an HTML page based on the data stored in hr e
 

Transforming and Processing XML with XSLT

Transforming and Processing XML with XSLT In the preceding example you transform XML into HTML directly in your script wrapping the data extracted from the XML document into appropriate HTML tags Alternatively you might perform an XSL Extensible Stylesheet Language transformation to get the same gen
 

The Interview Snafu

How to turn someone else’s mistake to your advantage Your dream job is about to become reality. A recruiter gave you the heads up about the perfect position at Humungous Conglomerate, Inc. You went through five interviews as well as a battery of psychological tests mandated by their HR de
 

Winning a Job Interview with a Winning Resume

Does your resume unlock your potential, take your skills to the highest level and win you the interview and the job you want now? The job market today is highly competitive and even if you think you have what it takes to get an interview you won’t get over the line without a polished, prof
 

Importance of Proper English during Job Interview

Importance of Proper English during Job Interview Your job interview is crucially important and it will determine whether or not you will get the job Depending on the type of job you re going for it is very important for you to use proper English In most cases jobs which offer higher salaries will h
 

HR Interview - HR Interview Mistakes You Will Want To Avoid

HR Interview Mistakes You Will Want To Avoid The job interview can be a stressful process This is especially true for those who are going after a competitive position Your nonverbal communication combined with the answers you give during the interview will determine if you are hired mosgoogle While
 

HR Interview - Behavioral HR Interviews

Behavioral HR Interviews As the name implies a behavioral interview is an interview that is held by a human resources department to determine if an applicant has the behaviors that are appropriate for a job The company must know how an applicant will behave in a certain situations mosgoogle The logi
 

HR Interview - How To Prepare For Your HR Interview

How To Prepare For Your HR Interview Before you begin thinking about how you are going to dress for the interview it is important to do your research first You should learn everything you can about the company you wish to work for When you have detailed information about your employer you will conve
 

HR Interview - Telephone Interview Etiquette

Telephone Interview Etiquette When you conduct a telephone interview for a job it is important to show the proper etiquette Not only is it important it is critical is you wish to be hired by the company There are a number of things you will want to do and other things should never be done mosgoogle
 

HR Interview - How To Succeed At HR Interviews

How To Succeed At HR Interviews There are a number of things you will need to do in order to make sure you pass the interview process Your appearance is something that you will want to pay close attention to Even if you feel that your appearance shouldn t be a factor in whether or not you re highere
 

About Us -  Privacy Policy -  Terms and Conditions -  Contact -  Ask Question -  Propose Category -  Site Updates 

Copyright © 2005 - 2009 GeekInterview.com. All Rights Reserved

Page copy protected against web site content infringement by Copyscape