Hi Andre,

At 15.32 14/06/2004 +0200, Andre Stock wrote:
It`s me again!
Can anyone explain to me what the parameters in DefaultHandler::startElement
are for?

virtual void startElement ( const XMLCh* const uri, const XMLCh* const localname, const XMLCh* const qname , const Attributes& attrs );

uri is the namespace URI
localname is the name of the element, without the prefix
qname is the element name in the form prefix:localname
attrs contains the list of attributes that the element has

Do i need all of them?I mean, when an event occured that an element
was found, how can i get the elementname and the corresponding value to that
element?

the element name is either qname or localname, depending on what you are looking for. As for the "corresponding value" I guess you refer to the text between the start and the end tag; in this case, you need to trap the following call to the DefaulHandler::characters API.


Please help me, i`m desperate! I`m sure its pretty easy to solve, but i`m
stuck right now!

Have a look at the SAXPrint sample

Alberto


> Oh, thank you for the clue! Now it seems to work...can you tell me what
> the
> task of PlatFormUtils is? Hope there are no other methods to call or
> classes
> to initialize from which i haven`t heard so far? ;-)
> But thank you anyway!
>
> Andre
>
> > Did you call XMLPlatformUtils::Initialize?
> >
> > Alberto
> >
> > At 12.54 14/06/2004 +0200, Andre Stock wrote:
> > >Hi,
> > >i wrote a quite simple SAXparser with Visual Studio .NET. The compile
> > >procedure finished without errors, but when i tried to execute the
> > >application an error occured saying:
> > >
> > >Assertion failed!
> > >Program: ....
> > >File: \xerces-c-src_2_5_0\src\xercesc\util\XMemory.cpp
> > >Line: 102
> > >Expression: manager !=0
> > >
> > >When i look at the corresponding file (XMemory.cpp) at Line 102, it is
> > part
> > >of a method:
> > >
> > >void* XMemory::operator new(size_t size, MemoryManager* manager)
> > >{
> > >     assert(manager != 0);      //LINE 102
> > >
> > >         size_t headerSize =
> > > XMLPlatformUtils::alignPointerForNewBlockAllocation(
> > >
> > >sizeof(MemoryManager*));
> > >     void* const block = manager->allocate(headerSize + size);
> > >     *(MemoryManager**)block = manager;
> > >
> > >     return (char*)block + headerSize;
> > >}
> > >I have no experience in working with assertions in c++. Can anyone tell
> > what
> > >this method is necessary for and how my problem can be solved?
> > >Thanks in advance!
> > >
> > >Andre
> > >
> > >--
> > >+++ Jetzt WLAN-Router f�r alle DSL-Einsteiger und Wechsler +++
> > >GMX DSL-Powertarife zudem 3 Monate gratis* http://www.gmx.net/dsl
> > >
> > >
> > >---------------------------------------------------------------------
> > >To unsubscribe, e-mail: [EMAIL PROTECTED]
> > >For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
>
> --
> "Sie haben neue Mails!" - Die GMX Toolbar informiert Sie beim Surfen!
> Jetzt aktivieren unter http://www.gmx.net/info
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>

--
"Sie haben neue Mails!" - Die GMX Toolbar informiert Sie beim Surfen!
Jetzt aktivieren unter http://www.gmx.net/info


--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]



--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to