473,396 Members | 2,036 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.

Preserving the structure of the input XML file

Colleagues:

Does anyone know if there are less-lossy XML parsers and serializers
that can capture and reproduce the structure of the input XML file
including tabulation,whitespace, etc. ? We would love to know about
experiences with parse/serialization approaches that have a greater
infoset than that provided by SAX and DOM, especially related to
ignorable whitespace and attributes ordering/whitespace. We are editing
XML and want to preserve the file as much as possible.

Kind regards,
Oleg Dulin
Opence, Inc.

Jul 20 '05 #1
1 1437
this makes a change, most people want to do exactly the opposite and think
that parsers preserve too much whitespace

I would have thought that as long as you set the "ignore whitespace" flag
off, sax and DOM would give you all the whitespace in the file - that has
been my experience (unless you're using MSXML which seems to swallow much
more whitespace than other parsers)
"Oleg Dulin" <oleg.dulin@opence_dot_net.net> wrote in message
news:oP******************@twister.nyc.rr.com...
Colleagues:

Does anyone know if there are less-lossy XML parsers and serializers
that can capture and reproduce the structure of the input XML file
including tabulation,whitespace, etc. ? We would love to know about
experiences with parse/serialization approaches that have a greater
infoset than that provided by SAX and DOM, especially related to
ignorable whitespace and attributes ordering/whitespace. We are editing
XML and want to preserve the file as much as possible.

Kind regards,
Oleg Dulin
Opence, Inc.

Jul 20 '05 #2

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

Similar topics

2
by: yee young han | last post by:
I need a fast data structure and algorithm like below condition. (1) this data structure contain only 10,000 data entry. (2) data structure's one entry is like below typedef struct _DataEntry_...
0
by: Mike | last post by:
Hi, I am consuming a web service in my asp.net application. I added the web references in Visual Studio by pointing to a wsdl file. Visual Studio automatically creates the Reference.cs file and...
5
by: Vasilis Serghi | last post by:
Hi all, I am fairly new to C programming and I have come to a stand still. I am trying to create a program that will accept a user input and give the user an output depending on the contents of a...
16
by: TTroy | last post by:
Hello, I'm relatively new to C and have gone through more than 4 books on it. None mentioned anything about integral promotion, arithmetic conversion, value preserving and unsigned preserving. ...
6
by: T Koster | last post by:
After a few years of programming C, I had come to believe that I finally knew how to correctly organise my structure definitions in header files for mutually dependent structures, but I find myself...
4
by: adamrobillard | last post by:
Hi, I have always used fopen and FILE* to load and save structures to file. I am trying to convert all the older code to use proper C++ calls... the following code works properly but I would...
3
by: joshblair | last post by:
Hello, Has anyone ever seen or created such a code generator? I'm looking for a sample of a code generator that will generate code (preferably one that uses C# and the XMLTextWriter) to create...
6
by: laredotornado | last post by:
Hi, A question for those of you who always seem to know the one line way of doing things. I'm using php 4.4.4 and I want to rename the first part of the file to a particular string. For...
3
by: sophia.agnes | last post by:
Dear all, I was going through the book "C a software engineering approach by darnell & Margolis" there was a section named sign preserving vs value preserving it is as follows sign...
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: 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: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
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...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

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.