MSXML for Java Questions

Marko Zerdin marko.zerdin at ixtlan-team.si
Mon Sep 13 17:31:52 BST 1999


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 at medicaldataservice.de]
Sent: Monday, September 13, 1999 5:28 PM
To: Marko Zerdin; 'Chris Lovett'
Cc: xml-dev at ic.ac.uk
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 at medicaldataservice.de)
MedicalData Service GmbH Münster, Germany

> -----Original Message-----
> From: owner-xml-dev at ic.ac.uk [mailto:owner-xml-dev at ic.ac.uk]On
> Behalf Of Marko Zerdin
> Sent: Monday, September 13, 1999 5:17 PM
> To: 'Chris Lovett'
> Cc: 'xml-dev at ic.ac.uk'
> 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 at ic.ac.uk
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 at ic.ac.uk the following message;
(un)subscribe xml-dev
To subscribe to the digests, mailto:majordomo at ic.ac.uk the following message;
subscribe xml-dev-digest
List coordinator, Henry Rzepa (mailto:rzepa at ic.ac.uk)





More information about the Xml-dev mailing list