473,396 Members | 2,087 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Resolving character references with C++ Arabica-MSXML

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
Jul 20 '05 #1
1 1376


Olav wrote:
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.

--

Martin Honnen
http://JavaScript.FAQTs.com/

Jul 20 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
by: Dean A. Hoover | last post by:
I am writing a parser for xml that will not have an associated DTD. I want to be able to handle certain character references (e.g., &copy;) in the program. When I run the following against a...
3
by: Olav | last post by:
I need to do some cross-platform XML in C++. Previously I have used Xerces, but some Googeling indicated that many people prefer libxml. Also it is UTF-8, which is easier for us (Xerces is...
0
by: Olav | last post by:
Resolving character references with C++/Arabica I have an element that looks like this: <PhoneNumber>&lt;NUMBER&gt;</PhoneNumber> I would like to have the content returned as "<NUMBER>". Not...
0
by: Jan van Mansum | last post by:
Hello group, I have the following problem. I am trying to write an XSLT source code formatter as an exercise. My problem is that the parser (Xalan in my case) expands the character references...
1
by: Headless | last post by:
Are character references allowed in generated content, in other words should they be parsed by a UA? (Opera does, Moz doesn't) Headless
27
by: Ken Human | last post by:
I want to generate every possible 16 character combination of the characters 0-9, A-Z, and a-z programatically. My current code follows: #include <stdio.h> #include <ctype.h> int main() {...
1
by: Steve W | last post by:
I hope this makes sense ! We have an VB ASP.NET Web Application. In the bin directory are all our compiled dlls. We have written some integration with a 3rd party, which some of our clients...
0
by: PJ6 | last post by:
DotNet has always had quirky problems with debugging DLL's when running inside of other projects - sometimes, mysteriously, you get unhittable breakpoints (question marks), or break points that get...
7
by: Trac Bannon | last post by:
When I load XML from a file into a dotNet XMLDataDocument, the UTF-8 codes are resolved but the 5 special XML entities are not. How can I force those 5 special character types to be translated?
3
by: John Kotuby | last post by:
I have just upgraded to a new development machine that came with Vista ultimate. I am developing a website with VS2005 and VB. My image and css references in my source code are all relative. For...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.