MSXML for Java Questions

Julian Reschke reschke at medicaldataservice.de
Mon Sep 13 17:24:56 BST 1999


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.
>
>
> -----Original Message-----
> From: Chris Lovett [mailto:clovett at microsoft.com]
> Sent: Monday, September 13, 1999 4:57 PM
> To: 'Marko Zerdin'; 'Erik James Freed'
> Cc: xml-dev at ic.ac.uk
> Subject: RE: MSXML for Java Questions
>
>
> The encoding attribute should work great in the IE5 version of MSXML.
> Please send me the specific case you had trouble with.  Thanks.
>
> -----Original Message-----
> From: Marko Zerdin [mailto:marko.zerdin at ixtlan-team.si]
> Sent: Monday, September 13, 1999 7:28 AM
> To: 'Erik James Freed'
> Cc: xml-dev at ic.ac.uk
> Subject: RE: MSXML for Java Questions
>
>
> Erik, thank you for your answer. I've been out of town for a few
> days, so I
> wasn't able to respond earlier.
>
> So, what you're saying is that you don't advise me to use IE5 XML parser.
> Well, I've made quite a progress in the meantime. I've stopped
> using old XML
> parser for java and started using COM wrapper for MSXML, that is built in
> IE5. The only problem I had by now was my inability to specify encoding of
> an XML document (which could be quite a problem, because I live
> in Slovenia
> and we don't use ASCII or ISO Latin1). I've decided to postpone a
> problem to
> some better time.
>
> What are the bugs you were talking about (besides encoding, which
> generates
> error for no reason known to me)? I've kept XML quite simple and
> it's worked
> quite well by now.
>
> What solution would you recommend? The advantage of using IE5 built-in is
> huge. The system we're developing is going to a large distributed system
> that will work in IE5 (client's specification). The application
> will run in
> applets on client machines, so minimizing the transfer is on the top of
> priority list.
>
> Do you know of any XML parser for java, that is really small and
> works well?
> If so, I'd be happy to know about it, too.
>
> Thanks again,
>
> 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)
>
>


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