[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

RE: Creating a Document with encoding="ISO-8859"

Subject: RE: Creating a Document with encoding="ISO-8859"
From: "Michael Kay" <mhk@xxxxxxxxx>
Date: Fri, 3 Sep 2004 17:45:47 +0100
documentbuilderfactory encoding
Firstly, this question has nothing to do with XSLT.

Secondly, your code is creating an in-memory DOM. The encoding is only
determined when you subsequently serialize the DOM to a sequential file.

Michael Kay

> -----Original Message-----
> From: Boyed, Suvig [mailto:sboyed@xxxxxxxxxxxx]
> Sent: 03 September 2004 16:40
> To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
> Subject:  Creating a Document with encoding="ISO-8859"
>
> Hello,
>
> I am creating a Document using the following code...
>
> Document output = null;
> try {  
>     // create a DocumentBuilderFactory
>     DocumentBuilderFactory factory =
> DocumentBuilderFactory.newInstance();
>        
>     // create a DocumentBuilder (DOM Parser)
>     DocumentBuilder builder = factory.newDocumentBuilder();
>        
>     // create an EMPTY XML document for the output
>     output = builder.newDocument();
> } catch (Throwable t) {
>     // thrown when parser factories cannot be found or
> instantiated, etc.
>     logger.error("generateXML - Error/Exception in
> generateXML() " + t.getMessage());
>     return null;
> }      
>       
>
> The type of document that is getting created is UTF-8 (<?xml
> version="1.0" encoding="UTF-8"?>)
> How do I make this ISO-8859 based document?
>
> Thx
> Suvig

Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.