473,398 Members | 2,393 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.

NetDataContractSerializer XML file and XSLT for it

Using NetDataContractSerializer , I have produced a XML file whose source is given below.
+++++++++++++++++++++++++++++++++++++

<Login xmlns:i="http://www.w3.org/2001/XMLSchema-instance" z:Id="1" z:Type="LIS.Framework.AccessControl.Login" z:Assembly="LIS.Framework.AccessControl, Version=1.0.0.0, Culture=neutral,

PublicKeyToken=null" xmlns:z="http://schemas.microsoft.com/2003/10/Serialization/" xmlns="http://schemas.datacontract.org/2004/07/LIS.Framework.AccessControl"><Address z:Id="2"

z:Type="LIS.Framework.Common.Address" z:Assembly="LIS.Framework.Common, Version=1.0.0.36479, Culture=neutral, PublicKeyToken=null"><Area z:Id="3"

xmlns="http://schemas.datacontract.org/2004/07/LIS.Framework.Common">BC</Area><City z:Id="4" xmlns="http://schemas.datacontract.org/2004/07/LIS.Framework.Common">BUHUSI</City><Country

z:Id="5" xmlns="http://schemas.datacontract.org/2004/07/LIS.Framework.Common">Romania</Country><ID xmlns="http://schemas.datacontract.org/2004/07/LIS.Framework.Common">26</ID><PostalCode

z:Id="6" xmlns="http://schemas.datacontract.org/2004/07/LIS.Framework.Common">605100</PostalCode><Street1 z:Id="7"

xmlns="http://schemas.datacontract.org/2004/07/LIS.Framework.Common">Primaverii, bl. 1</Street1><Street2 z:Id="8" xmlns="http://schemas.datacontract.org/2004/07/LIS.Framework.Common">sc.

A, ap. 13</Street2></Address><Email z:Id="9">seby172157@yahoo.com</Email></Login>
+++++++++++++++++++++++++++++++++++++++++

How can I write a XSLT file to get some values like AREA, Email from the XML file. For normal XML serialisation the XSLT work well. Any help will be highly appriciated.
Sep 3 '07 #1
1 2240
jkmyoung
2,057 Expert 2GB
Put the following in your stylesheet node:
xmlns:fc="http://schemas.datacontract.org/2004/07/LIS.Framework.Common"

Area:
<xsl:value-of select="//fc:Area"/>
Email:
<xsl:value-of select="/fc:Login/fc:Email"/>
Sep 5 '07 #2

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

Similar topics

4
by: Fredrik Henricsson | last post by:
Hey, I'm building an ontology in Protégé and I want to transform parts of it (e.g. the instances) to HTML with XSL. When I was transforming another file with 'simple' XML-tags like <author> before,...
2
by: Marcelo | last post by:
Hi Guys, I have the following question. I have a Xerox DJDE File that I want to convert to PDF.
7
by: Cerebrus99 | last post by:
Hi all, I am confused about how to sort an XML file. I mean how to *actually* sort the data in the physical file, not how to display sorted data. I am using a large XML file as a back-end...
4
by: Philipp Reiss | last post by:
Hello group, I'm new in this topic and I run into problems where google can't help me. I have a XML-file, wich is bound to a XSLT-file, and this works fine in a browser. How do I show the same...
6
by: Lenny Wintfeld | last post by:
Hi I'm attempting additions/changes to a Java program that (among other things) uses XSLT to transform a large (96 Mb) XML file. It runs fine on small XML files but generates OutOfMemory...
1
by: Max Evans | last post by:
I have a XML file, which contains itemid-elements, e.g.: <itemid>3</itemid> <itemid>12</itemid> Now I want to convert these IDs to the corresponding name via XSLT. I thought I could do it this...
3
by: J055 | last post by:
Hi I'd like to get a populated datatable, create an in memory xml document (file shouldn't be more than a couple of meg), load an XSLT file, do a transform and stream it to a browser. What am I...
1
by: =?Utf-8?B?SmltbXk=?= | last post by:
Hello, I have a scenario where I have one or more publishers, a broadcaster and one or more subscribers. The publishers publish information to the broadcaster, which then broadcasts that...
2
by: saritha2008 | last post by:
Hi, As part of transforming one form of xml to another form, i need to do the below mentioned transformation: My Input XML: <rss> <channel> <item> <assignee...
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: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
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: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
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
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
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 project—planning, coding, testing,...

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.