Re: XML & WinCE4.2

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance

From: John Spaith [MS] (jspaith_at_ONLINE.microsoft.com)
Date: 04/05/04

  • Next message: Ali Uygun: "alabam geht nicht! Wie nicht weil?"
    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 !
    > > > >
    > > > >
    > > >
    > > >
    > >
    > >
    >
    >
    

  • Next message: Ali Uygun: "alabam geht nicht! Wie nicht weil?"

    Relevant Pages

    • Re: XML & WinCE4.2
      ... I'm not OEM so I'll forward your answer to him. ... I understand that Microsoft componentized MSXML but I ... > you can chose different components (like say only SAX, or DOM, or no XQL). ...
      (microsoft.public.windowsce.embedded.vc)
    • Understanding Microsoft Updates Is Hard For Me
      ... I sure experience a lot of frustration, in general, when trying to decide whether or not to install optional updates offered to me at the Microsoft Updates web site. ... Update for Microsoft Core XML Services (MSXML) 6.0 Service Pack 1 ...
      (microsoft.public.windowsupdate)
    • Re: xml aus mssql in webbrowser anzeigen
      ... um die wirkliche Version der benutzten MSXML herauszufinden. ... [Versionsliste zum Microsoft XML Parser ] ... eben von einigen Dingen ab. ... Dipl.Inf. Frank Dzaebel ...
      (microsoft.public.de.german.entwickler.dotnet.csharp)
    • MSXML 4.0 Security Update Reoffering
      ... Several of you have encountered the problem with the MSXML 4.0 Security Update being reoffered again and again. ... At Microsoft we have been work at trying to find the best and least impactful way of addressing this fix. ... This command-line will force the installer to run in repair mode, which will fix the version of MSXML4.dll installed in the %windir%\system32 folder. ... If you try the above work around and it does address the reoffering problem, ...
      (microsoft.public.windowsupdate)
    • Re: Xml Support
      ... MSXML and how to use it are documented ... Microsoft Corporation ... > I am trying to build an app that uses Xml files using Evc 4.0 ...
      (microsoft.public.windowsce.app.development)