[XML-DEV Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

RE: MSXML for Java Questions

  • From: "Julian Reschke" <reschke@m...>
  • To: "Marko Zerdin" <marko.zerdin@i...>,"'Chris Lovett'" <clovett@m...>
  • Date: Mon, 13 Sep 1999 17:44:55 +0200

msxml java
I don't know how Java behaves, but as a COM object MSXML expects a UNICODE
string (when you use loadXML to pass the XML document as string). Unicode
(UTF-16) is different from what you are specifiying (ISO-8859-2), and thus
MSXML complains.

Hope this helps...

--
Julian F. Reschke (mailto:reschke@m...)
MedicalData Service GmbH Münster, Germany

> -----Original Message-----
> From: owner-xml-dev@i... [mailto:owner-xml-dev@i...]On
> Behalf Of Marko Zerdin
> Sent: Monday, September 13, 1999 5:35 PM
> To: 'reschke@m...'; Marko Zerdin; 'Chris Lovett'
> Cc: xml-dev@i...
> Subject: RE: MSXML for Java Questions
>
>
> String in Java is Unicode, isn't it?
>
> If I remove enocoding from the XML head then everything works great. I'd
> really appreciate if you gave me a bit more detailed
> instructions, because I
> don't quite understand what you're saying.
>
> Thanks,
>
> Marko.
>
> -----Original Message-----
> From: Julian Reschke [mailto:reschke@m...]
> Sent: Monday, September 13, 1999 5:28 PM
> To: Marko Zerdin; 'Chris Lovett'
> Cc: xml-dev@i...
> Subject: RE: MSXML for Java Questions
>
>
> loadXML only accepts Unicode. Either load the document using "load" from a
> file or a URL, or construct it in-memory in Unicode.
>
> --
> Julian F. Reschke (mailto:reschke@m...)
> MedicalData Service GmbH Münster, Germany
>
> > -----Original Message-----
> > From: owner-xml-dev@i... [mailto:owner-xml-dev@i...]On
> > Behalf Of Marko Zerdin
> > Sent: Monday, September 13, 1999 5:17 PM
> > To: 'Chris Lovett'
> > Cc: 'xml-dev@i...'
> > Subject: RE: MSXML for Java Questions
> >
> >
> > OK. Here is XML that I sent in my first mail at the beginning of
> > the thread:
> >
> > <?xml version="1.0" encoding="ISO-8859-2"?>
> > <Document>
> >    <Structures>
> >       <BankAccountInfo>
> >          <BankNumberCode>value</BankNumberCode>
> >          <BankAccountTypeID>value</BankAccountTypeID>
> >          <BankAccountPart1>value</BankAccountPart1>
> >          <BankAccountPart2>value</BankAccountPart2>
> >          <BankAccountPart3>value</BankAccountPart3>
> >       </BankAccountInfo>
> >    </Structures>
> >    <Messages>
> >       <Transactions>
> >          <t_Transaction>
> >             <CashAccount>
> >                <BankAccountInfo>
> >                   <BankNumberCode>value</BankNumberCode>
> >                   <BankAccountTypeID>value</BankAccountTypeID>
> >                   <BankAccountPart1>value</BankAccountPart1>
> >                   <BankAccountPart2>value</BankAccountPart2>
> >                   <BankAccountPart3>value</BankAccountPart3>
> >                </BankAccountInfo>
> >             </CashAccount>
> >          </t_Transaction>
> >       </Transactions>
> >    </Messages>
> > </Document>
> >
> > When I pass this as an argument into the method
> > DOMDocument.loadXML(String),
> > I get following error:
> > line 1, column 44: Switch from current encoding to specified
> encoding not
> > supported.
> >
> > That's it. This is actually the only problem I had with this parser. I
> > didn't really work with some very complicated XML, and I didn't
> even touch
> > XSL yet, so I don't know what's waiting for me in the future. If anybody
> > knows for other "features" of IE5 parser, I would appreciate any
> > information.
> >
> > Wish you all the best,
> >
> > Marko.
> >
> >
>
> xml-dev: A list for W3C XML Developers. To post, mailto:xml-dev@i...
> Archived as: http://www.lists.ic.ac.uk/hypermail/xml-dev/ and on
> CD-ROM/ISBN 981-02-3594-1
> To (un)subscribe, mailto:majordomo@i... the following message;
> (un)subscribe xml-dev
> To subscribe to the digests, mailto:majordomo@i... the
> following message;
> subscribe xml-dev-digest
> List coordinator, Henry Rzepa (mailto:rzepa@i...)
>
>


xml-dev: A list for W3C XML Developers. To post, mailto:xml-dev@i...
Archived as: http://www.lists.ic.ac.uk/hypermail/xml-dev/ and on CD-ROM/ISBN 981-02-3594-1
To (un)subscribe, mailto:majordomo@i... the following message;
(un)subscribe xml-dev
To subscribe to the digests, mailto:majordomo@i... the following message;
subscribe xml-dev-digest
List coordinator, Henry Rzepa (mailto:rzepa@i...)



PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
 

Stylus Studio has published XML-DEV in RSS and ATOM formats, enabling users to easily subcribe to the list from their preferred news reader application.


Stylus Studio Sponsored Links are added links designed to provide related and additional information to the visitors of this website. they were not included by the author in the initial post. To view the content without the Sponsor Links please click here.

Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.