SiteExperts.com Logo Home | Community | Developer's Paradise
User Groups | Site Tools | Site Information | Search
 Main Menu
 Forums
SiteExperts.com Forums
All Discussions

SiteExperts Feedback
The Lounge
Dynamic HTML
Site Design/ Critiques
HTML and CSS
XML Technologies
The Wireless Internet
Internet Explorer
Microsoft .NET
The Server
Technical Support

Sponsored Links

User Groups : Forums : SiteExperts : XML Technologies :

Previous DiscussionNext Discussion
 Removing Hexadecimal Character from XML File

Hello All,
 
    I got one problem in Parsing XML File.   
   
    In our application we are reading an XML File for input using XMLText reader in C#.
 
    Now in that XML file there is an Hexadecimal character  and its giving following error while reader.Read() method.
 
    'The File is not a proper xml file parse error is '', hexadecimal value 0x07
 
    Its an urgent issue can anyonoe suggest a way to remove this character before parsing or using some character set so as to read it or eliminate it.
 
    Currently we for testing just removed that character using StreamReader but thats also a memory consuming approach as file size can be large also.
 
    It would be great if you can help me out in this as soon as possible
 
    Regards
   
    Kunal Shah
   
    9342265409

Started By kunalshah on Feb 1, 2006 at 9:48:34 PM

9 Response(s) | Reply

Earlier Replies | Replies 2 to 2 of 9 | Later Replies
Goto Page: 2 1
MHenke on Feb 2, 2006 at 2:20:34 AM (# 2)

> I got one problem in Parsing XML File.
Nope. You've problems trying to parse a non-XML document with an XML processor... 8|

The character code point 0x07 isn't valid in XML, in whatever character encoding.

From  http://www.w3.org/TR/REC-xml/#charsets:

Character Range

[2]    Char    ::=    #x9 | #xA | #xD | [#x20-#xD7FF] | [#xE000-#xFFFD] | [#x10000-#x10FFFF]

Every standard compliant XML processor will immedeately stop and throw a fatal error.
So I think you've to do some kind of pre-processing to remove that character.


Earlier Replies | Replies 2 to 2 of 9 | Later Replies
Goto Page: 2 1

To respond to a discussion, you must first logon.

If you are not registered, please register yourself to become a member of the SiteExperts.community.

User Name
Password
Copyright 1997-2004 InsideDHTML.com, LLC. All rights reserved.