From: Tom Serface on
Sounds interesting to me.

Tom

"DanB" <abc(a)some.net> wrote in message
news:U2RRm.50563$X01.43149(a)newsfe07.iad...
>
> And why I evolved it. What I ended up with was a wrapper that looks
> somewhat like the above markup class with tiny as the engine, so I would
> have access to xpath. My wrapper will also create nodes on the fly if the
> 'can create' flag is set. You don't have to mess with the xml when you
> make changes. Versioning is seamless. It can create whole xml files just
> from use.
>
> <http://lakeweb.net/MFC/xml.h>
>
> I think tiny is deficient and someday I'll replace the tiny engine with
> MSXML. I've had to resort to MSXML because of this. But because of the
> wrapper, I should not have to do anything at the app level if I do change
> engines.
>
> I've put the solution up before and will do so again if there is interest.
>
> Best, Dan.

From: Tom Serface on
I almost always hand code "output" for XML these days, but being able to
read/parse from any XML source is way more trouble. I agree with you
though. If you have specific needs and no need for a schema or DTD based
validation especially, it is very doable.

Tom

"Joseph M. Newcomer" <newcomer(a)flounder.com> wrote in message
news:7csfh5tgvheh9ntvnpm6sdmn945b62el0b(a)4ax.com...
> Actually, I needed an XML parser-in-a-hurry a few months ago, so I wrote
> my own. Took
> only 6 hours. No, it only handles input files in 8-bit text or in
> Unicode, but that met
> the requirements I had. I also did it because I wanted to prove that if
> your needs are
> modest, you can write an XML parser in an afternoon. When I finish the
> project, I'll
> write an article on it.
>
> It includes the ability to add nodes at any time.
> joe
>
> On Wed, 2 Dec 2009 16:38:04 -0500, "marathoner" <rajk2000(a)msn.com.invalid>
> wrote:
>
>>I would like to know how to read an XML file in Visual C++ 6.0
>>
>>Marathoner
>>
> Joseph M. Newcomer [MVP]
> email: newcomer(a)flounder.com
> Web: http://www.flounder.com
> MVP Tips: http://www.flounder.com/mvp_tips.htm

From: DanB on
Tom Serface wrote:
> Sounds interesting to me.

Hi Tom,
I believe this version is free of my environment.

<http://lakeweb.net/MFC/downloads/xml.zip>

If it isn't, please let me know.
It is set up for testing, making libs and dlls.

Thanks, Dan.
pubdan3 'at' lakeweb * net
From: Tom Serface on
Thanks. I'll take a look.

Tom

"DanB" <abc(a)some.net> wrote in message
news:VdVRm.34609$Sw5.31711(a)newsfe16.iad...
> Tom Serface wrote:
>> Sounds interesting to me.
>
> Hi Tom,
> I believe this version is free of my environment.
>
> <http://lakeweb.net/MFC/downloads/xml.zip>
>
> If it isn't, please let me know.
> It is set up for testing, making libs and dlls.
>
> Thanks, Dan.
> pubdan3 'at' lakeweb * net

From: Joseph M. Newcomer on
Key was that I had no DTDs, and actually only needed 8-bit characters (but it is written
Unicode-aware, and in fact is actually a Unicode app). Essentially, it accepts the XML as
writen and assumes it is correct. Semantic checks, which DTDs can't do, were more
critical.

It is now handling several megabytes of database.
joe

On Thu, 3 Dec 2009 12:11:37 -0800, "Tom Serface" <tom(a)camaswood.com> wrote:

>I almost always hand code "output" for XML these days, but being able to
>read/parse from any XML source is way more trouble. I agree with you
>though. If you have specific needs and no need for a schema or DTD based
>validation especially, it is very doable.
>
>Tom
>
>"Joseph M. Newcomer" <newcomer(a)flounder.com> wrote in message
>news:7csfh5tgvheh9ntvnpm6sdmn945b62el0b(a)4ax.com...
>> Actually, I needed an XML parser-in-a-hurry a few months ago, so I wrote
>> my own. Took
>> only 6 hours. No, it only handles input files in 8-bit text or in
>> Unicode, but that met
>> the requirements I had. I also did it because I wanted to prove that if
>> your needs are
>> modest, you can write an XML parser in an afternoon. When I finish the
>> project, I'll
>> write an article on it.
>>
>> It includes the ability to add nodes at any time.
>> joe
>>
>> On Wed, 2 Dec 2009 16:38:04 -0500, "marathoner" <rajk2000(a)msn.com.invalid>
>> wrote:
>>
>>>I would like to know how to read an XML file in Visual C++ 6.0
>>>
>>>Marathoner
>>>
>> Joseph M. Newcomer [MVP]
>> email: newcomer(a)flounder.com
>> Web: http://www.flounder.com
>> MVP Tips: http://www.flounder.com/mvp_tips.htm
Joseph M. Newcomer [MVP]
email: newcomer(a)flounder.com
Web: http://www.flounder.com
MVP Tips: http://www.flounder.com/mvp_tips.htm