Hi,
Is there any readily available XML parsing library in C that I can use in a driver? I am having issues with trying to use Expat because it uses realloc.
Regards,
Mridul.
Hi,
Is there any readily available XML parsing library in C that I can use in a driver? I am having issues with trying to use Expat because it uses realloc.
Regards,
Mridul.
None that I know of; why would you need to do this in a driver?
You could, btw, reimplement malloc/realloc/calloc/free against the pool allocator (choose the pool that is appropriate for your application).
? S
-----Original Message-----
From: xxxxx@mediafour.com
Sent: Wednesday, December 31, 2008 18:08
To: Windows System Software Devs Interest List
Subject: [ntdev] Simple XML parsing library for drivers
Hi,
Is there any readily available XML parsing library in C that I can use in a driver? I am having issues with trying to use Expat because it uses realloc.
Regards,
Mridul.
—
NTDEV is sponsored by OSR
For our schedule of WDF, WDM, debugging and other seminars visit:
http://www.osr.com/seminars
To unsubscribe, visit the List Server section of OSR Online at http://www.osronline.com/page.cfm?name=ListServer
You can always implement a realloc primitive; it isn’t that hard.
joe
-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of
xxxxx@mediafour.com
Sent: Wednesday, December 31, 2008 7:08 PM
To: Windows System Software Devs Interest List
Subject: [ntdev] Simple XML parsing library for drivers
Hi,
Is there any readily available XML parsing library in C that I can use in a
driver? I am having issues with trying to use Expat because it uses realloc.
Regards,
Mridul.
NTDEV is sponsored by OSR
For our schedule of WDF, WDM, debugging and other seminars visit:
http://www.osr.com/seminars
To unsubscribe, visit the List Server section of OSR Online at
http://www.osronline.com/page.cfm?name=ListServer
–
This message has been scanned for viruses and dangerous content by
MailScanner, and is believed to be clean.
> Is there any readily available XML parsing library in C that I can use in a driver? I am having issues
with trying to use Expat because it uses realloc.
Can you parse XML in user mode and only supply the parsed binary results to the kernel mode?
–
Maxim S. Shatskih
Windows DDK MVP
xxxxx@storagecraft.com
http://www.storagecraft.com
you have to wait than your win32 service would start (if any)
I use modified xmlParser in my drivers without any problems and I like it
(link: http://www.applied-mathematics.net/tools/xmlParser.html).
-pk
-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Maxim S. Shatskih
Sent: 1. ledna 2009 3:29
To: Windows System Software Devs Interest List
Subject: Re:[ntdev] Simple XML parsing library for drivers
Is there any readily available XML parsing library in C that I can use in
a driver? I am having issues
with trying to use Expat because it uses realloc.
Can you parse XML in user mode and only supply the parsed binary results to
the kernel mode?
–
Maxim S. Shatskih
Windows DDK MVP
xxxxx@storagecraft.com
http://www.storagecraft.com
NTDEV is sponsored by OSR
For our schedule of WDF, WDM, debugging and other seminars visit:
http://www.osr.com/seminars
To unsubscribe, visit the List Server section of OSR Online at
http://www.osronline.com/page.cfm?name=ListServer
Written in c++ => no go for most kernel mode projects.
( no intention to start another spin of the discussion ).
Does the OP need a xml parser ‘per se’, or just a way to
share text files between their driver and apps?
Don’t throw boots at me please.
A simple INI file is *way* more readable and easy than xml.
We’ve made a parser for ini files, in plain C, small, simple and robust.
–PA
Petr Kurtin wrote:
you have to wait than your win32 service would start (if any)
I use modified xmlParser in my drivers without any problems and I like it
(link: http://www.applied-mathematics.net/tools/xmlParser.html).-pk
-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Maxim S. Shatskih
Sent: 1. ledna 2009 3:29
To: Windows System Software Devs Interest List
Subject: Re:[ntdev] Simple XML parsing library for drivers> Is there any readily available XML parsing library in C that I can use in
a driver? I am having issues
> with trying to use Expat because it uses realloc.Can you parse XML in user mode and only supply the parsed binary results to
the kernel mode?
I’ve used this parser also (in user mode, folks, don’t freak out) as part of a DLL I support. VERY solid and relatively well written.
IIRC, it’s only nominally in C++ and would be relatively straight-forward to convert to vanilla C. Of course, that would still be a project.
Peter
OSR
Unfortunately xml has sort of become pervasive for embedded systems and
consequently has cascaded up into os drivers for those systems. I agree with
you regarding simpler ‘ini’ files, although at least xml is sort of
standardized. Also you can’t just toss “C++ no go” and then try to immunize
yourself with a ‘not trying to start a flame war’. If you are not trying to
start a flame war leave your opinions about C++ out of the discussion.
Mark Roddy
On Thu, Jan 1, 2009 at 9:08 AM, Pavel A. wrote:
> Written in c++ => no go for most kernel mode projects.
> ( no intention to start another spin of the discussion ).
>
> Does the OP need a xml parser ‘per se’, or just a way to
> share text files between their driver and apps?
>
> Don’t throw boots at me please.
> A simple INI file is way more readable and easy than xml.
> We’ve made a parser for ini files, in plain C, small, simple and robust.
>
> --PA
>
> Petr Kurtin wrote:
>
>> you have to wait than your win32 service would start (if any)
>>
>> I use modified xmlParser in my drivers without any problems and I like it
>> (link: http://www.applied-mathematics.net/tools/xmlParser.html).
>>
>> -pk
>>
>>
>>
>>
>> -----Original Message-----
>> From: xxxxx@lists.osr.com
>> [mailto:xxxxx@lists.osr.com] On Behalf Of Maxim S. Shatskih
>> Sent: 1. ledna 2009 3:29
>> To: Windows System Software Devs Interest List
>> Subject: Re:[ntdev] Simple XML parsing library for drivers
>>
>> Is there any readily available XML parsing library in C that I can use in
>>>
>> a driver? I am having issues
>>
>>> with trying to use Expat because it uses realloc.
>>>
>>
>> Can you parse XML in user mode and only supply the parsed binary results
>> to
>> the kernel mode?
>>
>>
> —
> NTDEV is sponsored by OSR
>
> For our schedule of WDF, WDM, debugging and other seminars visit:
> http://www.osr.com/seminars
>
> To unsubscribe, visit the List Server section of OSR Online at
> http://www.osronline.com/page.cfm?name=ListServer
>
Just to clarify, I am not passing any information from user mode, nor am I using any XML files as INI files. I have a pre-existing XML file which I need to parse in my driver.
I have reimplemented realloc using ExAllocatePoolWithTag to get Expat working.
Thanks for the replies.
Regards,
Mridul.