Sean,
Sorry for late replying.
When you sent this message I had already found a similar solution. Now I test your solution and it also works fine.
Thanks a lot anyway.
Carlos
Sean Kelly <[EMAIL PROTECTED]> wrote:
On Fri, 24 Oct 2003, [iso-8859-1] Carlos Baz�lio wrote:
>
> I'm a newbie at Xerces. Since I've started using Xerces, I parsed my XML files using parseURI method from DOMBuilder class. Now I wish to parse a XML provided by a string (char *). How can I do that using DOMBuilder ? Is DOMInputSource a solution ? How can I use it ?
I've only ever used the SAX parser, but I imagine the method is the same.
Here's an example of how to parse data in a std::string:
#include
...
std::string buf( "" );
MemBufInputSource is( reinterpret_cast( buf.c_str() ),
buf.size(),
"My Parser" );
reader->parse( is );
Sean
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
Yahoo! Mail - 6MB, anti-spam e antiv�rus gratuito. Crie sua conta agora!
