Resolving character references with C++ Arabica-MSXML

Olav

Usenet Archive
Joined
Jul 31, 2003
Messages
14
Reaction score
0
I have an element that looks like this:

<PhoneNumber>&lt;NUMBER&gt;</PhoneNumber>

I would like to have the content returned as "<NUMBER>".

Not only don't I get the character references resolved, but also what is only one Text-node child of the element-node becomes several nodes (When I have character references)

When googeling I see posts describing the opposite problem... Is it a question about parser-options.

On the DOM-side, this is C++ with Arabica wrapping MSXML, it doesn't seem to have the "GetData", of the Java oriented DOM, Xerces seems to have something like GetTextValue which I don't seem to have. ...IS it just a feature missing in Arabica, or should I do it some other way?

Can I solve it by diving down to MSXML?

Thanks

Olav

Thanks

Olav
 

Martin Honnen

Usenet Archive
Joined
Apr 8, 2000
Messages
6,174
Reaction score
0
Olav said:
I have an element that looks like this:

<PhoneNumber>&lt;NUMBER&gt;</PhoneNumber>

I would like to have the content returned as "<NUMBER>".

Not only don't I get the character references resolved, but also what is only one Text-node child of the element-node becomes several nodes (When I have character references)

When googeling I see posts describing the opposite problem... Is it a question about parser-options.

On the DOM-side, this is C++ with Arabica wrapping MSXML, it doesn't seem to have the "GetData", of the Java oriented DOM, Xerces seems to have something like GetTextValue which I don't seem to have. ...IS it just a feature missing in Arabica, or should I do it some other way?

Can I solve it by diving down to MSXML?

MSXML has a property named text for element nodes that should give you the text you are looking for.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
548,042
Messages
3,104,223
Members
248,131
Latest member
Tonypshaw1

Latest Threads

Top