Phones

Question

converting reg keys from reg file to xml

by marklug / November 21, 2012 10:13 PM PST

Hi, all.

I searched all over the internet, and couldn't find answer to one question:

How do I translate reg values of type hex to syntax of provisioning xml file?

More specifically: I have this reg key

[HKEY_LOCAL_MACHINE\System\GWE]
"SysColor"=hex:d4,d4,d4,00,4c,4c,4c,00,7f,7f,7f,00,4c,4c,4c,00,00,00,00,00,82,\
82,82,00,00,00,00,00,fe,fe,fe,00,00,00,00,00,fe,fe,fe,00,00,00,00,00,00,00,\
00,00,4c,4c,4c,00,00,85,cc,00,cc,cc,cc,00,60,60,60,00,7f,7f,7f,00,60,60,60,\
00,fe,fe,fe,00,7f,7f,7f,00,00,85,cc,00,00,00,00,00,ff,ff,ff,00,fe,fe,fe,00,\
00,00,00,00,4c,4c,4c,00,fe,fe,fe,00,00,00,00,00,00,00,00,00


How do I write this key in xml file (I know it should be of binary data type, but how do I convert the value itself)?

Thank you,
Mark

Discussion is locked
You are posting a reply to: converting reg keys from reg file to xml
The posting of advertisements, profanity, or personal attacks is prohibited. Please refer to our CNET Forums policies for details. All submitted content is subject to our Terms of Use.
Track this discussion and email me when there are updates

If you're asking for technical help, please be sure to include all your system info, including operating system, model number, and any other specifics related to the problem. Also please exercise your best judgment when posting in the forums--revealing personal information such as your e-mail address, telephone number, and address is not recommended.

You are reporting the following post: converting reg keys from reg file to xml
This post has been flagged and will be reviewed by our staff. Thank you for helping us maintain CNET's great community.
Sorry, there was a problem flagging this post. Please try again now or at a later time.
If you believe this post is offensive or violates the CNET Forums' Usage policies, you can report it below (this will not automatically remove the post). Once reported, our moderators will be notified and the post will be reviewed.

All Answers

Collapse -
Answer
Wait a second.
by R. Proffitt Forum moderator / November 22, 2012 1:37 AM PST

XML encoding is set by us. If I want to put that into XML then my app determines what tags to use.

And a warning about Windows Mobile's XML library. I had to write my own XML reader due to that. Ouch!
Bob

Collapse -
Sorry, but I don't understand
by marklug / November 22, 2012 2:38 AM PST
In reply to: Wait a second.

I'm sorry, but I didn't understand your answer:
Do you mean to say that you have some application to convert reg files to xml?
Can you provide this application?

Thank you,
Mark

Collapse -
Sorry.
by R. Proffitt Forum moderator / November 22, 2012 3:02 AM PST

But your answer tells me you don't know XML yet. The encoding and tags is done by us. We select the tags and since the app that will read this in sets those tags I can't tell you what the tags are.

A few of my apps, some that are on Windows Mobile use XML files. My warning looks to be over your head at the moment but at least you got the warning. You'll remember what I said if that blows up on you like I found it to be.

Because there is no hope of MSFT changing/fixing the XML library I had to write my own reader.

I fear you can't be helped yet because you didn't get what XML is.
Bob

Collapse -
Answer
Re: regkey to xml
by Kees_B Forum moderator / November 22, 2012 3:04 AM PST

xml is plain ascii.So I would use something like:
<syscolor format="hex"> d4,d4,d4,00,4c,4c,4c,00,7f,7f,7f,00,4c,4c,4c,00,00,00,00,00,82,82,82,00,00,00,00,00,fe,fe,fe,00,00,00,00,00,fe,fe,fe,00,00,00,00,00,00,00,00,00,4c,4c,4c,00,00,85,cc,00,cc,cc,cc,00,60,60,60,00,7f,7f,7f,00,60,60,60,00,fe,fe,fe,00,7f,7f,7f,00,00,85,cc,00,00,00,00,00,ff,ff,ff,00,fe,fe,fe,00,00,00,00,00,4c,4c,4c,00,fe,fe,fe,00,00,00,00,00,00,00,00,00
</syscolor>
Perfectly understandable for the receiver. The most obvious alternative would be MIME-encoding as used for binary attachments of an e-mail.

Can you tell WHY you want to convert reg-keys to xml?

Kees

Collapse -
Answer
A tool to create the XML. Link follows.
by R. Proffitt Forum moderator / November 22, 2012 3:10 AM PST
Popular Forums
icon
Computer Help 47,885 discussions
icon
Computer Newbies 10,322 discussions
icon
iPhones, iPods, & iPads 3,188 discussions
icon
Security 30,333 discussions
icon
TVs & Home Theaters 20,177 discussions
icon
HDTV Picture Setting 1,932 discussions
icon
Phones 15,713 discussions
icon
Windows 7 6,210 discussions
icon
Networking & Wireless 14,510 discussions

Tech Tip

Know how to save a wet phone?

It's not with a dryer and it's not with rice. CNET shows you the secret to saving your phone.