Re: Internationalization and msxml

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance

From: Developer (wanderer_at_mapinfo.nope.com)
Date: 08/03/04


Date: Tue, 3 Aug 2004 08:58:27 -0400

I was just told by one of our developers that the Java XML parsers don't
read the file, either.

"Developer" <wanderer@mapinfo.nope.com> wrote in message
news:%23y35VjVeEHA.3792@TK2MSFTNGP09.phx.gbl...
> Hello, Kevin,
>
> The client is running on Japanese Windows, connecting to a Japanese
server.
> Via HTTP, we prefer to use POST, but some servers only work with GET. In
> either case, we write the returned stream to a file.
> The header on the returned xml says it is UTF-8.
> We create a SaxReader, give it a content handler and an error handler, and
> call ISAXXMLReader->parseURL(filename). I can watch the startElement()
and
> endElement() methods as the file is read until the
> ISAXErrorHandler::fatalError() method is called with the error message "A
> name contained an invalid character".
>
> Internet Explorer displays the file correctly as a mix of English and
> single- and multi-byte Japanese characters. However, Mozilla FireFox and
> Opera 7.x browsers both indicate a problem with the xml -- "not well
> formed".
>
> The XmlDocument in my test app gives the error:
> Exception: System.Xml.XmlException: The '?' character, hexadecimal value
> 0xFF7A,
> cannot be included in a name. Line 15, position 15.
>
> As for the code that parses the file, it is a simple implementation of the
> ISAXXMLReader interface. In the startElement(), characters(), and
> endElement() methods the code simply writes the localName or characters to
> the console.
>
> Let me know what other information you need. I would be glad to send you
> the sample project(s), as well as the troublesome XML.
>
> Thanks for your help.
>
> "Kevin Yu [MSFT]" <v-kevy@online.microsoft.com> wrote in message
> news:NqQ4IuReEHA.1928@cpmsftngxa10.phx.gbl...
> > Hi Developer,
> >
> > First of all, I would like to confirm my understanding of your issue.
From
> > your description, I understand that you are having trouble parsing an
Xml
> > document both with SAX and XmlDocument. If there is any
misunderstanding,
> > please feel free to let me know.
> >
> > Based on my research, this might be an encoding issue. Could you please
> let
> > me know, how the Xml was gained and how it was parsed? Because we need
to
> > know the format that Xml is saved in. Have you tried to open it in IE?
If
> > yes, can you see the encoding mode of that file? If it can be opened by
IE
> > successfully, could you show me the code that you're using to parse the
> > file in .NET?
> >
> > If anything is unclear, please feel free to reply to the post.
> >
> > Kevin Yu
> > =======
> > "This posting is provided "AS IS" with no warranties, and confers no
> > rights."
> >
>
>



Relevant Pages

  • Stylus Studio and Raining Data Partner to Simplify XML Data Services
    ... Stylus Studio 6 XML Enterprise Edition Now Integrates with TigerLogic ... data integration, and Raining Data Corporation ... "Stylus Studio users are software architects and developers that need ...
    (comp.text.xml)
  • Re: Faster XML Processing...
    ... Why try to load it into the original at ... the XML DOM recommended by the ... the developers workflow with continuity as they solve this problem? ... it's still a good case for motivating the evolution of the object model, ...
    (microsoft.public.dotnet.languages.csharp)
  • =?iso-8859-1?q?[announce]_ZapThink:_Using_Stylus_Studio=AE_to_Deploy_XML_Data_Services?=
    ... Report by Leading XML, Web Services, and Service Orientation Industry ... integrated Java Code Generator that allows developers to ... Stylus Studio made in the new ZapThink analyst report: ...
    (comp.text.xml)
  • Re: Parsing large amounts of data (200,000 entries) with XML?
    ... as is XML. ... object model to use the parser, but learning an object model is quite ... common amongst Visual Basic developers. ... We offer training sessions at work for new technologies as we accept ...
    (microsoft.public.vb.general.discussion)
  • Re: Special Characters not resolving
    ... starting data at the origin in an ORacle database is 2000 characters. ... When the XML isdelivered to me on disk and I load an ... Obviously I need to find either a way to have the XML file provider strip ...
    (microsoft.public.dotnet.xml)