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

How to specify a Processing Instruction?

  • From: ComCity <mikeb@c...>
  • To: xml-dev@l...
  • Date: Tue, 28 Aug 2001 14:42:35 -0700

ixmldomprocessinginstruction
I need to create an MSXML document with a specific Processing Instruction
and I'm finding it impossible to do.  First, I tried create a template XML
document on disk that I read in and modify it.

Unfortunately, the XML file opens fine when it says this at the top
<?xml version="1.0"?>

but if I change it to this, which is what I need, it won't open.
<?xml version="1.0" encoding="ISO-8859-1"?>

Why?

I can't even seem to be a way to create a new XML document by scratch (or
one that I can find) where you can create a new processing instruction
beyond one that contains the version only even modify an existing XML
document where you would change the
processing instruction.

There's IXMLDOMProcessingInstruction ....

Very little documentation on it, but it only allow appears to let you set or
change the XML version.  I need to set the encoding as well.

I need to be able to send an XML document and the processing instruction
mus be:  <?xml version="1.0" encoding="ISO-8859-1"?>

Why is this so hard?
Thank You
Michael Barber



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
 

Stylus Studio has published XML-DEV in RSS and ATOM formats, enabling users to easily subcribe to the list from their preferred news reader application.


Stylus Studio Sponsored Links are added links designed to provide related and additional information to the visitors of this website. they were not included by the author in the initial post. To view the content without the Sponsor Links please click here.

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.