Where can I find sample code to do XML parsing on WinCE?
So you want to do something with XML on WinCE / Windows Mobile and want to see sample code to do it. It can be as easy as basic parsing of an XML Document to some complex XSLT transformation.
While there are not a ton of WinCE specific examples of parsing XML, there are tons of samples written for Windows XP. The XML parser on "modern" WinCE devices is MSXML3 SP1, the same that shipped with Windows XP RTM. So if you can't find a CE sample, look for general MSXML samples and it should just work. MSXML can be invoked directly from C++ and is the ActiveX object used when parsing XML via jscript/vbscript via Microsoft.XMLDOM and friends. It is *not* the core behind the managed XML parser.
Caveats:
* WinCE is a port of the desktop MSXML. We tried our best to keep our parser as close to theirs as possible but can't promise %100 compat, so caveat emptor.
* Especially with general embedded, just because you have MSXML on your system doesn't mean you have the particular component required built into the ROM. More info on this line:
* Information about MSXML componentization
* How to add an optional component such as MSXML to an embedded device.
[Author: John Spaith]
Comments
- Anonymous
July 27, 2006
John, my apologies if this comment does not pass blogging etiquette. I came across your name in some other group posts. You were discussing the ability (or difficulty) in creating a Windows CE device/machine account in AD. However, the post was somewhat dated, and I wondered if you had any updates on this front. Perhaps a new blog entry?? :)
An organization I am currently working with has done the prudent thing securing their 802.11 wireless network with EAP-PEAP. However, they also have the option turned on to REQUIRE machine authentication. This would not appear possible with CE devices, and this effectively eliminates such devices from being deployed as a solution in several projects.
Any update or forsight would be appreciated. - Anonymous
July 27, 2006
Is there a such thing as blogging etiquette :)? 802.11 is way outside my knowledge area, you should post this to one of the newsgroups listed in http://blogs.msdn.com/cenet/archive/2005/12/05/500181.aspx
John - Anonymous
July 27, 2006
Machine authentication for 802.1x (RADIUS) authentication does not technically have anything to do with active directory. However, if the organization you're working with gives you no control over the RADIUS server, and has set it up (i.e. using microsoft IAS) such that it only authenticates against AD machine-accounts, then you're in trouble. Otherwise, there are plenty of solutions, such as adding an AD service account for each CE device, or using a separate authentication database altogether (ala Funk's RADIUS servers). Since you say EAP-PEAP, I assume they only want to play with user/pass authentication (not always true!); AD machine accounts is just one way to make that work.
gmail name is ian133 - Anonymous
September 12, 2006
Maybe somewhat off topic, but I've had a lot of requests from customers using EAP-PEAP against IAS/AD and they want to require that the user does machine auth AND user auth. The problem is once you have a user in IAS/AD, they can bring in any device and as long as it has a EAP-PEAP client and you enter the correct credentials, they can get on the wi-fi network. I've been looking up and down at IAS, but can't find the option you describe to REQUIRE machine auth, can you point me to where that setup on IAS/AD is? - Anonymous
September 13, 2006
If some other person can get answer this I'd pass it on (once I checked), but I'd really recommend you continue this thread at a newsgroup listed at http://blogs.msdn.com/cenet/archive/2005/12/05/500181.aspx. I have to moderate blog comments because otherwise there would be really gross spam all over the place, so that slows things down tons.
John