Re: [libxml++] parse_memory



Hi Minggi
The following is my opinion.
As you don't have any DTD in your string so you 
Don't need to any validation.
Change your code to this: lParser.set_validate(false);
As lParser.set_validate(); is equal to lParser.set_validate(true);
and try again .

Hope it work.

Have a good day!

-----Original Message-----
From: libxmlplusplus-general-bounces lists sourceforge net
[mailto:libxmlplusplus-general-bounces lists sourceforge net] On Behalf Of
Stoffel Armin
Sent: Tuesday, March 18, 2008 7:51 PM
To: libxmlplusplus-general lists sourceforge net
Subject: [libxml++] parse_memory

Hi all

I try to parse a string:

lQuery = "<?xml version=\"1.0\" encoding=\"UTF-8\"?><envelope 
name=\"getSeed\"><body><getSeed/></body></envelope>";
DomParser lParser;
lParser.set_validate();
lParser.set_substitute_entities();
lParser.parse_memory(lQuery);
lXmlDocRes = lParser.get_document();

It do not work. Can you help?
What's wrong?

Minggi


-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Libxmlplusplus-general mailing list
Libxmlplusplus-general lists sourceforge net
https://lists.sourceforge.net/lists/listinfo/libxmlplusplus-general





[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]