[x]
Posted via EE Mobile

Search, ask, and monitor your questions on the go with EE Mobile. Visit Experts Exchange from your mobile device and never be out of touch again.

Question
[x]
Attachment Details
[x]
The Solution Rating System

With so many solutions, how can you tell which solutions are most likely to help you and which ones are not? To provide you with a tool to use, we rate our solutions based on various elements that most accurately determine if a solution is a quality solution. To explain what factors affect the solution rating, here are the elements we take into consideration when formulating our solution rating.

  • The Grade of the Solution
  • The Zone Rank of the Expert Providing the Solution
  • The Number of Author and Expert Comments
  • The Number of Experts Contributing
  • The Feedback of the Community

Your Input Matters
Because of the way the system is set up, the most important variable in this equation is you. As a member of Experts Exchange, you are able to cast your vote on the quality of the solutions in regard to how complete, accurate, helpful and easy to understand each solution is. When you provide your feedback, each rating is adjusted accordingly. So, if you see a solution that has a poor rating that you think is a good solution, let us know by rating it. As you do, the rating will be adjusted and will become more accurate for other members of our site.

If you have any suggestions that you would like to make for our rating system, please ask a question in the Suggestions Zone of Community Support.

Thank you!

9.1

XML convert with xslt and .net

Asked by conceptdata in Extensible Markup Language (XML), Extensible Stylesheet Language Transformation (XSLT), .NET

Tags: XML XSLT .NET

Hi
I have a XML document I would like to have convertet to a text doc, with a special syntax.

See the Code :
- First code : Original XML
- Second code : Text doc.
- Third cod : Original XML + Text doc lines
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
18:
19:
20:
21:
22:
23:
24:
25:
26:
27:
28:
29:
30:
31:
32:
33:
34:
35:
36:
37:
38:
39:
40:
41:
42:
43:
44:
45:
46:
47:
48:
49:
50:
51:
52:
53:
54:
55:
56:
57:
58:
59:
60:
61:
62:
63:
64:
65:
66:
67:
68:
69:
70:
71:
72:
73:
74:
75:
76:
77:
78:
79:
80:
81:
82:
83:
84:
85:
86:
87:
88:
------------FIRST CODE --------------
<?xml version="1.0" encoding="UTF-8"?>
<!--Sample XML file generated by XMLSPY v2004 rel. 3 U (http://www.xmlspy.com)-->
<Invoice xmlns="http://rep.oio.dk/ubl/xml/schemas/0p71/pie/" xmlns:com="http://rep.oio.dk/ubl/xml/schemas/0p71/common/" xmlns:main="http://rep.oio.dk/ubl/xml/schemas/0p71/maindoc/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://rep.oio.dk/ubl/xml/schemas/0p71/pie/
http://rep.oio.dk/ubl/xml/schemas/0p71/pie/pieStrict.xsd">
	<com:ID>2296</com:ID>
	<com:IssueDate>2004-10-13</com:IssueDate>
	<com:TypeCode>PIE</com:TypeCode>
	<main:InvoiceCurrencyCode>DKK</main:InvoiceCurrencyCode>
	<com:BuyersReferenceID>5798000416642</com:BuyersReferenceID>
	<com:ReferencedOrder>
		<com:BuyersOrderID>M23-453</com:BuyersOrderID>
		<com:SellersOrderID/>
		<com:IssueDate>2004-10-01</com:IssueDate>
	</com:ReferencedOrder>
	<com:BuyerParty>
		<com:ID schemeID="CVR">12312312</com:ID>
		<com:PartyName>
			<com:Name>IT- og Telestyrelsen</com:Name>
		</com:PartyName>
		<com:Address>
			<com:ID>Fakturering</com:ID>
			<com:Street>Holsteinsgade</com:Street>
			<com:HouseNumber>63</com:HouseNumber>
			<com:CityName>København Ø.</com:CityName>
			<com:PostalZone>2100</com:PostalZone>
			<com:Country>
				<com:Code>DK</com:Code>
			</com:Country>
		</com:Address>
		<com:BuyerContact>
			<com:ID>rak@itst.dk</com:ID>
		</com:BuyerContact>
	</com:BuyerParty>
........etc.....
------------SECOND CODE --------------
INVOICE_ID
INVOICE_IssueDate	
INVOICE_TypeCode	
INVOICE_InvoiceCurrencyCode	
INVOICE_BuyersReferenceID	
INVOICE_ReferencedOrder_BuyersOrderID		
INVOICE_ReferencedOrder_SellersOrderID		
INVOICE_ReferencedOrder_IssueDate		
INVOICE_BuyerParty_ID		
INVOICE_BuyerParty_PartyName_Name			
INVOICE_BuyerParty_Address_ID					
INVOICE_BuyerParty_Address_Street			
INVOICE_BuyerParty_Address_HouseNumber
INVOICE_BuyerParty_Address_CityName		
INVOICE_BuyerParty_Address_PostalZone	
INVOICE_BuyerParty_Country_Code				
INVOICE_BuyerParty_BuyerContact_ID			
------------THIRD CODE --------------
<?xml version="1.0" encoding="UTF-8"?>
<!--Sample XML file generated by XMLSPY v2004 rel. 3 U (http://www.xmlspy.com)-->
<Invoice xmlns="http://rep.oio.dk/ubl/xml/schemas/0p71/pie/" xmlns:com="http://rep.oio.dk/ubl/xml/schemas/0p71/common/" xmlns:main="http://rep.oio.dk/ubl/xml/schemas/0p71/maindoc/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://rep.oio.dk/ubl/xml/schemas/0p71/pie/
http://rep.oio.dk/ubl/xml/schemas/0p71/pie/pieStrict.xsd">
INVOICE_ID	<com:ID>2296</com:ID>
INVOICE_IssueDate	<com:IssueDate>2004-10-13</com:IssueDate>
INVOICE_TypeCode	<com:TypeCode>PIE</com:TypeCode>
INVOICE_InvoiceCurrencyCode	<main:InvoiceCurrencyCode>DKK</main:InvoiceCurrencyCode>
INVOICE_BuyersReferenceID	<com:BuyersReferenceID>5798000416642</com:BuyersReferenceID>
<com:ReferencedOrder>
INVOICE_ReferencedOrder_BuyersOrderID		<com:BuyersOrderID>M23-453</com:BuyersOrderID>
INVOICE_ReferencedOrder_SellersOrderID		<com:SellersOrderID/>
INVOICE_ReferencedOrder_IssueDate		<com:IssueDate>2004-10-01</com:IssueDate>
</com:ReferencedOrder>
<com:BuyerParty>
INVOICE_BuyerParty_ID		<com:ID schemeID="CVR">12312312</com:ID>
		<com:PartyName>
INVOICE_BuyerParty_PartyName_Name			<com:Name>IT- og Telestyrelsen</com:Name>
		</com:PartyName>
		<com:Address>
INVOICE_BuyerParty_Address_ID						<com:ID>Fakturering</com:ID>
INVOICE_BuyerParty_Address_Street			  <com:Street>Holsteinsgade</com:Street>
INVOICE_BuyerParty_Address_HouseNumber	<com:HouseNumber>63</com:HouseNumber>
INVOICE_BuyerParty_Address_CityName			<com:CityName>København Ø.</com:CityName>
INVOICE_BuyerParty_Address_PostalZone		<com:PostalZone>2100</com:PostalZone>
				<com:Country>
INVOICE_BuyerParty_Country_Code				<com:Code>DK</com:Code>
				</com:Country>
		</com:Address>
		<com:BuyerContact>
INVOICE_BuyerParty_BuyerContact_ID			<com:ID>rak@itst.dk</com:ID>
		</com:BuyerContact>
</com:BuyerParty>
........etc.....
 
Related Solutions
Keywords: XML convert with xslt and .net
 
Loading Advertisement...
 
[+][-]09/17/09 02:14 PM, ID: 25361169Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]09/21/09 03:01 AM, ID: 25381404Author Comment

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]10/05/09 10:53 AM, ID: 25497623Author Comment

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]10/08/09 07:54 AM, ID: 25526128Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]10/08/09 08:29 AM, ID: 25526556Author Comment

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]10/08/09 09:44 AM, ID: 25527396Accepted Solution

View this solution now by starting your 30-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

About this solution

Zones: Extensible Markup Language (XML), Extensible Stylesheet Language Transformation (XSLT), .NET
Tags: XML XSLT .NET
Sign Up Now!
Solution Provided By: jensfiederer
Participating Experts: 1
Solution Grade: A
 
 
Loading Advertisement...
20091021-EE-VQP-81 - Hierarchy / EE_QW_3_20080625