Re: XML & WinCE4.2
From: John Spaith [MS] (jspaith_at_ONLINE.microsoft.com)
Date: 04/05/04
- Previous message: Andras Tantos: "Re: (C*)v != (C2*)v"
- In reply to: plopp: "Re: XML & WinCE4.2"
- Next in thread: plopp: "Re: XML & WinCE4.2"
- Reply: plopp: "Re: XML & WinCE4.2"
- Messages sorted by: [ date ] [ thread ]
Date: Mon, 5 Apr 2004 12:35:05 -0700
On
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/wcexmldm/html/ceconxmlforwindowscenet.asp
<<
A platform that includes MSXML for Microsoft Windows CE supports some subset
of XML functionality, as determined by the device manufacturer. Regardless
of the components selected by the manufacturer, a Windows CE-based platform
does not support the following:
The XSLTemplate and IXSLProcessor interfaces. There is support for XSLT
through the TransformNode method, but there is no support for template
caching.
>>
So there is no XSLTemplate component - it was removed for WinCE to save ROM
and due to resource constraints. You should be calling directly to
TransformNode(). WinCE does have TransformNode() and even if your image
only has a DOM (but no XSLT) you will still be able to call this
TransformNode(). This function will just E_NOTIMPL in this case. Once your
OEM adds XSLT support for you then this should work.
Hope all this helps.
-- John Spaith Software Design Engineer, Windows CE Microsoft Corporation Have an opinion on the effectiveness of Microsoft Embedded newsgroups? Let us know! https://www.windowsembeddedeval.com/community/newsgroups This posting is provided "AS IS" with no warranties, and confers no rights. You assume all risk for your use. © 2003 Microsoft Corporation. All rights reserved. "plopp" <pllop@plop.com> wrote in message news:O%23lbJFvGEHA.3776@tk2msftngp13.phx.gbl... > Thanks John, > > I'm not OEM so I'll forward your answer to him. > > There is something I'm still not understanding, maybe you'll be able to > explain to me. > > I think that the XMLDOM is installed on my device because I can use every > "standard" objects and functions like IXMLDOMDocument, IXMLDOMNode, > get_childNodes, etc.. I understand that Microsoft componentized MSXML but I > don't undertand why Microsoft compenentized XMLDOM. > > Maybe I've got a second explanation, I have seen on MSDN (sorry I forgot the > link) that, since the MSXML2.6 version, Microsoft advise to use > IXSLProcessor object to transform XML/XSL to HTML. So I tryed it but, in > this case, it seems that the "XSLTemplate" component is not registred on my > device. > > Is it possible that Microsoft doesn't implement "tranformNode" function in > favour of "IXSLTemplate" ? > > Regards, > > Seb > > "John Spaith [MS]" <jspaith@ONLINE.microsoft.com> a écrit dans le message de > news:u01Y9GPGEHA.2600@TK2MSFTNGP12.phx.gbl... > > I answered this question (posted in another newsgroup) assuming you > couldn't > > get DOM working. For reference, here's what I wrote: > > > > << > > http://www.pocketpcdn.com/articles/xmlfaq.html has some commonly asked > > questions about MSXML. > > > > Between CE 3.0 and CE 4.2, we made MSXML such that it can be built as > > separate components. In 3.0 you got all of MSXML or nothing, but in CE > 4.2 > > you can chose different components (like say only SAX, or DOM, or no XQL). > > My guess here is that you are either not building MSXML into this platform > > or that you are building the sax only option. > > > > To see if you have DOM option, you can go to your flatrelease directory > and > > look for the file ceconfig.h, which lists all the subcomponents that were > > used when building your image. If you have this line in the file, then > you > > have MSXML DOM. > > > > #define MSXML3_XMLDOM 1 > > > > If I'm right you'll need to bring in the extra components of MSXML or, if > > you're not an OEM, talk with the OEM you're working with to add the > > components. > > >> > > > > Basically the only thing you have to change in the above text is replace > DOM > > with XSLT. You'll need SYSGEN_MSXML_XSLT=1 now due to the > copmonentization > > concerns. > > > > In the future, if you want to post to multiple newsgroups please put all > the > > newsgroups in the CC line at once. That way any responses are carried > > across the groups as well. > > > > -- > > John Spaith > > Software Design Engineer, Windows CE > > Microsoft Corporation > > > > Have an opinion on the effectiveness of Microsoft Embedded newsgroups? > Let > > us know! > > https://www.windowsembeddedeval.com/community/newsgroups > > > > This posting is provided "AS IS" with no warranties, and confers no > rights. > > You assume all risk for your use. © 2003 Microsoft Corporation. All rights > > reserved. > > > > "plopp" <pllop@plop.com> wrote in message > > news:ux5FDlNGEHA.740@tk2msftngp13.phx.gbl... > > > Ok ! ... first issue solved ... when passing from wince 3.0 to wince 4.2 > > the > > > msxml.dll changed. So I updated my code to be "compatible" in any case. > > Like > > > that : > > > CLSID clsid; > > > CLSIDFromProgID(OLESTR("MSXML.DOMDOCUMENT"), &clsid ); > > > hr = CoCreateInstance(clsid, NULL, > > > CLSCTX_INPROC_SERVER|CLSCTX_LOCAL_SERVER, MSXML::IID_IXMLDOMDocument, > > > (LPVOID *)iXMLDoc); > > > > > > *** Second issue (heeelp !) *** > > > Now, I'm able to parse and load XML File, but the "transformNode" > function > > > doesn't works anymore (Error code : 0x80004001). The error code seems to > > say > > > that the function is not implemented. Did anybody already met this error > > > code ? What does it mean exactly ? > > > If somebody know how to transform an XML/XSL couple of file to HTML with > > > MSXML, I'll be very enjoy to talk with him/her ! > > > > > > Thanks for your help ! > > > > > > > > > > > > > > > > > > > > > > > > > > > "plopp" <pllop@plop.com> a écrit dans le message de > > > news:OuCVMaIGEHA.4012@TK2MSFTNGP09.phx.gbl... > > > > Hi All ! > > > > I'm trying to read an XML File using XMLDOM. I developped an XML > Class > > > with > > > > eVC3 and it works fine on Win CE3.0. Now, I'm using eVC4 and WinCE 4.2 > > and > > > > the following code returns the error code 0x80040154. It seems to be a > > > > Registration Problem, but I don't know what can I do ! > > > > > > > > MSXML::IXMLDOMDocument *iXMLDoc; > > > > hr = CoCreateInstance( > > > > MSXML::CLSID_DOMDocument, > > > > NULL, > > > > CLSCTX_INPROC_SERVER|CLSCTX_LOCAL_SERVER, > > > > MSXML::IID_IXMLDOMDocument, > > > > (LPVOID*)&iXMLDoc); > > > > > > > > I tried to open my XML file with the Pocket Internet Explorer (or > > > > IESample.exe) but it didn't open my file. Should I install something > > > special > > > > ? > > > > > > > > Any help is welcome ! > > > > Thanx ! > > > > > > > > > > > > > > > > > > > >
- Previous message: Andras Tantos: "Re: (C*)v != (C2*)v"
- In reply to: plopp: "Re: XML & WinCE4.2"
- Next in thread: plopp: "Re: XML & WinCE4.2"
- Reply: plopp: "Re: XML & WinCE4.2"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|