473,403 Members | 2,359 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,403 software developers and data experts.

How to parse an xml with extended characters?

Hi,

I am working on converting one form of xml to other form using XSLT.

When tried to convert the below xml file using XSLT, "parser error: PCDATA invalid Char value 2" is displayed. Can any one help how to resolve this issue?

[code]
<?xml version="1.0" encoding="UTF-8" ?>
<!-- RSS generated by JIRA 91 at Thu Oct 23 06:52:25 EDT 2008 -->
<rss version="0.92">
<channel>
<title>Sentinel Issue Tracking System</title>
<link>http://bugs.esecurity.net:8090</link>
<description>This file is an XML representation of some issues</description>
<language>en</language>
<item>
<description><![CDATA[
thiseventtgYear2005tgMonth12tgDay23tgHour 06tgMinute29tgSecond53RN30C2CNSRAVA NEC529EI529ET5LSecuritySNSecur ityTaudit failureUNT AUTHORITY\SYSTEMCSLogon/Logoff MLogon FailureXMLogon Failure: Reason: Unknown user name or bad password User Name: 0075 Domain: APPLABS Logon Type: 7 Logon Process: User32 Authentication Package: Negotiate Workstation Name: SRAVAN IS0075APPLABS7User32 NegotiateSRAVAN]]></description>
</item>
</channel>
</rss>

Encoding of the xml is UTF-8 and my xslt also outputs to an xml with an encoding of UTF-8.

Any help in this regard is highly appreciated.

Thanks,
Saritha
Oct 24 '08 #1
1 4343
Dormilich
8,658 Expert Mod 8TB
if your characters are outside the valid range you may consider using XML version 1.1, though even this does not allow all characters
Character Range (version 1.0)
[2] Char ::= #x9 | #xA | #xD | [#x20-#xD7FF] | [#xE000-#xFFFD] | [#x10000-#x10FFFF]
/* any Unicode character, excluding the surrogate blocks, FFFE, and FFFF. */
Character Range (version 1.1)
[2] Char ::= [#x1-#xD7FF] | [#xE000-#xFFFD] | [#x10000-#x10FFFF]
/* any Unicode character, excluding the surrogate blocks, FFFE, and FFFF. */
note: of course the surrounding programs have to support xml 1.1 too.

regards
Oct 24 '08 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

6
by: barthome1 | last post by:
Hello, My company collects data from non-US sources. We are starting projects where this data will be output in an XML document and passed around to our applications and third party tools. ...
1
by: | last post by:
Hey all, Quick question...been bugging me for some time, really. I have a console app, it does some things, and I want to save an array of text to a text file. The text consists of ASCII and...
13
by: bgbauer70 | last post by:
My appologies if this ends up being a duplicate post. For some reason the first post never showed up. I've tried about 300 iterrations of this same ability, and none of them seem to work in...
4
by: wob | last post by:
Many thanks for those who responded to my question of "putting greek char into C string". In searching for an solution, I noticed that there are more than one version of "Extended ASCII...
1
by: Wayne M J | last post by:
One of the text files that I am do some processing of has extended characters (ö etc), but so far every time one of those characters are encountered, it is removed. How do I keep then from being...
3
by: JSM | last post by:
Hi, I am just trying to port an existing simple encryption routine to C#. this routine simply adds/substracts 10 ascii characters to each character in a text file (except quotes). The routine...
25
by: electrixnow | last post by:
in MS VC++ Express I need to know how to get from one comma delimited text string to many strings. from this: main_string = "onE,Two,Three , fouR,five, six " to these: string1 =...
4
by: =?Utf-8?B?Um9zaGFuIFIuRA==?= | last post by:
Hi All, I am new to C# programming; I am developing an application for recording audio data using voice modem. I am using HyperTerminal to manually process audio data. The modem when configured...
1
by: s123 | last post by:
Hi, while invoking a web service, if in xml request message i wrap the extended ASCII characters with CDATA it is not returning the desired result, while this is not the case if i do not wrap...
13
by: ramif | last post by:
Is there a way to print extended ASCII in C?? I tried to code something, but it only displays strange symbols. here is my code: main() { char chr = 177; //stores the extended ASCII...
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
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
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.