|
|||||||
![]() |
|
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
VS 2008. Using xmltransform in Mobile Device. NET 3.5
Hi Forum,
I am very new to Visual Studio 2008 and .Net, and can normally resolve most issues with internet searching, but I've hit an issue and am completely stumped. I'm trying to build a mobile application using Visual Studio 2008. By default, the application seems to have imported a number of classes from the Compact Framework 3.5. One part of my application involves taking an XML file, and translating it using an XSL script to another format. I am comfortable with the script. However, when I come to use the 'system.xml.xsl.transform' functionality to do this transform, it shows up as an error in the editor: Quote:
I tried removing the compact framework 'system.xml' reference from my project, and installing the other one instead (Which seems to be from .net v2) which then appeared fine in the editor, but crashed on the mobile device, saying that the app was not designed for .net v2. I've also tried using xsl.compiledtransform, but this seems to have the same problems. Available if I import the references for .net v2, but not if I use the references from CF v3.5. How can I get the ability to apply an xsl translation to an XML document on a windows mobile device? (I'm currently targetting Windows Mobile 6, but want it to work on older devices also). Would it work to update all my references to .net V2, or am I just landing myself with future problems? Thanks in advance, Ian. PS - Sorry if I'm using the wrong terminology. This is my first foray into detailed programming ! |
|
#2
|
|||
|
|||
|
Hi, Ian: For Windows Mobile applications, you are limited to the functionality provided by the Compact Framework. You should remove references to the full .NET Framework (what you refer to as v2) from your project. See if this helps: http://social.msdn.microsoft.com/For...2-838712e382e4
__________________
Phil Weber http://www.philweber.com Please post questions to the forums, where others may benefit. I do not offer free assistance by e-mail. Thank you! |
|
#3
|
|||
|
|||
|
Hi Phil,
Thanks for your reply. I'm afraid the link in your answer was a few levels above my current level of expertise, but I'll keep trying to work it out. As far as I can see, I need to get hold of 'msxml.tlb' and use this instead of the CF framework. I can see msxml.dll, but if it's better to use 'msxml.tlb', how do I get hold of this file? Thanks again for your help, Ian. |
|
#4
|
|||
|
|||
|
Just wanted to say a big thank you for your help.
It's working in Windows Mobile 6 now. I just need to test it on a few other platforms, but as far as I can see, it's looking good. I didn't bother with the tlb file, and just used the msxml.dll. In case it helps anyone, here's some of the ugliest code in the world. Now I need to work out how to clean it up ![]() Quote:
Ian. |
|
#5
|
|||
|
|||
|
Me Again....
I took the exact same code, and attempted to use it on a Pocket PC 2003. When I do this, and debug it, I have a problem with this line: OutputDocument = Input.transformNode(inputxsl) In Windows Mobile 6, the OutputDocument object is the result of putting Input through the inputxsl transformation. This is how it should be. In Pocket PC 2003, the OutputDocument object is simply the contents of the inputxsl file. ie. The translation isn't working. I'd very much welcome any suggestions. Is it possible I imported the msxml.dll wrongly, or need to find some other version of msxml.dll (msxml2.dll or msxml.tlb) to get this working? Thanks again, Ian. |
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| .NOT vs .NET | Robert Lantry | .NET | 88 | 04-05-2002 08:03 AM |