You are viewing a plain text version of this content. The canonical link for it is here.
Posted to c-dev@xerces.apache.org by al...@genius.org.br on 2004/12/28 20:13:10 UTC

Parse a String

Hi, how I could parse a string in memory in Xerces-C? I want to parse a 
string (const char*) returned from a function that is in XML format. In 
documentation I only found the parse() function that receives a file name 
as parameter.


Thank you




_______________________________
Allann J. O. Silva
Genius Instituto de Tecnologia
ajoliveira[at]genius.org.br
Tel.:+55 (92) 614-6586
www.genius.org.br
_______________________________
“Dominate the fear is the beginning of the wisdom.”
Bertrand Russel 
**************************************************************************************************

O conte�do desse e-mail ou de seus anexos s�o confidenciais e restritos ao 
destinat�rio da mensagem.
Se voc� recebeu esse e-mail por engano, por favor notifique o remetente 
imediatamente e n�o fa�a c�pias ou distribua seu conte�do para ningu�m.

**************************************************************************************************

The contents of this email and any attachments are confidential.
They are intended for the named recipient(s) only.
If you have received this email in error please notify the system manager or  the 
sender immediately and do not disclose the contents to anyone or make copies.

**************************************************************************************************

Re: Parse a String

Posted by le...@gmx.de.
hi allann,
you have to use MemBufInputSource. Thats the ways it is working in my case.
so just try it and inform me about your success.

buffer = new MemBufInputSource((const XMLByte*)xmlstr, (unsigned int) 
strlen(xmlstr),"XMLBuffer");      
parser->parse(*buffer);

martin

On Tuesday 28 December 2004 20:13, allannoliveira@genius.org.br wrote:
> Hi, how I could parse a string in memory in Xerces-C? I want to parse a
> string (const char*) returned from a function that is in XML format. In
> documentation I only found the parse() function that receives a file name
> as parameter.
>
>
> Thank you
>
>
>
>
> _______________________________
> Allann J. O. Silva
> Genius Instituto de Tecnologia
> ajoliveira[at]genius.org.br
> Tel.:+55 (92) 614-6586
> www.genius.org.br
> _______________________________
> “Dominate the fear is the beginning of the wisdom.”
> Bertrand Russel
> ***************************************************************************
>***********************
>
> O conte�do desse e-mail ou de seus anexos s�o confidenciais e restritos
> ao destinat�rio da mensagem.
> Se voc� recebeu esse e-mail por engano, por favor notifique o remetente
> imediatamente e n�o fa�a c�pias ou distribua seu conte�do para
> ningu�m.
>
> ***************************************************************************
>***********************
>
> The contents of this email and any attachments are confidential.
> They are intended for the named recipient(s) only.
> If you have received this email in error please notify the system manager
> or  the sender immediately and do not disclose the contents to anyone or
> make copies.
>
> ***************************************************************************
>***********************

---------------------------------------------------------------------
To unsubscribe, e-mail: xerces-c-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-c-dev-help@xml.apache.org