You are viewing a plain text version of this content. The canonical link for it is here.
Posted to c-users@xerces.apache.org by Mohammad Alam <ma...@gmail.com> on 2013/08/20 15:57:12 UTC
Xerces 3.1.1 64 bit Mac OSX failed to parse an xml having & etc
Hi All,
I build xerces 3.1.1 from source code on mac osx as follows
1 ./configure prefix="/usr/lib/xerces" --disable-shared CFLAGS="-arch
x86_64" CXXFLAGS="-arch x86_64" --disable-netaccessor-curl
2 Run make install
This will creates three folders lib, bin and include
I could used libxerces-c.a in my project to parse an xml file.
I get xml file from server.
I found that xercesc_3_1::DOMLSParserImpl::parseURI() gets failed when xml
file contains reserved characters like & lt; etc.
it gives following crash report
0 xercesc_3_1::DTDGrammar::getEntityDecl(unsigned short const*)
1 xercesc_3_1::IGXMLScanner::scanEntityRef(bool, unsigned short&,
unsigned short&, bool&)
2 xercesc_3_1::IGXMLScanner::scanAttValue(xercesc_3_1::XMLAttDef const*,
unsigned short const*, xercesc_3_1::XMLBuffer&)
3 xercesc_3_1::IGXMLScanner::scanStartTag(bool&)
4 xercesc_3_1::IGXMLScanner::scanContent()
5 xercesc_3_1::IGXMLScanner::scanDocument(xercesc_3_1::InputSource const&)
6 xercesc_3_1::XMLScanner::scanDocument(unsigned short const*)
7 xercesc_3_1::XMLScanner::scanDocument(char const*)
8 xercesc_3_1::AbstractDOMParser::parse(char const*)
9 xercesc_3_1::DOMLSParserImpl::parseURI(char const*)
Please help me to fix it
Regards,
Alam
Re: Xerces 3.1.1 64 bit Mac OSX failed to parse an xml having & etc
Posted by Mohammad Alam <ma...@gmail.com>.
I have fixed the above crash issue by building xerces 3.0.1
On Wed, Aug 21, 2013 at 9:18 PM, Alberto Massari
<al...@tiscali.it>wrote:
> Is possible that your C++ compiler didn't turn on exception support?
>
> Alberto
>
> Il 20/08/2013 15:57, Mohammad Alam ha scritto:
>
>> Hi All,
>>
>> I build xerces 3.1.1 from source code on mac osx as follows
>> 1 ./configure prefix="/usr/lib/xerces" --disable-shared CFLAGS="-arch
>> x86_64" CXXFLAGS="-arch x86_64" --disable-netaccessor-curl
>> 2 Run make install
>>
>> This will creates three folders lib, bin and include
>>
>> I could used libxerces-c.a in my project to parse an xml file.
>>
>> I get xml file from server.
>> I found that xercesc_3_1::DOMLSParserImpl::**parseURI() gets failed when
>> xml
>> file contains reserved characters like & lt; etc.
>>
>> it gives following crash report
>> 0 xercesc_3_1::DTDGrammar::**getEntityDecl(unsigned short const*)
>> 1 xercesc_3_1::IGXMLScanner::**scanEntityRef(bool, unsigned short&,
>> unsigned short&, bool&)
>> 2 xercesc_3_1::IGXMLScanner::**scanAttValue(xercesc_3_1::**XMLAttDef
>> const*,
>> unsigned short const*, xercesc_3_1::XMLBuffer&)
>> 3 xercesc_3_1::IGXMLScanner::**scanStartTag(bool&)
>> 4 xercesc_3_1::IGXMLScanner::**scanContent()
>> 5 xercesc_3_1::IGXMLScanner::**scanDocument(xercesc_3_1::**InputSource
>> const&)
>> 6 xercesc_3_1::XMLScanner::**scanDocument(unsigned short const*)
>> 7 xercesc_3_1::XMLScanner::**scanDocument(char const*)
>> 8 xercesc_3_1::**AbstractDOMParser::parse(char const*)
>> 9 xercesc_3_1::DOMLSParserImpl::**parseURI(char const*)
>>
>>
>> Please help me to fix it
>>
>> Regards,
>> Alam
>>
>>
>>
>> -----
>> Nessun virus nel messaggio.
>> Controllato da AVG - www.avg.com
>> Versione: 2013.0.3392 / Database dei virus: 3211/6596 - Data di
>> rilascio: 21/08/2013
>>
>
>
Re: Xerces 3.1.1 64 bit Mac OSX failed to parse an xml having &
etc
Posted by Alberto Massari <al...@tiscali.it>.
Is possible that your C++ compiler didn't turn on exception support?
Alberto
Il 20/08/2013 15:57, Mohammad Alam ha scritto:
> Hi All,
>
> I build xerces 3.1.1 from source code on mac osx as follows
> 1 ./configure prefix="/usr/lib/xerces" --disable-shared CFLAGS="-arch
> x86_64" CXXFLAGS="-arch x86_64" --disable-netaccessor-curl
> 2 Run make install
>
> This will creates three folders lib, bin and include
>
> I could used libxerces-c.a in my project to parse an xml file.
>
> I get xml file from server.
> I found that xercesc_3_1::DOMLSParserImpl::parseURI() gets failed when xml
> file contains reserved characters like & lt; etc.
>
> it gives following crash report
> 0 xercesc_3_1::DTDGrammar::getEntityDecl(unsigned short const*)
> 1 xercesc_3_1::IGXMLScanner::scanEntityRef(bool, unsigned short&,
> unsigned short&, bool&)
> 2 xercesc_3_1::IGXMLScanner::scanAttValue(xercesc_3_1::XMLAttDef const*,
> unsigned short const*, xercesc_3_1::XMLBuffer&)
> 3 xercesc_3_1::IGXMLScanner::scanStartTag(bool&)
> 4 xercesc_3_1::IGXMLScanner::scanContent()
> 5 xercesc_3_1::IGXMLScanner::scanDocument(xercesc_3_1::InputSource const&)
> 6 xercesc_3_1::XMLScanner::scanDocument(unsigned short const*)
> 7 xercesc_3_1::XMLScanner::scanDocument(char const*)
> 8 xercesc_3_1::AbstractDOMParser::parse(char const*)
> 9 xercesc_3_1::DOMLSParserImpl::parseURI(char const*)
>
>
> Please help me to fix it
>
> Regards,
> Alam
>
>
>
> -----
> Nessun virus nel messaggio.
> Controllato da AVG - www.avg.com
> Versione: 2013.0.3392 / Database dei virus: 3211/6596 - Data di rilascio: 21/08/2013