473,395 Members | 1,458 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,395 software developers and data experts.

how to manage an indented file with dom.

I try to parse an indented xml file with dom xerces c++.
the file is like that :
<root>
<child1>
<field1> blabla </field1>
<field2> blibli </field2>
</child1>
<child2>
<field1> blabla </field1>
<field2> blibli </field2>
</child2>
</root>

where return an white spaces ar in the xml file. So the program I writed with dom
give me this tree
root has five childs :
text-node child1 text-node child2 text-node

the text of the first text-node is "\n "
the text of the second text-node is "\n "
the text of the third text-node is "\n"

this space fact occurs at each step in the tree hierarchy.
My questions are : is it possible to strip these node automatically ?
Are text-node, which are a mixed soap of text and nodes, part of the standard xml ?

Thanks
Jul 20 '05 #1
1 1273
the problem doesn't occure with the qt parser so I think it is possible
with xerces but how ?

Jul 20 '05 #2

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

Similar topics

0
by: Dilantha Seneviratne | last post by:
Hi Could someone advice me on how I could convert an indented text file into a xml file. Any help is greatly appreciated. thanx example indented text file looks like the following ...
5
by: beliavsky | last post by:
How do you keep Python code properly indented as you modify it? I use an Emacs-type editor that has a Python mode, so the initial indenting is easy. If I later want to put a 'for' loop (or an 'if'...
3
by: Spartanicus | last post by:
How to get help from this group, and how to construct a minimised test case: http://www.spartanicus.utvinternet.ie/help_us_help_you.htm -- Spartanicus
0
by: Earl Teigrob | last post by:
I am currently using native .net XML classes for managing my little key/value data storage requirements and they work great. I have created a simple class to abstract the XML and manage my...
1
by: Osvaldo Bisignano | last post by:
Hi guys, I wonder if there's any namespace or class within the framework that allows me to create a new c# project by code, manage its references, and build it from another C# application. I'm not...
3
by: Laguna | last post by:
Hi, I have an XML file in a single long string. How can I convert it into the nicely indented format as displayed by Internet Explorer using Python? Thanks, Laguna Input XML file (one...
16
by: Marcos de Lima Carlos | last post by:
Hi all, I have a VB aplicantion in many places. I need to manage databases over files on pen drive. What's the database i using to manage this program? My conditions is this: i have most...
4
by: Dariusz Tomoń | last post by:
Hello, How can I manage files from ASP.NET C# 2.0? I mean I would like to save/erase files, find files in a folder and programatically check if the file with the specific name exists in a...
3
by: salmobytes | last post by:
I'm shopping around for php based forum/bulletin board software. PhpBB is (obviously) popular. But I don't like the linear way its topic threads are presented. In the old days, the earliest...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
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
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.