Group problem
-
Hello; I have trouble with XML. I have XML document like following; root A id="97033536" B id="09417" C id="09418" D E M18 /E /D /C /B B id="09417" C id="09419" D E M18 /E /D /C /B /A /root I want to get data in 2 rows like; 97033536 09417 09418 M18 97033536 09417 09419 M18 How can i get this result in Visual Basic with DOM? Thanks... Ahmet Orkun GEDiK
-
Hello; I have trouble with XML. I have XML document like following; root A id="97033536" B id="09417" C id="09418" D E M18 /E /D /C /B B id="09417" C id="09419" D E M18 /E /D /C /B /A /root I want to get data in 2 rows like; 97033536 09417 09418 M18 97033536 09417 09419 M18 How can i get this result in Visual Basic with DOM? Thanks... Ahmet Orkun GEDiK
One way is to create an XSL and then transform the XML. This can be done by creating two DOM Documents. Load the XML in one and the XSL in one. call TranformNode for the XML by passing the XSL. The XSL could look something like: I like this approoach because if you wish to chnage the format of your data later on all you have to do is change the XSL and your code remains the same.