My \r characters disappears

2001-05-04 Thread Jonas Utterström
Hi, I create an XML document using Xerces DOM API. Then I write it to disk using the DOMSerializer someone posted on this list. Some of my element data contains DOS style newlines (\r\n). Using the serializer works and the resulting textfile still keeps the DOS newlines intact. But when I lat

Encoding question

2001-05-04 Thread Wuebben, Anthony E. (LNG)
Sorry if this is a repost, but I can't get to the archive mail list. I am using XERCES 1.4 on Solaris 7. I can read and validate documents when the xml declaration is: and the file is in ascii. My problem is now I am try to process ebcdic files with the xml declaration set to:

RE: My \r characters disappears

2001-05-04 Thread Dean Roddey
This is according to the XML specification. All combinations of newline are reduced to the 0x0A representation, for consistency across platforms. If you want them to come out in some other form, you'll have to translate them as they go out. This is something that probably a serializer should have

RE: Encoding question

2001-05-04 Thread Dean Roddey
An error at the end of the XMLDecl usually means that your transcoding service recognized the encoding, however, it does not think that your document is really in that encoding. I know that there is a good bit of looseness about how the EBCDIC encoding names are used, so you need to make sure that

Xerces alias names for the various encodings?

2001-05-04 Thread Mark A Russell
Anyone know what the alias' are that xerces uses for the following? UTF16 UTF8 (This one actually works) UCS4 UCS Any other utf/ucs I'm not aware of? At the moment I can't get a transcoder for any of the above types except the UTF8

Re: Xerces alias names for the various encodings?

2001-05-04 Thread Andy Heninger
see http://xml.apache.org/xerces-c/faq-parse.html#faq-17 UCS4 should have worked. UTF-16 wants a dash. Andy Heninger IBM, Cupertino, CA [EMAIL PROTECTED] - Original Message - From: "Mark A Russell" <[EMAIL PROTECTED]> To: "Xerces C++ Mailing List" <[EMAIL PROTECTED]> Sent: Friday, May

RE: Xerces alias names for the various encodings?

2001-05-04 Thread jeetu . gulati
I think XMLUni.hpp is the file to look at for the definitions. > -Original Message- > From: Mark A Russell [mailto:[EMAIL PROTECTED]] > Sent: Friday, May 04, 2001 1:54 PM > To: Xerces C++ Mailing List > Subject: Xerces alias names for the various encodings? > > > Anyone know what the a

Problem with transcoding...

2001-05-04 Thread greynolds
I'm having a problem using the XMLString::transcode function. I'm writing an ActiveX control which runs under Win95, Win98, WinNT, and Win2K that receives XML from a UNIX system. Further, the control has to work on US, Japanese, and Korean versions of the OS. The XML can contain plain old ASCII

Re: Xerces alias names for the various encodings?

2001-05-04 Thread David_N_Bertoni
You can look in the file util/XMLUni.cpp for all of the variations that are supported. It looks like "UTF8" is recognized, but "UTF16" is not. It could be deliberate, or just an oversight. I always use the "-" versions: UTF-8 UTF-16 I've never used UCS-4. You should just get a UTF-16 transc

how to use XMLNetAccessor?

2001-05-04 Thread dave yuill
greetings. this may be a common question, but i apologize, the archives seem to be down... i was wondering if there were any examples of using the XMLNetAccessor interface to make http connections, for receiving dtd files. i have created a class derived from the net accessor class, linked and in

Re: Xerces alias names for the various encodings?

2001-05-04 Thread Dean Roddey
All of those are intrinsic encodings and don't depend on the transcoding service. There are a number of aliases recognized. UTF-8, UTF_8 UTF8, UTF-16, UTF-16LE, UTF-16BE, UCS-4, UCS4-LE, UCS4-BE, among others. -- Dean Roddey The CIDLib C++ Frameworks Charmed Quark Software

Re: how to use XMLNetAccessor?

2001-05-04 Thread Dean Roddey
That should work. What kind of system id are you giving on the primary XML entity and the DTD one? -- Dean Roddey The CIDLib C++ Frameworks Charmed Quark Software [EMAIL PROTECTED] http://www.charmedquark.com "Why put off until tomorrow what you can put off until the day

Re: how to use XMLNetAccessor?

2001-05-04 Thread Curt Arnold
Double check that your DTD system id isn't using backslashes instead of forward slashes. Backslashes are not legal in URL's, but some software will produce (and others accept it) as legal. - To unsubscribe, e-mail: [EMAIL PROTE

Re: how to use XMLNetAccessor?

2001-05-04 Thread dave yuill
thanks, oh if only it did work.. :) i'm not familliar with system id, but i assume its http://www.pcia.com/wireres/protocol/dtd/wctpV1-0.dtd, i'll append the xml i'm trying to parse to see for yourselves... the error message i get: Fatal Error at file "XMLtest", line 2, column 89 Message: An

Re: how to use XMLNetAccessor?

2001-05-04 Thread Dean Roddey
Well, I see two obvious issues... > Fatal Error at file "XMLtest", line 2, column 89 >Message: An exception occured! Type:RuntimeException, Message:Could not > open DTD file './http://www.pcia.com/wireres/protocol/dtd/wctpV1-0.dtd' > It shouldn't have added the ./ to the front of the URL. I'

Re: how to use XMLNetAccessor?

2001-05-04 Thread dave yuill
- Original Message - From: "Dean Roddey" <[EMAIL PROTECTED]> > > Well, I see two obvious issues... > > > Fatal Error at file "XMLtest", line 2, column 89 > >Message: An exception occured! Type:RuntimeException, Message:Could not > > open DTD file './http://www.pcia.com/wireres/protocol