Home. 
.

transparent

transparent

transparent

Altova Mailing List Archives


Re: Xml_InvalidCharInThisEncoding

From: Martin Honnen <mahotrash@-----.-->
To: NULL
Date: 10/4/2006 5:31:00 PM



Pierre wrote:


> I'm trying to load a HTML page into a XPathDocument (or XmlDocument)
> using C# and .NET 1.1 in order to apply a xsl on it.

HTML is not XML so using XML parsers or APIs to parse HTML fails unless 
the HTML is XHTML.

> Unfortunatly I get this error:
> ErrorCode	"Xml_InvalidCharInThisEncoding"	string
> 
> Example of Html that gives me troubles:
> <span class="Hyperlink-H"  title="8. Value of factor 'X'">8. Value
> of factor 'X'</span>

Encoding matters for mapping byte sequences to string characters so the 
above does not allow us to say where something goes wrong.

Do you have a URL of the HTML document you are trying to parse? Do you 
know the encoding the HTML has been authored with?

-- 

	Martin Honnen --- MVP XML
	http://JavaScript.FAQTs.com/


transparent
Print
Mail
Like It
Disclaimer
.

These Archives are provided for informational purposes only and have been generated directly from the Altova mailing list archive system and are comprised of the lists set forth on www.altova.com/list/index.html. Therefore, Altova does not warrant or guarantee the accuracy, reliability, completeness, usefulness, non-infringement of intellectual property rights, or quality of any content on the Altova Mailing List Archive(s), regardless of who originates that content. You expressly understand and agree that you bear all risks associated with using or relying on that content. Altova will not be liable or responsible in any way for any content posted including, but not limited to, any errors or omissions in content, or for any losses or damage of any kind incurred as a result of the use of or reliance on any content. This disclaimer and limitation on liability is in addition to the disclaimers and limitations contained in the Website Terms of Use and elsewhere on the site.

.
.

transparent

transparent