OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

 


 

   Re: bug report: msxml3, loadXML()

[ Lists Home | Date Index | Thread Index ]
  • From: Francis Norton <francis@redrice.com>
  • To: "Simon St.Laurent" <simonstl@simonstl.com>
  • Date: Wed, 27 Sep 2000 16:41:17 +0100



"Simon St.Laurent" wrote:
> 
> At 01:59 PM 9/27/00 +0100, Francis Norton wrote:
> >This caused me some grief. I think it's an absence-of-error-message bug
...
> 
> It should be documented in the method documentation (and hopefully will
> be), but you might also want to take a look at "How to Encode XML Data", a
> piece Chris Lovett wrote for MSDN:
> 
> http://msdn.microsoft.com/xml/articles/xmlencodings.asp
...

Thanks - useful article. I see I may have to find some way of accessing
SAFEARRAYs from server-side JScript - either that or establish that it
is in fact safe to simply knock out the xml declaration before the
loadXML() call!

On the absence-of-error-message point, the article above suggests (but,
I agree, does not *specify*) that this problem might generate a

	Switch from current encoding to specified encoding not supported.

error message. In fact the attached query program generates no error
messages at all, as can be seen -

---
D:\xmlSchema>tableXpath table_0.xml "Francis Norton"
Phone=555-676767.

D:\xmlSchema>tableXpath table.xml "Francis Norton"

D:\xmlSchema>
---

Thanks -

Francis.
-- 
Francis Norton.

why not?
<?xml version="1.0" encoding="UTF-8"?>
<Table>
 <Record>
   <ID>42</ID>
   <Name>Sean McGrath</Name>
   <Phone location="m">555-424242</Phone>
   <EMail>sean@digitome.com</EMail>
   <Address1>Enniscrone</Address1>
   <Address2>County Sligo</Address2>
   <Address3>Ireland</Address3>
 </Record>
 <Record>
   <ID>89</ID>
   <Name><!-- spelling? -->Francis Norton</Name>
   <Phone location="h">555-676767</Phone>
   <EMail>francis@redrice.com</EMail>
   <Address1>Brixton</Address1>
   <Address2>London</Address2>
   <Address3>UK</Address3>
 </Record>
</Table>
<?xml version="1.0"?>
<Table>
 <Record>
   <ID>42</ID>
   <Name>Sean McGrath</Name>
   <Phone location="m">555-424242</Phone>
   <EMail>sean@digitome.com</EMail>
   <Address1>Enniscrone</Address1>
   <Address2>County Sligo</Address2>
   <Address3>Ireland</Address3>
 </Record>
 <Record>
   <ID>89</ID>
   <Name><!-- spelling? -->Francis Norton</Name>
   <Phone location="h">555-676767</Phone>
   <EMail>francis@redrice.com</EMail>
   <Address1>Brixton</Address1>
   <Address2>London</Address2>
   <Address3>UK</Address3>
 </Record>
</Table>

tableXpath.js





 

News | XML in Industry | Calendar | XML Registry
Marketplace | Resources | MyXML.org | Sponsors | Privacy Statement

Copyright 2001 XML.org. This site is hosted by OASIS