Home. 
.

transparent

transparent

transparent

Altova Mailing List Archives


Re: reading in a nonstandard XML file and displaying contents

From: "Joe Fawcett" <joefawcett@---------.------>
To: NULL
Date: 2/7/2008 9:45:00 AM

"javelin" <jmevalentin@g...> wrote in message 
news:db05c9aa-9158-4f47-b7e1-f67131fdfff8@n......
On Feb 5, 5:28 am, Martin Honnen <mahotr...@yahoo.de> wrote:
> javelin wrote:
> >> In that case write an HTML page (or an HTA application) that has an 
> >> input
> >> button of type file to browse for the notes.xml you need to view. It 
> >> then
> >> loads the XSLT and transforms the XML via scripting of the DomDocument.
> >> There are many examples of this sort of thing in the MSXML core 
> >> services
> >> SDK,http://msdn2.microsoft.com/en-us/library/ms763742(VS.85).aspx.
>
> >> The basics are:
>
> >> 1) Load the XML file into DomDocument
> >> 2) Load the XSLT file. If you are going for re-use then look at
> >> IXSLTemplate/IXSLProcessor
> >> 3) Perform the transform
> >> 4) Use the resulting HTML to populate the innerHTML of a suitable div 
> >> in the
> >> page.
> > By "Perform the transform", do you mean programmatically, on the fly?
>
> Yes, that is what Joe suggests, you should use the APIs that MSXML
> provides to run transformations.
>
> --

I did in my first reply, the MSXML SDK link. There are dozens of snippets of 
JavaScript et al that show this, look at transform, transformNode and 
transformNodeToObject in the DOM > DOM Reference > Methods section.

-- 

Joe Fawcett (MVP - XML)

http://joe.fawcett.name

>
> Martin Honnen --- MVP XML
> http://JavaScript.FAQTs.com/- Hide quoted text -
>
> - Show quoted text -

Well, many years ago, I played with this successfully, but haven't
touched it since then, and now I can't find code examples to guide me.
Can you point me to a URL or two that does just this?

Thanks.

J 




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