Thanks, thats got rid of the 'generated' bit now which is good.
The xmlns:od...... bit is still there though, my xsl code is:
<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:od="urn:schemas-microsoft-com:officedata"
exclude-result-prefixes="od" >...
Sorry i'm a bit confused!!
I have the root:
<eso:NMAReports generated="2007-10-28T11:51:19" xmlns:od="urn:schemas-microsoft-com:officedata" xmlns:eso="www.***.org/***schema">
currently generated from my xsl.
What is the code i need to remove these extra elements of generated and xmlns:od?
Sorry about that, my fault - i was checking the wrong output file!!
Thanks that works well.
The only thing is that it has left some of the old root node namespace in the new one eg.
<eso:NEWROOT generated="2007-10-28T11:51:19" xmlns:od="urn:schemas-microsoft-com:officedata"...
Thanks for that, it nearly all worked perfectly.
The out put now is:
- <MYNEWROOTNODE>
- <dataroot generated="2007-10-28T11:51:19" xmlns:od="urn:schemas-microsoft-com:officedata">
+ <HTT:Inventory>
</dataroot>
</MYNEWROOTNODE>
So the data root still seems to exist but is just moved...
Hi, i'm a bit new to all this!!
I have an xml export from MS access however it is written with a microsoft root node - how can i replace this with one that matches the schema?
At the moment i've got:
<?xml version="1.0"?>
<xsl:stylesheet version="1.0"...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.