Phones forum


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


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,

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 -
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!

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,

Collapse -
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.

Collapse -
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
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?


Collapse -
A tool to create the XML. Link follows.
by R. Proffitt Forum moderator / November 22, 2012 3:10 AM PST
Popular Forums
Computer Help 49,613 discussions
Computer Newbies 10,349 discussions
Laptops 19,436 discussions
Security 30,426 discussions
TVs & Home Theaters 20,308 discussions
Windows 10 360 discussions
Phones 15,802 discussions
Windows 7 7,351 discussions
Networking & Wireless 14,641 discussions

Smart Home Help

Light bulbs you shouldn't buy

There are plenty of dimmable LED light bulbs, but make sure you don't buy the ones that flicker when you dial them down.