Hi,
I dont have your XML any more but I would suspect that you are
trying to getFirstChild on a node that does not have a first child (ie a
text node).
Gareth
On Wed, 19 Mar 2003, Andreas B. Thun wrote:
> Thx Gareth,
>
> tried, but it still does not work for me:
>
>
> // <AccessControlGroup> (0..*)
> for (AccessControlGroup = AccessControlGroups->getFirstChild();
> AccessControlGroup != 0;
> AccessControlGroup = AccessControlGroup->getNextSibling())
> {
> nodeName = AccessControlGroup->getNodeName();
> chNodeName = XMLString::transcode (nodeName);
> std::cout << " " << chNodeName << std::endl;
> delete [] chNodeName;
>
>
> // does not work
> nodeValue = AccessControlGroup->getNodeValue();
>
> // core dump
> // nodeValue = AccessControlGroup->getFirstChild()->getNodeValue();
>
>
> chNodeValue = XMLString::transcode (nodeValue);
> std::cout << " val: " << chNodeValue << std::endl;
> delete [] chNodeValue;
>
> }
>
>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
--
Gareth Reakes, Head of Product Development +44-1865-203192
DecisionSoft Limited http://www.decisionsoft.com
XML Development and Services
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]