F
Fuy
Hi, i have a next problem:
In the method
startElement(const XMLCh* const uri,
const XMLCh *const localname,
const XMLCh *const qname,
const Attributes &attrs
){
string identifier = atts.getValue("id");
}
send next the error:
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////
error C2664: 'const XMLCh *xercesc_2_7::Attributes::getValue(const
unsigned int) const' : cannot convert parameter 1 from 'const char
[12]' to 'const unsigned int'
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////
try this
startElement(const XMLCh* const uri,
const XMLCh *const localname,
const XMLCh *const qname,
const Attributes &attrs
){
for (int i = 0; i < atts.getLength(); i++) {
string value = atts.getValue(i);
}
}
and work,
In the first case why the error?, i see the code´s and no problems
using
string identifier = atts.getValue("id");
Any idea?
ok
ATTE
Fuy
In the method
startElement(const XMLCh* const uri,
const XMLCh *const localname,
const XMLCh *const qname,
const Attributes &attrs
){
string identifier = atts.getValue("id");
}
send next the error:
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////
error C2664: 'const XMLCh *xercesc_2_7::Attributes::getValue(const
unsigned int) const' : cannot convert parameter 1 from 'const char
[12]' to 'const unsigned int'
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////
try this
startElement(const XMLCh* const uri,
const XMLCh *const localname,
const XMLCh *const qname,
const Attributes &attrs
){
for (int i = 0; i < atts.getLength(); i++) {
string value = atts.getValue(i);
}
}
and work,
In the first case why the error?, i see the code´s and no problems
using
string identifier = atts.getValue("id");
Any idea?
ok
ATTE
Fuy