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 Karine Roseleur <ka...@santnet.com> on 2003/10/02 12:57:11 UTC
Problem to parse documents with acentual characters : I can't read some node ...
Hello,
I have some problems to read a part of a document...
I develop in C++ with Xerces and Xalan.
I present to a DOMBuilder Implementation a encoding document ( ISO8859-1)
and I want to read a node ( getNodeValue) after the document is transformed
to a DOMDocument.
The result is null because in the node, there are accentual characters.
So I want to parse the document without to transform the encoding characters
( when I parse the document the accentual characters are transformed to
readable characters) in order to can read a node with accentual characters.
I don't know what i can do for read my node correctly.
The properties of my DomBuilder are not good ???
There is an other solution to read a document with accentual characters.
Thanks for help.
Karine ROSELEUR
******************
SANTNET
karine.roseleur@santnet.com
03.20.42.28.88
---------------------------------------------------------------------
To unsubscribe, e-mail: xerces-c-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-c-dev-help@xml.apache.org
Re: Problem to parse documents with acentual characters : I can't
read some node ...
Posted by Gareth Reakes <ga...@decisionsoft.com>.
Hi,
are you sure this is the problem? Many node types return null for
getNodeValue. Take a look at the docs.
http://tugela/xerces-c-docs/2.2/apiDocs/classDOMNode.html#_details
Gareth
On Thu, 2 Oct 2003, Karine Roseleur wrote:
>
> Hello,
>
> I have some problems to read a part of a document...
> I develop in C++ with Xerces and Xalan.
>
> I present to a DOMBuilder Implementation a encoding document ( ISO8859-1)
> and I want to read a node ( getNodeValue) after the document is transformed
> to a DOMDocument.
> The result is null because in the node, there are accentual characters.
>
> So I want to parse the document without to transform the encoding characters
> ( when I parse the document the accentual characters are transformed to
> readable characters) in order to can read a node with accentual characters.
>
> I don't know what i can do for read my node correctly.
>
> The properties of my DomBuilder are not good ???
> There is an other solution to read a document with accentual characters.
>
> Thanks for help.
> Karine ROSELEUR
> ******************
> SANTNET
> karine.roseleur@santnet.com
> 03.20.42.28.88
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: xerces-c-dev-unsubscribe@xml.apache.org
> For additional commands, e-mail: xerces-c-dev-help@xml.apache.org
>
>
>
--
Gareth Reakes, Head of Product Development +44-1865-203192
DecisionSoft Limited http://www.decisionsoft.com
XML Development and Services
---------------------------------------------------------------------
To unsubscribe, e-mail: xerces-c-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-c-dev-help@xml.apache.org